[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] only runs when I am logged on



You need to start Condor as root for it to run properly in the background as a daemon. You specify in your config file the user and group root should switch to after it starts up. But it needs to start as root. Sudo isn't enough I'm afraid.

When Condor runs jobs it will run them as the user who submitted them. It can only do this if you start it as root. If you were to have someone other than yourself run some jobs with your current setup you'd find they all fail because condor can't run then as the submitter. You're just not seeing this problem because you started the daemons and only you have run jobs.

- Ian

Sent from my iPhone

On 2010-04-17, at 7:59 PM, Dave STREET <davey_street@xxxxxxxxxxx> wrote:

OK i thought I had this sorted, but jobs will only run correctly when I am loged on to the machine, as soon as I log of all jobs get put in the hold state, and looking through the logs I see a error

07 (101.001.000) 04/18 00:41:26 Shadow exception!
        Error from slot2@*************.com: STARTER at 127.0.1.1 failed to send file(s) to <127.0.1.1:52928>; SHADOW
at 127.0.1.1 failed to write to file /home/aaron/condor/maths/_condor_stderr: (errno 2) No such file or directory
        1030068  -  Run Bytes Sent By Job
        1416  -  Run Bytes Received By Job

now I assume that this is becasue condor is not currently running as root so can't see the directory.. 

I am still new to linux, but how do I get condor to run as root? I thought I could use sudo but apparently not, do i need to log in as root and start condor from there? 

I also see that when i submit a job, it runs as my user account, 

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
22191 aaron     30  10  2204  696  516 R   61  0.1   0:01.83 bc
22193 aaron     30  10  2204  700  516 R   40  0.1   0:01.22 bc
 3298 condor    20   0  8692 4124 3340 S    1  0.4   1:58.42 condor_master
20632 root      20   0  3820 1640  988 S    0  0.2   0:00.22 condor_pr

bc is the submitted job running, 

i expected this to be run as condor user or root? 

Thank you 

Aaron






Get a free e-mail account with Hotmail. Sign-up now.
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/