UnexpectedValueException
The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied UnexpectedValueException thrown with message "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied" Stacktrace: #11 UnexpectedValueException in /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:110 #10 Monolog\Handler\StreamHandler:write in /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:120 #9 Monolog\Handler\RotatingFileHandler:write in /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:39 #8 Monolog\Handler\AbstractProcessingHandler:handle in /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Logger.php:344 #7 Monolog\Logger:addRecord in /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Logger.php:712 #6 Monolog\Logger:error in /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/Logger.php:176 #5 Illuminate\Log\Logger:writeLog in /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/Logger.php:87 #4 Illuminate\Log\Logger:error in /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:500 #3 Illuminate\Log\LogManager:error in /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:118 #2 Illuminate\Foundation\Exceptions\Handler:report in /var/www/cineteca/app/Exceptions/Handler.php:45 #1 App\Exceptions\Handler:report in /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:92 #0 Illuminate\Foundation\Bootstrap\HandleExceptions:handleException in [internal]:0
11
UnexpectedValueException
/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php110
10
Monolog\Handler\StreamHandler write
/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php120
9
Monolog\Handler\RotatingFileHandler write
/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php39
8
Monolog\Handler\AbstractProcessingHandler handle
/vendor/monolog/monolog/src/Monolog/Logger.php344
7
Monolog\Logger addRecord
/vendor/monolog/monolog/src/Monolog/Logger.php712
6
Monolog\Logger error
/vendor/laravel/framework/src/Illuminate/Log/Logger.php176
5
Illuminate\Log\Logger writeLog
/vendor/laravel/framework/src/Illuminate/Log/Logger.php87
4
Illuminate\Log\Logger error
/vendor/laravel/framework/src/Illuminate/Log/LogManager.php500
3
Illuminate\Log\LogManager error
/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php118
2
Illuminate\Foundation\Exceptions\Handler report
/app/Exceptions/Handler.php45
1
App\Exceptions\Handler report
/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php92
0
Illuminate\Foundation\Bootstrap\HandleExceptions handleException
[internal]0
/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
     * {@inheritdoc}
     */
    protected function write(array $record)
    {
        if (!is_resource($this->stream)) {
            if (null === $this->url || '' === $this->url) {
                throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
            }
            $this->createDir();
            $this->errorMessage = null;
            set_error_handler(array($this, 'customErrorHandler'));
            $this->stream = fopen($this->url, 'a');
            if ($this->filePermission !== null) {
                @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);
        }
 
        $this->streamWrite($this->stream, $record);
 
        if ($this->useLocking) {
            flock($this->stream, LOCK_UN);
        }
    }
 
    /**
     * Write to stream
     * @param resource $stream
     * @param array $record
     */
Arguments
  1. "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
    
/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
        $this->url = $this->getTimedFilename();
        $this->close();
    }
 
    /**
     * {@inheritdoc}
     */
    protected function write(array $record)
    {
        // on the first record written, if the log is new, we should rotate (once per day)
        if (null === $this->mustRotate) {
            $this->mustRotate = !file_exists($this->url);
        }
 
        if ($this->nextRotation < $record['datetime']) {
            $this->mustRotate = true;
            $this->close();
        }
 
        parent::write($record);
    }
 
    /**
     * Rotates the files.
     */
    protected function rotate()
    {
        // update filename
        $this->url = $this->getTimedFilename();
        $this->nextRotation = new \DateTime('tomorrow');
 
        // skip GC of old logs if files are unlimited
        if (0 === $this->maxFiles) {
            return;
        }
 
        $logFiles = glob($this->getGlobPattern());
        if ($this->maxFiles >= count($logFiles)) {
            // no files to remove
            return;
Arguments
  1. array:8 [
      "message" => "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
      "context" => array:1 [
        "exception" => UnexpectedValueException {#1604
          #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
          #code: 0
          #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
          #line: 110
        }
      ]
      "level" => 400
      "level_name" => "ERROR"
      "channel" => "production"
      "datetime" => DateTime @1710822302 {#466
        date: 2024-03-19 04:25:02.244343 UTC (+00:00)
      }
      "extra" => []
      "formatted" => """
        [2024-03-19 04:25:02] production.ERROR: The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied {"exception":"[object] (UnexpectedValueException(code: 0): The stream or file \"/var/www/cineteca/storage/logs/laravel-2024-03-19.log\" could not be opened in append mode: failed to open stream: Permission denied at /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:110)\n
        [stacktrace]\n
        #0 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(120): Monolog\\Handler\\StreamHandler->write(Array)\n
        #1 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\\Handler\\RotatingFileHandler->write(Array)\n
        #2 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n
        #3 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Logger.php(712): Monolog\\Logger->addRecord(400, 'The stream or f...', Array)\n
        #4 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/Logger.php(176): Monolog\\Logger->error('The stream or f...', Array)\n
        #5 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/Logger.php(87): Illuminate\\Log\\Logger->writeLog('error', 'The stream or f...', Array)\n
        #6 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(500): Illuminate\\Log\\Logger->error('The stream or f...', Array)\n
        #7 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(118): Illuminate\\Log\\LogManager->error('The stream or f...', Array)\n
        #8 /var/www/cineteca/app/Exceptions/Handler.php(45): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(UnexpectedValueException))\n
        #9 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(314): App\\Exceptions\\Handler->report(Object(UnexpectedValueException))\n
        #10 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(UnexpectedValueException))\n
        #11 /var/www/cineteca/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n
        #12 {main}\n
        "} \n
        """
    ]
    
/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
 *
 * @author Jordi Boggiano <j.boggiano@seld.be>
 * @author Christophe Coevoet <stof@notk.org>
 */
abstract class AbstractProcessingHandler extends AbstractHandler
{
    /**
     * {@inheritdoc}
     */
    public function handle(array $record)
    {
        if (!$this->isHandling($record)) {
            return false;
        }
 
        $record = $this->processRecord($record);
 
        $record['formatted'] = $this->getFormatter()->format($record);
 
        $this->write($record);
 
        return false === $this->bubble;
    }
 
    /**
     * Writes the record down to the log of the implementing handler
     *
     * @param  array $record
     * @return void
     */
    abstract protected function write(array $record);
 
    /**
     * Processes a record.
     *
     * @param  array $record
     * @return array
     */
    protected function processRecord(array $record)
    {
Arguments
  1. array:8 [
      "message" => "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
      "context" => array:1 [
        "exception" => UnexpectedValueException {#1604
          #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
          #code: 0
          #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
          #line: 110
        }
      ]
      "level" => 400
      "level_name" => "ERROR"
      "channel" => "production"
      "datetime" => DateTime @1710822302 {#466
        date: 2024-03-19 04:25:02.244343 UTC (+00:00)
      }
      "extra" => []
      "formatted" => """
        [2024-03-19 04:25:02] production.ERROR: The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied {"exception":"[object] (UnexpectedValueException(code: 0): The stream or file \"/var/www/cineteca/storage/logs/laravel-2024-03-19.log\" could not be opened in append mode: failed to open stream: Permission denied at /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:110)\n
        [stacktrace]\n
        #0 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(120): Monolog\\Handler\\StreamHandler->write(Array)\n
        #1 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\\Handler\\RotatingFileHandler->write(Array)\n
        #2 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n
        #3 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Logger.php(712): Monolog\\Logger->addRecord(400, 'The stream or f...', Array)\n
        #4 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/Logger.php(176): Monolog\\Logger->error('The stream or f...', Array)\n
        #5 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/Logger.php(87): Illuminate\\Log\\Logger->writeLog('error', 'The stream or f...', Array)\n
        #6 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(500): Illuminate\\Log\\Logger->error('The stream or f...', Array)\n
        #7 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(118): Illuminate\\Log\\LogManager->error('The stream or f...', Array)\n
        #8 /var/www/cineteca/app/Exceptions/Handler.php(45): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(UnexpectedValueException))\n
        #9 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(314): App\\Exceptions\\Handler->report(Object(UnexpectedValueException))\n
        #10 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(UnexpectedValueException))\n
        #11 /var/www/cineteca/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n
        #12 {main}\n
        "} \n
        """
    ]
    
/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Logger.php
        }
        $ts->setTimezone(static::$timezone);
 
        $record = array(
            'message' => (string) $message,
            'context' => $context,
            'level' => $level,
            'level_name' => $levelName,
            'channel' => $this->name,
            'datetime' => $ts,
            'extra' => array(),
        );
 
        try {
            foreach ($this->processors as $processor) {
                $record = call_user_func($processor, $record);
            }
 
            while ($handler = current($this->handlers)) {
                if (true === $handler->handle($record)) {
                    break;
                }
 
                next($this->handlers);
            }
        } catch (Exception $e) {
            $this->handleException($e, $record);
        }
 
        return true;
    }
 
    /**
     * Ends a log cycle and frees all resources used by handlers.
     *
     * Closing a Handler means flushing all buffers and freeing any open resources/handles.
     * Handlers that have been closed should be able to accept log records again and re-open
     * themselves on demand, but this may not always be possible depending on implementation.
     *
     * This is useful at the end of a request and will be called automatically on every handler
Arguments
  1. array:8 [
      "message" => "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
      "context" => array:1 [
        "exception" => UnexpectedValueException {#1604
          #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
          #code: 0
          #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
          #line: 110
        }
      ]
      "level" => 400
      "level_name" => "ERROR"
      "channel" => "production"
      "datetime" => DateTime @1710822302 {#466
        date: 2024-03-19 04:25:02.244343 UTC (+00:00)
      }
      "extra" => []
      "formatted" => """
        [2024-03-19 04:25:02] production.ERROR: The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied {"exception":"[object] (UnexpectedValueException(code: 0): The stream or file \"/var/www/cineteca/storage/logs/laravel-2024-03-19.log\" could not be opened in append mode: failed to open stream: Permission denied at /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:110)\n
        [stacktrace]\n
        #0 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(120): Monolog\\Handler\\StreamHandler->write(Array)\n
        #1 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\\Handler\\RotatingFileHandler->write(Array)\n
        #2 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n
        #3 /var/www/cineteca/vendor/monolog/monolog/src/Monolog/Logger.php(712): Monolog\\Logger->addRecord(400, 'The stream or f...', Array)\n
        #4 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/Logger.php(176): Monolog\\Logger->error('The stream or f...', Array)\n
        #5 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/Logger.php(87): Illuminate\\Log\\Logger->writeLog('error', 'The stream or f...', Array)\n
        #6 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(500): Illuminate\\Log\\Logger->error('The stream or f...', Array)\n
        #7 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(118): Illuminate\\Log\\LogManager->error('The stream or f...', Array)\n
        #8 /var/www/cineteca/app/Exceptions/Handler.php(45): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(UnexpectedValueException))\n
        #9 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(314): App\\Exceptions\\Handler->report(Object(UnexpectedValueException))\n
        #10 /var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\\Foundation\\Http\\Kernel->reportException(Object(UnexpectedValueException))\n
        #11 /var/www/cineteca/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n
        #12 {main}\n
        "} \n
        """
    ]
    
/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Logger.php
     * @param  array  $context The log context
     * @return bool   Whether the record has been processed
     */
    public function err($message, array $context = array())
    {
        return $this->addRecord(static::ERROR, $message, $context);
    }
 
    /**
     * Adds a log record at the ERROR level.
     *
     * This method allows for compatibility with common interfaces.
     *
     * @param  string $message The log message
     * @param  array  $context The log context
     * @return bool   Whether the record has been processed
     */
    public function error($message, array $context = array())
    {
        return $this->addRecord(static::ERROR, $message, $context);
    }
 
    /**
     * Adds a log record at the CRITICAL level.
     *
     * This method allows for compatibility with common interfaces.
     *
     * @param  string $message The log message
     * @param  array  $context The log context
     * @return bool   Whether the record has been processed
     */
    public function crit($message, array $context = array())
    {
        return $this->addRecord(static::CRITICAL, $message, $context);
    }
 
    /**
     * Adds a log record at the CRITICAL level.
     *
     * This method allows for compatibility with common interfaces.
Arguments
  1. 400
    
  2. "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
    
  3. array:1 [
      "exception" => UnexpectedValueException {#1604
        #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
        #code: 0
        #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
        #line: 110
      }
    ]
    
/var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/Logger.php
     * @return void
     */
    public function write($level, $message, array $context = [])
    {
        $this->writeLog($level, $message, $context);
    }
 
    /**
     * Write a message to the log.
     *
     * @param  string  $level
     * @param  string  $message
     * @param  array  $context
     * @return void
     */
    protected function writeLog($level, $message, $context)
    {
        $this->fireLogEvent($level, $message = $this->formatMessage($message), $context);
 
        $this->logger->{$level}($message, $context);
    }
 
    /**
     * Register a new callback handler for when a log event is triggered.
     *
     * @param  \Closure  $callback
     * @return void
     *
     * @throws \RuntimeException
     */
    public function listen(Closure $callback)
    {
        if (! isset($this->dispatcher)) {
            throw new RuntimeException('Events dispatcher has not been set.');
        }
 
        $this->dispatcher->listen(MessageLogged::class, $callback);
    }
 
    /**
Arguments
  1. "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
    
  2. array:1 [
      "exception" => UnexpectedValueException {#1604
        #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
        #code: 0
        #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
        #line: 110
      }
    ]
    
/var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/Logger.php
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
     */
    public function critical($message, array $context = [])
    {
        $this->writeLog(__FUNCTION__, $message, $context);
    }
 
    /**
     * Log an error message to the logs.
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
     */
    public function error($message, array $context = [])
    {
        $this->writeLog(__FUNCTION__, $message, $context);
    }
 
    /**
     * Log a warning message to the logs.
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
     */
    public function warning($message, array $context = [])
    {
        $this->writeLog(__FUNCTION__, $message, $context);
    }
 
    /**
     * Log a notice to the logs.
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
Arguments
  1. "error"
    
  2. "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
    
  3. array:1 [
      "exception" => UnexpectedValueException {#1604
        #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
        #code: 0
        #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
        #line: 110
      }
    ]
    
/var/www/cineteca/vendor/laravel/framework/src/Illuminate/Log/LogManager.php
     *
     * @return void
     */
    public function critical($message, array $context = [])
    {
        $this->driver()->critical($message, $context);
    }
 
    /**
     * Runtime errors that do not require immediate action but should typically
     * be logged and monitored.
     *
     * @param  string  $message
     * @param  array  $context
     *
     * @return void
     */
    public function error($message, array $context = [])
    {
        $this->driver()->error($message, $context);
    }
 
    /**
     * Exceptional occurrences that are not errors.
     *
     * Example: Use of deprecated APIs, poor use of an API, undesirable things
     * that are not necessarily wrong.
     *
     * @param  string  $message
     * @param  array  $context
     *
     * @return void
     */
    public function warning($message, array $context = [])
    {
        $this->driver()->warning($message, $context);
    }
 
    /**
     * Normal but significant events.
Arguments
  1. "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
    
  2. array:1 [
      "exception" => UnexpectedValueException {#1604
        #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
        #code: 0
        #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
        #line: 110
      }
    ]
    
/var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
     */
    public function report(Exception $e)
    {
        if ($this->shouldntReport($e)) {
            return;
        }
 
        if (is_callable($reportCallable = [$e, 'report'])) {
            return $this->container->call($reportCallable);
        }
 
        try {
            $logger = $this->container->make(LoggerInterface::class);
        } catch (Exception $ex) {
            throw $e;
        }
 
        $logger->error(
            $e->getMessage(),
            array_merge($this->context(), ['exception' => $e]
        ));
    }
 
    /**
     * Determine if the exception should be reported.
     *
     * @param  \Exception  $e
     * @return bool
     */
    public function shouldReport(Exception $e)
    {
        return ! $this->shouldntReport($e);
    }
 
    /**
     * Determine if the exception is in the "do not report" list.
     *
     * @param  \Exception  $e
     * @return bool
     */
Arguments
  1. "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
    
  2. array:1 [
      "exception" => UnexpectedValueException {#1604
        #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
        #code: 0
        #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
        #line: 110
      }
    ]
    
/var/www/cineteca/app/Exceptions/Handler.php
     * A list of the inputs that are never flashed for validation exceptions.
     *
     * @var array
     */
    protected $dontFlash = [
        'password',
        'password_confirmation',
    ];
 
    /**
     * Report or log an exception.
     *
     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
     *
     * @param  \Exception  $exception
     * @return void
     */
    public function report(Exception $exception)
    {
        parent::report($exception);
    }
 
    /**
     * Render an exception into an HTTP response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Exception  $exception
     * @return \Illuminate\Http\Response
     */
    public function render($request, Exception $exception)
    {
        return parent::render($request, $exception);
    }
 
    /**
     * Convert an authentication exception into an unauthenticated response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Auth\AuthenticationException  $exception
     * @return \Illuminate\Http\Response
Arguments
  1. UnexpectedValueException {#1604
      #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
      #code: 0
      #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
      #line: 110
    }
    
/var/www/cineteca/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php
    /**
     * Handle an uncaught exception from the application.
     *
     * Note: Most exceptions can be handled via the try / catch block in
     * the HTTP and Console kernels. But, fatal error exceptions must
     * be handled differently since they are not normal exceptions.
     *
     * @param  \Throwable  $e
     * @return void
     */
    public function handleException($e)
    {
        if (! $e instanceof Exception) {
            $e = new FatalThrowableError($e);
        }
 
        try {
            self::$reservedMemory = null;
 
            $this->getExceptionHandler()->report($e);
        } catch (Exception $e) {
            //
        }
 
        if ($this->app->runningInConsole()) {
            $this->renderForConsole($e);
        } else {
            $this->renderHttpResponse($e);
        }
    }
 
    /**
     * Render an exception to the console.
     *
     * @param  \Exception  $e
     * @return void
     */
    protected function renderForConsole(Exception $e)
    {
        $this->getExceptionHandler()->renderForConsole(new ConsoleOutput, $e);
Arguments
  1. UnexpectedValueException {#1604
      #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
      #code: 0
      #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
      #line: 110
    }
    
[internal]
Arguments
  1. UnexpectedValueException {#1604
      #message: "The stream or file "/var/www/cineteca/storage/logs/laravel-2024-03-19.log" could not be opened in append mode: failed to open stream: Permission denied"
      #code: 0
      #file: "/var/www/cineteca/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php"
      #line: 110
    }
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER
"www-data"
HOME
"/var/www"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/cinestore"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/cinestore"
REMOTE_PORT
"41298"
SCRIPT_FILENAME
"/var/www/cineteca/public/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/var/www/cineteca/public/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/cineteca/public/"
REMOTE_ADDR
"3.230.128.106"
SERVER_PORT
"443"
SERVER_ADDR
"95.110.134.160"
SERVER_NAME
"www.cinetecamilano.it"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
HTTP_HOST
"www.cinetecamilano.it"
HTTP_REFERER
"http://www.cinetecamilano.it/cinestore"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
proxy-nokeepalive
"1"
SSL_TLS_SNI
"www.cinetecamilano.it"
HTTPS
"on"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"www.cinetecamilano.it"
REDIRECT_HTTPS
"on"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1710822302.2207
REQUEST_TIME
1710822302
APP_NAME
"Fondazione Cineteca Italiana"
APP_ENV
"production"
APP_KEY
"base64:wKsmfwYZpL1QThwXZ48llmLaemPdg/qS3ojLMqYHyMI="
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"https://cinetecamilano.it"
FRONTEND_URL
"https://cinetecamilano.it"
FRONTEND_EMAIL_VERIFY_URL
"/biblioteca/catalogo/verifica-mail?queryURL="
BIBLIO_MAIL
"bibliotecadimorando@cinetecamilano.it"
FILM_CORNER_MAIL
"thefilmcorner@cinetecamilano.it"
VIDEO_ADMIN_EMAIL
"matteo.vergani@cinetecamilano.it"
CINEGAME_MAIL
"piccolograndecinema@cinetecamilano.it"
PROMOZIONI_MAIL
"promozioni@cinetecamilano.it"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"cineteca"
DB_USERNAME
"cineteca_user"
DB_PASSWORD
"8EFyCJ@wST"
DB2_DATABASE
"cineteca_film_corner"
DB2_USERNAME
"cineteca_user"
DB2_PASSWORD
"8EFyCJ@wST"
DB3_DATABASE
"cineteca_archivio"
DB3_USERNAME
"cineteca_user"
DB3_PASSWORD
"8EFyCJ@wST"
DB4_DATABASE
"cineteca_stats"
DB4_USERNAME
"cineteca_user"
DB4_PASSWORD
"8EFyCJ@wST"
CREA_TICKETS
"true"
CREA_TICKETS_OBERDAN
"true"
CREA_TICKETS_METROPOLIS
"true"
BROADCAST_DRIVER
"pusher"
CACHE_DRIVER
"database"
SESSION_DRIVER
"file"
HOME_CACHE_TIME
"3600"
TRANSLATION_CACHE_TIME
"60"
QUEUE_CONNECTION
"database"
QUEUE_DRIVER
"database"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"vu000683.arubabiz.net"
MAIL_PORT
"25"
MAIL_USERNAME
"cinetecami@vu000683.arubabiz.net"
MAIL_PASSWORD
"XY65Sbge39UnVat?"
MAIL_ENCRYPTION
"null"
PUSHER_APP_ID
"myId"
PUSHER_APP_KEY
"myKey"
PUSHER_APP_SECRET
"mySecret"
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
"myKey"
MIX_PUSHER_APP_CLUSTER
"mt1"
LARAVEL_WEBSOCKETS_PORT
"6001"
LARAVEL_WEBSOCKETS_HOST
"127.0.0.1"
LARAVEL_WEBSOCKETS_SCHEME
"https"
LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT
"/etc/letsencrypt/live/cinetecamilano.it/fullchain.pem"
LARAVEL_WEBSOCKETS_SSL_LOCAL_PK
"/etc/letsencrypt/live/cinetecamilano.it/privkey.pem"
SCOUT_DRIVER
"tntsearch"
MAILCHIMP_AUTH
"84879556110a4a8bbfb12b08922870b4-us4"
MAILCHIMP_MEET
"238cff75e8"
MAILCHIMP_MIC_BIBLIO
"eea54f69e2"
MAILCHIMP_METROPOLIS
"b61a6903e5"
MAILCHIMP_STREAMING
"eb3014fe04"
MAILCHIMP_INSEGNANTI
"28d3b92a3a"
TW_OAUTH_ACCESS_TOKEN
"376756442-iMRSubtAHGRA1dMR5XKNw2hQ8IIo6QDzgWltR0Ef"
TW_OAUTH_ACCESS_TOKEN_SECRET
"juq3XlSZOblcYDwGe6nlRIG5Ksz6rLs19ECjsvDEo171w"
TW_CONSUMER_KEY
"1Bq3BwiZesBuuA1K0GFzE758w"
TW_CONSUMER_SECRET
"KRNqB9mgBe0raK96Toy156NahxvcvrXeWh9xelU2pxyR8M1Pjt"
BR_ENV
"production"
BR_MERCHANT_ID
"qk4hgpxkmpgc39gd"
BR_PUBLIC_KEY
"ygnpk2yzwgxfmm89"
BR_PRIVATE_KEY
"a86484b25f3aba2e995c473670f9293f"
BR_CSE
"MIIBCgKCAQEAtERHsIDPe14AsJKymcmMi3sowaMsx2UKW/IYpRATESbQiZWWmzdGfrhGvFs2yN5G/+y19L+vkNvKYrbrQFAgSTQP8DgQI+i3dT+9sGRNbm3VGBpbJTA8u2bGi/BwzdCo6fpRRABpx49ksYGpkV5dm34j2WxucvjKDPe5fjr33aFCAFToDysW25ar+Ep3gkElitDxXKm1GsTAIzu8MvbeCwj2nazkF2vlezLiayICvpvFJSPKurOCk9rFLOiZsk6Y/eUWbEMNSw+SEuv/7UmTV7BMnSndiBGadoYB0brWDsIaCkUH0twPDEDuJiN8PnUvxTJVo6HxeTZQh9tn0ZZVeQIDAQAB"
URL_SHORTENER_GOOGLE_API_KEY
"AIzaSyC-vL25o2IRULay23cJam4HeQ6RZZRZlCI"
URL_SHORTENER_BITLY_USERNAME
"simonepozzobon"
URL_SHORTENER_BITLY_PASSWORD
"Boo$ter1995"
BITLY_ACCESS_TOKEN
"04df1ef66784145e04a96a80446ae2de68b9bed3"
GOOGLE_API
"AIzaSyAHuWUH0vBqtxq76c2SaJJpc3LW2sPviPg"
VIMEO_CLIENT
"57ca82acd3a479e1c9d9420331f2268bf571b36b"
VIMEO_SECRET
"YqJ/11E5ijZr0EQN59ZsnKoD7ydYr3Gl5Br2ymsm+oQ3fAAKBbQoW35uRLCzW+YGOadTnKmV/hFdhYJVYkslWUz/deJqoGiab5ddmBDpqV41uaO3RSUcmZo2LTga+wis"
VIMEO_ACCESS
"e054f0fc410b509ce839e5096c2f0b32"
PERSONAL_CLIENT_ID
"1"
PERSONAL_CLIENT_SECRET
"Z3uVGkYqgNcU7kyIKgsuuf9DWjUaPKT64rMROt30"
GRANT_CLIENT_ID
"2"
GRANT_CLIENT_SECRET
"Nru9EZLF1t5SQURHgFeHjy7SPMGRqnZxFUXDzeFT"
IPAPI_KEY
"7915a57c9751cec153447dde862d29be"
MAXMIND_USER_ID
"297489"
MAXMIND_LICENSE_KEY
"j1phyjboMA3V"
FFMPEG_PATH
"/usr/bin/ffmpeg"
FFPROBE_PATH
"/usr/bin/ffprobe"
OPENSSL_PATH
"/usr/bin/openssl"
TICKETS_URL
"https://cinetecadimilano.18tickets.it/api/v2/films/expanded.json"
Key Value
APP_NAME
"Fondazione Cineteca Italiana"
APP_ENV
"production"
APP_KEY
"base64:wKsmfwYZpL1QThwXZ48llmLaemPdg/qS3ojLMqYHyMI="
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"https://cinetecamilano.it"
FRONTEND_URL
"https://cinetecamilano.it"
FRONTEND_EMAIL_VERIFY_URL
"/biblioteca/catalogo/verifica-mail?queryURL="
BIBLIO_MAIL
"bibliotecadimorando@cinetecamilano.it"
FILM_CORNER_MAIL
"thefilmcorner@cinetecamilano.it"
VIDEO_ADMIN_EMAIL
"matteo.vergani@cinetecamilano.it"
CINEGAME_MAIL
"piccolograndecinema@cinetecamilano.it"
PROMOZIONI_MAIL
"promozioni@cinetecamilano.it"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"cineteca"
DB_USERNAME
"cineteca_user"
DB_PASSWORD
"8EFyCJ@wST"
DB2_DATABASE
"cineteca_film_corner"
DB2_USERNAME
"cineteca_user"
DB2_PASSWORD
"8EFyCJ@wST"
DB3_DATABASE
"cineteca_archivio"
DB3_USERNAME
"cineteca_user"
DB3_PASSWORD
"8EFyCJ@wST"
DB4_DATABASE
"cineteca_stats"
DB4_USERNAME
"cineteca_user"
DB4_PASSWORD
"8EFyCJ@wST"
CREA_TICKETS
"true"
CREA_TICKETS_OBERDAN
"true"
CREA_TICKETS_METROPOLIS
"true"
BROADCAST_DRIVER
"pusher"
CACHE_DRIVER
"database"
SESSION_DRIVER
"file"
HOME_CACHE_TIME
"3600"
TRANSLATION_CACHE_TIME
"60"
QUEUE_CONNECTION
"database"
QUEUE_DRIVER
"database"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"vu000683.arubabiz.net"
MAIL_PORT
"25"
MAIL_USERNAME
"cinetecami@vu000683.arubabiz.net"
MAIL_PASSWORD
"XY65Sbge39UnVat?"
MAIL_ENCRYPTION
"null"
PUSHER_APP_ID
"myId"
PUSHER_APP_KEY
"myKey"
PUSHER_APP_SECRET
"mySecret"
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
"myKey"
MIX_PUSHER_APP_CLUSTER
"mt1"
LARAVEL_WEBSOCKETS_PORT
"6001"
LARAVEL_WEBSOCKETS_HOST
"127.0.0.1"
LARAVEL_WEBSOCKETS_SCHEME
"https"
LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT
"/etc/letsencrypt/live/cinetecamilano.it/fullchain.pem"
LARAVEL_WEBSOCKETS_SSL_LOCAL_PK
"/etc/letsencrypt/live/cinetecamilano.it/privkey.pem"
SCOUT_DRIVER
"tntsearch"
MAILCHIMP_AUTH
"84879556110a4a8bbfb12b08922870b4-us4"
MAILCHIMP_MEET
"238cff75e8"
MAILCHIMP_MIC_BIBLIO
"eea54f69e2"
MAILCHIMP_METROPOLIS
"b61a6903e5"
MAILCHIMP_STREAMING
"eb3014fe04"
MAILCHIMP_INSEGNANTI
"28d3b92a3a"
TW_OAUTH_ACCESS_TOKEN
"376756442-iMRSubtAHGRA1dMR5XKNw2hQ8IIo6QDzgWltR0Ef"
TW_OAUTH_ACCESS_TOKEN_SECRET
"juq3XlSZOblcYDwGe6nlRIG5Ksz6rLs19ECjsvDEo171w"
TW_CONSUMER_KEY
"1Bq3BwiZesBuuA1K0GFzE758w"
TW_CONSUMER_SECRET
"KRNqB9mgBe0raK96Toy156NahxvcvrXeWh9xelU2pxyR8M1Pjt"
BR_ENV
"production"
BR_MERCHANT_ID
"qk4hgpxkmpgc39gd"
BR_PUBLIC_KEY
"ygnpk2yzwgxfmm89"
BR_PRIVATE_KEY
"a86484b25f3aba2e995c473670f9293f"
BR_CSE
"MIIBCgKCAQEAtERHsIDPe14AsJKymcmMi3sowaMsx2UKW/IYpRATESbQiZWWmzdGfrhGvFs2yN5G/+y19L+vkNvKYrbrQFAgSTQP8DgQI+i3dT+9sGRNbm3VGBpbJTA8u2bGi/BwzdCo6fpRRABpx49ksYGpkV5dm34j2WxucvjKDPe5fjr33aFCAFToDysW25ar+Ep3gkElitDxXKm1GsTAIzu8MvbeCwj2nazkF2vlezLiayICvpvFJSPKurOCk9rFLOiZsk6Y/eUWbEMNSw+SEuv/7UmTV7BMnSndiBGadoYB0brWDsIaCkUH0twPDEDuJiN8PnUvxTJVo6HxeTZQh9tn0ZZVeQIDAQAB"
URL_SHORTENER_GOOGLE_API_KEY
"AIzaSyC-vL25o2IRULay23cJam4HeQ6RZZRZlCI"
URL_SHORTENER_BITLY_USERNAME
"simonepozzobon"
URL_SHORTENER_BITLY_PASSWORD
"Boo$ter1995"
BITLY_ACCESS_TOKEN
"04df1ef66784145e04a96a80446ae2de68b9bed3"
GOOGLE_API
"AIzaSyAHuWUH0vBqtxq76c2SaJJpc3LW2sPviPg"
VIMEO_CLIENT
"57ca82acd3a479e1c9d9420331f2268bf571b36b"
VIMEO_SECRET
"YqJ/11E5ijZr0EQN59ZsnKoD7ydYr3Gl5Br2ymsm+oQ3fAAKBbQoW35uRLCzW+YGOadTnKmV/hFdhYJVYkslWUz/deJqoGiab5ddmBDpqV41uaO3RSUcmZo2LTga+wis"
VIMEO_ACCESS
"e054f0fc410b509ce839e5096c2f0b32"
PERSONAL_CLIENT_ID
"1"
PERSONAL_CLIENT_SECRET
"Z3uVGkYqgNcU7kyIKgsuuf9DWjUaPKT64rMROt30"
GRANT_CLIENT_ID
"2"
GRANT_CLIENT_SECRET
"Nru9EZLF1t5SQURHgFeHjy7SPMGRqnZxFUXDzeFT"
IPAPI_KEY
"7915a57c9751cec153447dde862d29be"
MAXMIND_USER_ID
"297489"
MAXMIND_LICENSE_KEY
"j1phyjboMA3V"
FFMPEG_PATH
"/usr/bin/ffmpeg"
FFPROBE_PATH
"/usr/bin/ffprobe"
OPENSSL_PATH
"/usr/bin/openssl"
TICKETS_URL
"https://cinetecadimilano.18tickets.it/api/v2/films/expanded.json"
0. Whoops\Handler\PrettyPageHandler