Unable to create lock file: Permission denied

General discussion on Zend Guard / Optimizer

Unable to create lock file: Permission denied

Postby arekm on Wed Aug 12, 2009 12:59 pm

ZendOptimizer 3.3.3, Linux, apache 2.2.13, x86_64 arch and I get bunch of:

"Unable to create lock file: Permission denied
Failed to start up concurrent users module!"

in logs. Does anyone have a clue where this lock file is being created with permission denied result? Most likely (if this is regular file) apparmor doesn't let it to do that. That error message is so bad! It tells me almost nothing specific.
arekm
 
Posts: 6
Joined: Wed Aug 12, 2009 12:56 pm

Re: Unable to create lock file: Permission denied

Postby yoramb on Wed Aug 12, 2009 3:55 pm

Hello
This file is supposed to be in /tmp (or wherever your $TMPDIR is) and it's name should starts with "ZCUD".
does you apache have write access to /tmp ?
yoramb
 
Posts: 35
Joined: Tue Jun 02, 2009 3:48 pm

Re: Unable to create lock file: Permission denied

Postby arekm on Thu Jan 14, 2010 3:37 pm

Back to the problem. I've managed to strace httpd process:

Code: Select all
open("/home/virtualki/29307/gallery/main.php", O_RDONLY) = -1 EACCES (Permission denied)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd2604de0) = -1 ENOTTY (Inappropriate ioctl for device)
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2679, ...}) = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffd2604de0) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "Unable to create lock file:  Permission denied\nFailed to start up concurrent users module!\nUnable to create lock file:  Permission denied\nFailed to start up concurrent users module!\nUnable to create l"..., 4096) = 4096


My guess is that zend code tries to open file and then flock() it. Could zend people look into their source code and confirm?
arekm
 
Posts: 6
Joined: Wed Aug 12, 2009 12:56 pm

Re: Unable to create lock file: Permission denied

Postby arekm on Fri Apr 03, 2015 3:58 pm

Yes, it was about /tmp/ZCUD* not being able to get created.

What is stupid in zend optimizer is that it tries to create /tmp/ZCUD* once at server start but later spams tons of:

"Unable to create lock file: Permission denied
Failed to start up concurrent users module!"

where this error seems to be initial error stored in memory. Later it is repeated without actually trying to do anything with /tmp/ZCUD* which is misleading.
arekm
 
Posts: 6
Joined: Wed Aug 12, 2009 12:56 pm


Return to Zend Guard / Optimizer

Who is online

Users browsing this forum: No registered users and 2 guests