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

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



Hi again

After some time expended here, I got a file list from one of the working directories created for executing jobs, this is what I found:
./dir_12029:
total 6392
-rwxr-xr-x 1 www-data www-data 6449123 2011-04-27 21:18 condor_exec.exe
-rw-r--r-- 1 www-data www-data       0 2011-04-27 21:21 _condor_stderr
-rw-r--r-- 1 www-data www-data       0 2011-04-27 21:21 _condor_stdout
-rw-r--r-- 1 www-data www-data       0 2011-04-27 21:18 input.txt
-rw-r--r-- 1 www-data www-data   74938 2011-04-27 21:18 Prueba0.png
-rw-r--r-- 1 www-data www-data   12531 2011-04-27 21:18 PruebaKmedias0.png

The output is similar to the previous mail, as it complains about chmodding the condor_exec.exec, but it has executing rights. 
Could someone hint me about what's going wrong here?

Thanks again in advance

--
Ignorance is bliss


On Wed, Apr 27, 2011 at 00:22, Joaquin Monedero <jadeade@xxxxxxxxx> wrote:
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