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

[Condor-users] unable to chmod condor_exec.exe to ensure execute bit is set



Hi all

I recently installed Condor 7.2.4 in a ubuntu-server machine and I am able to submit jobs to the queue with success using "condor" user

My problem arises when I try to launch the jobs from the www-data user thru a php portal I am developing, getting this result in the starter log:

-------- 8x -------- 8x -------- 8x -------- 8x -------- 8x -------- 8x -------- 8x -------- 
4/26 23:53:42 Using config source: /etc/condor/condor_config
4/26 23:53:42 Using local config sources:
4/26 23:53:42    /etc/condor_config.local
4/26 23:53:42 DaemonCore: Command Socket at <192.168.122.1:54822>
4/26 23:53:42 Done setting resource limits
4/26 23:53:42 Communicating with shadow <192.168.122.1:57735>
4/26 23:53:42 Submitting machine is "mero"
4/26 23:53:42 setting the orig job name in starter
4/26 23:53:42 setting the orig job iwd in starter
4/26 23:53:43 File transfer completed successfully.
4/26 23:53:44 warning: unable to chmod condor_exec.exe to ensure execute bit is set: Operation not permitted
4/26 23:53:44 Job 56.0 set to execute immediately
4/26 23:53:44 Starting a VANILLA universe job with ID: 56.0
4/26 23:53:44 IWD: /var/lib/condor/execute/dir_29639
4/26 23:53:44 Output file: /var/lib/condor/execute/dir_29639/_condor_stdout
4/26 23:53:44 Error file: /var/lib/condor/execute/dir_29639/_condor_stderr
4/26 23:53:44 About to exec /var/lib/condor/execute/dir_29639/condor_exec.exe image0.png image1.png result.png
4/26 23:53:44 Create_Process: Cannot access specified executable "/var/lib/condor/execute/dir_29639/condor_exec.exe": errno = 13 (Permission denied)
4/26 23:53:44 ERROR "Create_Process(/var/lib/condor/execute/dir_29639/condor_exec.exe,Prueba0.png PruebaKmedias0.png ImagenResultado.png 5 3 2.21487 84.7066 113.694, ...) failed" at line 509 in file os_pr
4/26 23:53:44 ShutdownFast all jobs.
-------- 8x -------- 8x -------- 8x -------- 8x -------- 8x -------- 8x -------- 8x -------- 

When I submit the job localy, it works like a charm, but when I try to launch it from the web server, it stays held.
I checked the rights in the /var/lib/condor directory: 
all files inside it are owned by condor:condor and www-data is a condor member so creating a new directory should become owned by www-data
I tried to create a directory manually and chmod +x a file inside that directory, logged with www-data user and it went ok

I know that this is related to user privilegies, as I am able to execute a job using the condor user, but I think I am missing something. 

Could someone show me the light?

Thanks in advance

Regards
Jade