"""
Error when analyzing route 'GET|HEAD api/admin/licence-inventory/audit-events' (App\Http\Controllers\LicenceInventoryReportController@auditDrillDown): SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5433 failed: FATAL:  password authentication failed for user "root"\n
connection to server at "127.0.0.1", port 5433 failed: FATAL:  password authentication failed for user "root" (Connection: audit_connection, Host: 127.0.0.1, Port: 5433, Database: lesotho_fiscalcloud_audit, SQL: select exists (select 1 from pg_class c, pg_namespace n where n.nspname = current_schema() and c.relname = 'audit_events' and c.relkind in ('r', 'p') and n.oid = c.relnamespace)) – /var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 838
""" // vendor/dedoc/scramble/src/Generator.php:127
tempnam(): file created in the system's temporary directory (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

tempnam(): file created in the system's temporary directory

Exception

ErrorException

Show exception properties
ErrorException {#1534
  #severity: E_NOTICE
}
  1. // If the path already exists and is a symlink, get the real path...
  2. clearstatcache(true, $path);
  3. $path = realpath($path) ?: $path;
  4. $tempPath = tempnam(dirname($path), basename($path));
  5. // Fix permissions of tempPath because `tempnam()` creates it with permissions set to 0600...
  6. if (! is_null($mode)) {
  7. @chmod($tempPath, $mode);
  8. } else {
  1. * @return callable
  2. */
  3. protected function forwardsTo($method)
  4. {
  5. return fn (...$arguments) => static::$app
  6. ? $this->{$method}(...$arguments)
  7. : false;
  8. }
  9. /**
  10. * Determine if the error level is a deprecation.
HandleExceptions->{closure:Illuminate\Foundation\Bootstrap\HandleExceptions::forwardsTo():261}()
  1. // If the path already exists and is a symlink, get the real path...
  2. clearstatcache(true, $path);
  3. $path = realpath($path) ?: $path;
  4. $tempPath = tempnam(dirname($path), basename($path));
  5. // Fix permissions of tempPath because `tempnam()` creates it with permissions set to 0600...
  6. if (! is_null($mode)) {
  7. @chmod($tempPath, $mode);
  8. } else {
  1. $this->ensureCompiledDirectoryExists(
  2. $compiledPath = $this->getCompiledPath($this->getPath())
  3. );
  4. if (! $this->files->exists($compiledPath)) {
  5. $this->files->replace($compiledPath, $contents);
  6. return;
  7. }
  8. $compiledHash = $this->files->hash($compiledPath, 'xxh128');
  1. // If this given view has expired, which means it has simply been edited since
  2. // it was last compiled, we will re-compile the views so we can evaluate a
  3. // fresh copy of the view. We'll pass the compiler the path of the view.
  4. if (! isset($this->compiledOrNotExpired[$path]) && $this->compiler->isExpired($path)) {
  5. $this->compiler->compile($path);
  6. }
  7. // Once we have the path to the compiled file, we will evaluate the paths with
  8. // typical PHP just like any other templates. We also keep a stack of views
  9. // which have been rendered for right exception messages to be generated.
  1. *
  2. * @return string
  3. */
  4. protected function getContents()
  5. {
  6. return $this->engine->get($this->path, $this->gatherData());
  7. }
  8. /**
  9. * Get the data bound to the view instance.
  10. *
  1. // clear out the sections for any separate views that may be rendered.
  2. $this->factory->incrementRender();
  3. $this->factory->callComposer($this);
  4. $contents = $this->getContents();
  5. // Once we've finished rendering the view, we'll decrement the render count
  6. // so that each section gets flushed out next time a view is created and
  7. // no old sections are staying around in the memory of an environment.
  8. $this->factory->decrementRender();
  1. * @throws \Throwable
  2. */
  3. public function render(?callable $callback = null)
  4. {
  5. try {
  6. $contents = $this->renderContents();
  7. $response = isset($callback) ? $callback($this, $contents) : null;
  8. // Once we have the contents of the view, we will flush the sections if we are
  9. // done rendering all views so that there is nothing left hanging over when
  1. $exception = new Exception($flattenException, $request, $this->listener, $this->basePath);
  2. $exceptionAsMarkdown = $this->viewFactory->make('laravel-exceptions-renderer::markdown', [
  3. 'exception' => $exception,
  4. ])->render();
  5. return $this->viewFactory->make('laravel-exceptions-renderer::show', [
  6. 'exception' => $exception,
  7. 'exceptionAsMarkdown' => $exceptionAsMarkdown,
  8. ])->render();
  1. try {
  2. if (config('app.debug')) {
  3. if (app()->has(ExceptionRenderer::class)) {
  4. return $this->renderExceptionWithCustomRenderer($e);
  5. } elseif ($this->container->bound(Renderer::class)) {
  6. return $this->container->make(Renderer::class)->render(request(), $e);
  7. }
  8. }
  9. return $this->renderExceptionWithSymfony($e, config('app.debug'));
  10. } catch (Throwable $e) {
  1. * @return \Symfony\Component\HttpFoundation\Response
  2. */
  3. protected function convertExceptionToResponse(Throwable $e)
  4. {
  5. return new SymfonyResponse(
  6. $this->renderExceptionContent($e),
  7. $this->isHttpException($e) ? $e->getStatusCode() : 500,
  8. $this->isHttpException($e) ? $e->getHeaders() : []
  9. );
  10. }
  1. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
  2. */
  3. protected function prepareResponse($request, Throwable $e)
  4. {
  5. if (! $this->isHttpException($e) && config('app.debug')) {
  6. return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e)->prepare($request);
  7. }
  8. if (! $this->isHttpException($e)) {
  9. $e = new HttpException(500, $e->getMessage(), $e);
  10. }
  1. */
  2. protected function renderExceptionResponse($request, Throwable $e)
  3. {
  4. return $this->shouldReturnJson($request, $e)
  5. ? $this->prepareJsonResponse($request, $e)
  6. : $this->prepareResponse($request, $e);
  7. }
  8. /**
  9. * Convert an authentication exception into a response.
  10. *
  1. return $this->finalizeRenderedResponse($request, match (true) {
  2. $e instanceof HttpResponseException => $e->getResponse(),
  3. $e instanceof AuthenticationException => $this->unauthenticated($request, $e),
  4. $e instanceof ValidationException => $this->convertValidationExceptionToResponse($e, $request),
  5. default => $this->renderExceptionResponse($request, $e),
  6. }, $e);
  7. }
  8. /**
  9. * Prepare the final, rendered response to be returned to the browser.
  1. * @param \Throwable $e
  2. * @return void
  3. */
  4. protected function renderHttpResponse(Throwable $e)
  5. {
  6. $this->getExceptionHandler()->render(static::$app['request'], $e)->send();
  7. }
  8. /**
  9. * Handle the PHP shutdown event.
  10. *
  1. if ($exceptionHandlerFailed ?? false) {
  2. exit(1);
  3. }
  4. } else {
  5. $this->renderHttpResponse($e);
  6. }
  7. }
  8. /**
  9. * Render an exception to the console.
  1. * @return callable
  2. */
  3. protected function forwardsTo($method)
  4. {
  5. return fn (...$arguments) => static::$app
  6. ? $this->{$method}(...$arguments)
  7. : false;
  8. }
  9. /**
  10. * Determine if the error level is a deprecation.
HandleExceptions->{closure:Illuminate\Foundation\Bootstrap\HandleExceptions::forwardsTo():261}()

Stack Trace

ErrorException
ErrorException:
tempnam(): file created in the system's temporary directory

  at /var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:222
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:262)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->{closure:Illuminate\Foundation\Bootstrap\HandleExceptions::forwardsTo():261}()
  at tempnam()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:222)
  at Illuminate\Filesystem\Filesystem->replace()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php:201)
  at Illuminate\View\Compilers\BladeCompiler->compile()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:68)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/View/View.php:208)
  at Illuminate\View\View->getContents()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/View/View.php:191)
  at Illuminate\View\View->renderContents()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/View/View.php:160)
  at Illuminate\View\View->render()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php:95)
  at Illuminate\Foundation\Exceptions\Renderer\Renderer->render()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:879)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:860)
  at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:839)
  at Illuminate\Foundation\Exceptions\Handler->prepareResponse()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:738)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:626)
  at Illuminate\Foundation\Exceptions\Handler->render()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:225)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:202)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
     (/var/www/lesotho-fiscalcloud/virtual_fiscalization_backend_ls/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:262)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->{closure:Illuminate\Foundation\Bootstrap\HandleExceptions::forwardsTo():261}()