Whoops! There was an error.
UnexpectedValueException
The stream or file "/var/www/vknrlnursingadmission.in/public/storage/logs/laravel-2024-10-05.log" could not be opened: failed to open stream: No space left on device UnexpectedValueException thrown with message "The stream or file "/var/www/vknrlnursingadmission.in/public/storage/logs/laravel-2024-10-05.log" could not be opened: failed to open stream: No space left on device" Stacktrace: #10 UnexpectedValueException in /var/www/vknrlnursingadmission.in/public/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107 #9 Monolog\Handler\StreamHandler:write in /var/www/vknrlnursingadmission.in/public/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:119 #8 Monolog\Handler\RotatingFileHandler:write in /var/www/vknrlnursingadmission.in/public/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:39 #7 Monolog\Handler\AbstractProcessingHandler:handle in /var/www/vknrlnursingadmission.in/public/vendor/monolog/monolog/src/Monolog/Logger.php:344 #6 Monolog\Logger:addRecord in /var/www/vknrlnursingadmission.in/public/vendor/monolog/monolog/src/Monolog/Logger.php:707 #5 Monolog\Logger:error in /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Log/Writer.php:203 #4 Illuminate\Log\Writer:writeLog in /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Log/Writer.php:114 #3 Illuminate\Log\Writer:error in /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:113 #2 Illuminate\Foundation\Exceptions\Handler:report in /var/www/vknrlnursingadmission.in/public/app/Exceptions/Handler.php:47 #1 App\Exceptions\Handler:report in /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:81 #0 Illuminate\Foundation\Bootstrap\HandleExceptions:handleException in [internal]:0
10
UnexpectedValueException
/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php107
9
Monolog\Handler\StreamHandler write
/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php119
8
Monolog\Handler\RotatingFileHandler write
/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php39
7
Monolog\Handler\AbstractProcessingHandler handle
/vendor/monolog/monolog/src/Monolog/Logger.php344
6
Monolog\Logger addRecord
/vendor/monolog/monolog/src/Monolog/Logger.php707
5
Monolog\Logger error
/vendor/laravel/framework/src/Illuminate/Log/Writer.php203
4
Illuminate\Log\Writer writeLog
/vendor/laravel/framework/src/Illuminate/Log/Writer.php114
3
Illuminate\Log\Writer error
/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php113
2
Illuminate\Foundation\Exceptions\Handler report
/app/Exceptions/Handler.php47
1
App\Exceptions\Handler report
/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php81
0
Illuminate\Foundation\Bootstrap\HandleExceptions handleException
[internal]0
/var/www/vknrlnursingadmission.in/public/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: '.$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/vknrlnursingadmission.in/public/storage/logs/laravel-2024-10-05.log" could not be opened: failed to open stream: No space left on device"
    
/var/www/vknrlnursingadmission.in/public/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" => "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
      "context" => array:1 [
        "exception" => ErrorException {
          #message: "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
          #code: 0
          #file: "/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
          #line: 122
          #severity: E_WARNING
        }
      ]
      "level" => 400
      "level_name" => "ERROR"
      "channel" => "production"
      "datetime" => DateTime @1728073469 {
        date: 2024-10-05 01:54:29.338613 Asia/Kolkata (+05:30)
      }
      "extra" => []
      "formatted" => """
        [2024-10-05 01:54:29] production.ERROR: file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device {"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device at /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)\n
        [stacktrace]\n
        #0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'file_put_conten...', '/var/www/vknrln...', 122, Array)\n
        #1 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents('/var/www/vknrln...', 'a:4:{s:6:\"_toke...', 2)\n
        #2 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\Filesystem\\Filesystem->put('/var/www/vknrln...', 'a:4:{s:6:\"_toke...', true)\n
        #3 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\Session\\FileSessionHandler->write('AB80XHg9xAdnMAM...', 'a:4:{s:6:\"_toke...')\n
        #4 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87): Illuminate\\Session\\Store->save()\n
        #5 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\Session\\Middleware\\StartSession->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))\n
        #6 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Foundation\\Http\\Kernel->terminateMiddleware(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))\n
        #7 /var/www/vknrlnursingadmission.in/public/index.php(60): Illuminate\\Foundation\\Http\\Kernel->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))\n
        #8 {main}\n
        "} \n
        """
    ]
    
/var/www/vknrlnursingadmission.in/public/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" => "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
      "context" => array:1 [
        "exception" => ErrorException {
          #message: "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
          #code: 0
          #file: "/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
          #line: 122
          #severity: E_WARNING
        }
      ]
      "level" => 400
      "level_name" => "ERROR"
      "channel" => "production"
      "datetime" => DateTime @1728073469 {
        date: 2024-10-05 01:54:29.338613 Asia/Kolkata (+05:30)
      }
      "extra" => []
      "formatted" => """
        [2024-10-05 01:54:29] production.ERROR: file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device {"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device at /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)\n
        [stacktrace]\n
        #0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'file_put_conten...', '/var/www/vknrln...', 122, Array)\n
        #1 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents('/var/www/vknrln...', 'a:4:{s:6:\"_toke...', 2)\n
        #2 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\Filesystem\\Filesystem->put('/var/www/vknrln...', 'a:4:{s:6:\"_toke...', true)\n
        #3 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\Session\\FileSessionHandler->write('AB80XHg9xAdnMAM...', 'a:4:{s:6:\"_toke...')\n
        #4 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87): Illuminate\\Session\\Store->save()\n
        #5 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\Session\\Middleware\\StartSession->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))\n
        #6 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Foundation\\Http\\Kernel->terminateMiddleware(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))\n
        #7 /var/www/vknrlnursingadmission.in/public/index.php(60): Illuminate\\Foundation\\Http\\Kernel->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))\n
        #8 {main}\n
        "} \n
        """
    ]
    
/var/www/vknrlnursingadmission.in/public/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" => "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
      "context" => array:1 [
        "exception" => ErrorException {
          #message: "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
          #code: 0
          #file: "/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
          #line: 122
          #severity: E_WARNING
        }
      ]
      "level" => 400
      "level_name" => "ERROR"
      "channel" => "production"
      "datetime" => DateTime @1728073469 {
        date: 2024-10-05 01:54:29.338613 Asia/Kolkata (+05:30)
      }
      "extra" => []
      "formatted" => """
        [2024-10-05 01:54:29] production.ERROR: file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device {"exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device at /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)\n
        [stacktrace]\n
        #0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'file_put_conten...', '/var/www/vknrln...', 122, Array)\n
        #1 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents('/var/www/vknrln...', 'a:4:{s:6:\"_toke...', 2)\n
        #2 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php(83): Illuminate\\Filesystem\\Filesystem->put('/var/www/vknrln...', 'a:4:{s:6:\"_toke...', true)\n
        #3 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Session/Store.php(128): Illuminate\\Session\\FileSessionHandler->write('AB80XHg9xAdnMAM...', 'a:4:{s:6:\"_toke...')\n
        #4 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87): Illuminate\\Session\\Store->save()\n
        #5 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\Session\\Middleware\\StartSession->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))\n
        #6 /var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Foundation\\Http\\Kernel->terminateMiddleware(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))\n
        #7 /var/www/vknrlnursingadmission.in/public/index.php(60): Illuminate\\Foundation\\Http\\Kernel->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))\n
        #8 {main}\n
        "} \n
        """
    ]
    
/var/www/vknrlnursingadmission.in/public/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. "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
    
  3. array:1 [
      "exception" => ErrorException {
        #message: "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
        #code: 0
        #file: "/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
        #line: 122
        #severity: E_WARNING
      }
    ]
    
/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Log/Writer.php
     * @return void
     */
    public function write($level, $message, array $context = [])
    {
        $this->writeLog($level, $message, $context);
    }
 
    /**
     * Write a message to Monolog.
     *
     * @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->monolog->{$level}($message, $context);
    }
 
    /**
     * Register a file log handler.
     *
     * @param  string  $path
     * @param  string  $level
     * @return void
     */
    public function useFiles($path, $level = 'debug')
    {
        $this->monolog->pushHandler($handler = new StreamHandler($path, $this->parseLevel($level)));
 
        $handler->setFormatter($this->getDefaultFormatter());
    }
 
    /**
     * Register a daily file log handler.
     *
     * @param  string  $path
Arguments
  1. "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
    
  2. array:1 [
      "exception" => ErrorException {
        #message: "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
        #code: 0
        #file: "/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
        #line: 122
        #severity: E_WARNING
      }
    ]
    
/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Log/Writer.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. "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
    
  3. array:1 [
      "exception" => ErrorException {
        #message: "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
        #code: 0
        #file: "/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
        #line: 122
        #severity: E_WARNING
      }
    ]
    
/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
     */
    public function report(Exception $e)
    {
        if ($this->shouldntReport($e)) {
            return;
        }
 
        if (method_exists($e, 'report')) {
            return $e->report();
        }
 
        try {
            $logger = $this->container->make(LoggerInterface::class);
        } catch (Exception $ex) {
            throw $e; // throw the original exception
        }
 
        $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. "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
    
  2. array:1 [
      "exception" => ErrorException {
        #message: "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
        #code: 0
        #file: "/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
        #line: 122
        #severity: E_WARNING
      }
    ]
    
/var/www/vknrlnursingadmission.in/public/app/Exceptions/Handler.php
        '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)
    {
        
        if($exception instanceof \Illuminate\Auth\Access\AuthorizationException){
            return redirect(url("/"))->with("status", "Access Denied.");
            abort(403, $exception->getMessage());
        }
        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)
    {
        // dd($exception);
        if($exception instanceof MethodNotAllowedHttpException){
            if (!$request->expectsJson()) {
                return redirect()->back()->with("Whoops! Something went wrong. Please try again later.");
                // return response()->json(['error' => 'Unauthenticated.'], 401);
            }
        }elseif($exception instanceof \Swift_TransportException){
            \Log::error($exception);
            return redirect()->back()->with("error", "Whoops! Something went wrong try again later. or Contact Administrator.");
Arguments
  1. ErrorException {
      #message: "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
      #code: 0
      #file: "/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
      #line: 122
      #severity: E_WARNING
    }
    
/var/www/vknrlnursingadmission.in/public/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 {
            $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. ErrorException {
      #message: "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
      #code: 0
      #file: "/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
      #line: 122
      #severity: E_WARNING
    }
    
[internal]
Arguments
  1. ErrorException {
      #message: "file_put_contents(/var/www/vknrlnursingadmission.in/public/storage/framework/sessions/AB80XHg9xAdnMAMp8q4eNc01KSZdNRCR2Ie2uKGz): failed to open stream: No space left on device"
      #code: 0
      #file: "/var/www/vknrlnursingadmission.in/public/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
      #line: 122
      #severity: E_WARNING
    }
    

Environment & details:

Key Value
who
"eyJpdiI6ImxmbDNTQTFsNTVkUjl5VGlrYk5MRUE9PSIsInZhbHVlIjoicTFWY2E0d3BaQUxISUtFeTZUamtrUT09IiwibWFjIjoiYTczOWI2MTFlMDQ0N2Q3Y2U3NDRmNzBhNzk5MWEwMDQxOWE2YzdhYzIxMDYxODg4ZTEyNzQyNzRiOTBjODZlMSJ9"
empty
empty
empty
empty
Key Value
REDIRECT_UNIQUE_ID
"ZwBO-QX33nQ0YSl9v@9cOgAAADE"
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"vknrlnursingadmission.in"
REDIRECT_STATUS
"200"
UNIQUE_ID
"ZwBO-QX33nQ0YSl9v@9cOgAAADE"
HTTPS
"on"
SSL_TLS_SNI
"vknrlnursingadmission.in"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT_ENCODING
"br,gzip"
HTTP_HOST
"vknrlnursingadmission.in"
HTTP_CONNECTION
"Keep-Alive"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SERVER_NAME
"vknrlnursingadmission.in"
SERVER_ADDR
"139.59.77.92"
SERVER_PORT
"443"
REMOTE_ADDR
"44.220.251.236"
DOCUMENT_ROOT
"/var/www/vknrlnursingadmission.in/public"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/vknrlnursingadmission.in/public"
SERVER_ADMIN
"root@localhost"
SCRIPT_FILENAME
"/var/www/vknrlnursingadmission.in/public/index.php"
REMOTE_PORT
"47942"
REDIRECT_QUERY_STRING
"who=eyJpdiI6ImxmbDNTQTFsNTVkUjl5VGlrYk5MRUE9PSIsInZhbHVlIjoicTFWY2E0d3BaQUxISUtFeTZUamtrUT09IiwibWFjIjoiYTczOWI2MTFlMDQ0N2Q3Y2U3NDRmNzBhNzk5MWEwMDQxOWE2YzdhYzIxMDYxODg4ZTEyNzQyNzRiOTBjODZlMSJ9"
REDIRECT_URL
"/student/login"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
"who=eyJpdiI6ImxmbDNTQTFsNTVkUjl5VGlrYk5MRUE9PSIsInZhbHVlIjoicTFWY2E0d3BaQUxISUtFeTZUamtrUT09IiwibWFjIjoiYTczOWI2MTFlMDQ0N2Q3Y2U3NDRmNzBhNzk5MWEwMDQxOWE2YzdhYzIxMDYxODg4ZTEyNzQyNzRiOTBjODZlMSJ9"
REQUEST_URI
"/student/login?who=eyJpdiI6ImxmbDNTQTFsNTVkUjl5VGlrYk5MRUE9PSIsInZhbHVlIjoicTFWY2E0d3BaQUxISUtFeTZUamtrUT09IiwibWFjIjoiYTczOWI2MTFlMDQ0N2Q3Y2U3NDRmNzBhNzk5MWEwMDQxOWE2YzdhYzIxMDYxODg4ZTEyNzQyNzRiOTBjODZlMSJ9"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1728073469.329
REQUEST_TIME
1728073469
APP_NAME
"VKNRL School of Nursing"
APP_ENV
"production"
APP_KEY
"base64:NqZj5hj+TP12GLpy/UEEOY8AAPJNGX8sOnXIOqHCY1I="
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"http://vknrlnursingadmission.in"
APP_LOG
"daily"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"vknrl2021"
DB_USERNAME
"vknrl"
DB_PASSWORD
"Vknrl2020##$$"
OTP_DRIVER
"SMS"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.gmail.com"
MAIL_PORT
"465"
MAIL_USERNAME
"webcomiplghy@gmail.com"
MAIL_PASSWORD
"qwesfbrvcrueyyiw"
MAIL_ENCRYPTION
"ssl"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
ADMIN_REGISTRATION
"false"
DEBUGBAR_ENABLED
"false"
SMS_USER
"webcom"
SMS_PASSWORD
"e3cb9f645bXX"
SMS_SENDERID
"WEBCOM"
SMS_URL
"http://api.pinnacle.in/index.php/sms/send/"
ARCANEDEV_LOGVIEWER_MIDDLEWARE
"web,auth:student"
PAYMENT_ACCESS_ID
"rzp_live_17myM9EhN5ev2j"
PAYMENT_SECRET_KEY
"whLlbhUVLBu9waQ0GrOTUQLh"
Key Value
APP_NAME
"VKNRL School of Nursing"
APP_ENV
"production"
APP_KEY
"base64:NqZj5hj+TP12GLpy/UEEOY8AAPJNGX8sOnXIOqHCY1I="
APP_DEBUG
"true"
APP_LOG_LEVEL
"debug"
APP_URL
"http://vknrlnursingadmission.in"
APP_LOG
"daily"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"vknrl2021"
DB_USERNAME
"vknrl"
DB_PASSWORD
"Vknrl2020##$$"
OTP_DRIVER
"SMS"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.gmail.com"
MAIL_PORT
"465"
MAIL_USERNAME
"webcomiplghy@gmail.com"
MAIL_PASSWORD
"qwesfbrvcrueyyiw"
MAIL_ENCRYPTION
"ssl"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
ADMIN_REGISTRATION
"false"
DEBUGBAR_ENABLED
"false"
SMS_USER
"webcom"
SMS_PASSWORD
"e3cb9f645bXX"
SMS_SENDERID
"WEBCOM"
SMS_URL
"http://api.pinnacle.in/index.php/sms/send/"
ARCANEDEV_LOGVIEWER_MIDDLEWARE
"web,auth:student"
PAYMENT_ACCESS_ID
"rzp_live_17myM9EhN5ev2j"
PAYMENT_SECRET_KEY
"whLlbhUVLBu9waQ0GrOTUQLh"
0. Whoops\Handler\PrettyPageHandler