Strange permission error for project

General discussion forum for the Zend Server

Strange permission error for project

Postby crazymerlin on Tue May 24, 2016 8:46 am

I have a Laravel 5 project deployed by Zend Server, and everything seemed to be working fine until I got an error in my code, which caused the the framework to need to write to the log file. At that point ZRay shows me this error:
Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:97 Stack trace: #0 /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\StreamHandler->write(Array) #1 /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/vendor/monolog/monolog/src/Monolog/Logger.php(336): Monolog\Handler\AbstractProcessingHandler->handle(Array) #2 /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/vendor/monolog/monolog/src/Monolog/Logger.php(615): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array) #3 /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/vendor/laravel/framework/src/Illuminate/Log/Writer.php(202): Monolog\Logger->error(Object(UnexpectedValueException), Array) #4 /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/vendor/laravel/framework/src/Illuminate/Log/Writer.php(113): Illuminate\Log\Writer->writeLog('error', Object(UnexpectedValueException), Array) #5 /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(56): Illuminate\Log\Writer->error(Object(UnexpectedValueException)) #6 /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/app/Exceptions/Handler.php(36): Illuminate\Foundation\Exceptions\Handler->report(Object(UnexpectedValueException)) #7 /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(79): App\Exceptions\Handler->report(Object(UnexpectedValueException)) #8 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(UnexpectedValueException)) #9 {main} thrown


The problem here is that the file /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/storage/logs/laravel.log is not only owned by me, the group is "zend" and the file permission is 777. I have tried all user/group/mode permissions on this file, but ZRay still shows the same error. I even deleted the file and then touched it.

-rwxrwxrwx. 1 paul zend 0 May 24 00:17 /usr/local/zend/var/apps/http/vtribes.local/80/2.1_33/storage/logs/laravel.log


Any thoughts on where else to look for a possible culprit?

Thanks,
Paul
crazymerlin
 
Posts: 243
Joined: Wed Feb 18, 2009 10:25 pm
Location: Beaverton, OR, USA

Re: Strange permission error for project

Postby crazymerlin on Wed May 25, 2016 9:34 pm

Two words: Sticky Bit
crazymerlin
 
Posts: 243
Joined: Wed Feb 18, 2009 10:25 pm
Location: Beaverton, OR, USA


Return to Zend Server

Who is online

Users browsing this forum: No registered users and 6 guests

cron