On Going Projects

Exception

Error

We're sorry, but an unhandled error occurred. Please see the details below.

The stream or file "/var/www/html/demo/landmark_metro/storage/logs/system.log" could not be opened in append mode: failed to open stream: Permission denied

/var/www/html/demo/landmark_metro/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php line 110

                @chmod($this->url, $this->filePermission);
            }
            restore_error_handler();
            if (!is_resource($this->stream)) {
                $this->stream = null;
 
                throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $this->url));
            }
        }
 
        if ($this->useLocking) {
            // ignoring errors here, there's not much we can do about them
            flock($this->stream, LOCK_EX);

Stack trace

# Called Code Document Line
9 Monolog\Handler\StreamHandler->write() ~/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php 39
8 Monolog\Handler\AbstractProcessingHandler->handle() ~/vendor/monolog/monolog/src/Monolog/Logger.php 344
7 Monolog\Logger->addRecord() ~/vendor/monolog/monolog/src/Monolog/Logger.php 712
6 Monolog\Logger->error() ~/vendor/laravel/framework/src/Illuminate/Log/Writer.php 203
5 Illuminate\Log\Writer->writeLog() ~/vendor/laravel/framework/src/Illuminate/Log/Writer.php 114
4 Illuminate\Log\Writer->error() ~/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php 221
3 Illuminate\Support\Facades\Facade::__callStatic() ~/vendor/october/rain/src/Foundation/Exception/Handler.php 66
2 October\Rain\Foundation\Exception\Handler->report() ~/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php 81
1 Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()