Symfony Exception

RedisException

HTTP 500 Internal Server Error

Connection refused

Exception

RedisException

  1.         if (version_compare(phpversion('redis'), '5.3.0''>=') && ! is_null($context Arr::get($config'context'))) {
  2.             $parameters[] = $context;
  3.         }
  4.         $client->{$persistent 'pconnect' 'connect'}(...$parameters);
  5.     }
  6.     /**
  7.      * Create a new redis cluster instance.
  8.      *
  1.         if (version_compare(phpversion('redis'), '5.3.0''>=') && ! is_null($context Arr::get($config'context'))) {
  2.             $parameters[] = $context;
  3.         }
  4.         $client->{$persistent 'pconnect' 'connect'}(...$parameters);
  5.     }
  6.     /**
  7.      * Create a new redis cluster instance.
  8.      *
  1.                         ? 'Please remove or rename the Redis facade alias in your "app" configuration file in order to avoid collision with the PHP Redis extension.'
  2.                         'Please make sure the PHP Redis extension is installed and enabled.'
  3.                 );
  4.             }
  5.             $this->establishConnection($client$config);
  6.             if (! empty($config['password'])) {
  7.                 if (isset($config['username']) && $config['username'] !== '' && is_string($config['password'])) {
  8.                     $client->auth([$config['username'], $config['password']]);
  9.                 } else {
in /www/2024/vendor/laravel/framework/src/Illuminate/Support/helpers.php -> Illuminate\Redis\Connectors\{closure} (line 307)
  1.     {
  2.         if (is_null($callback)) {
  3.             return new HigherOrderTapProxy($value);
  4.         }
  5.         $callback($value);
  6.         return $value;
  7.     }
  8. }
  1.      *
  2.      * @throws \LogicException
  3.      */
  4.     protected function createClient(array $config)
  5.     {
  6.         return tap(new Redis, function ($client) use ($config) {
  7.             if ($client instanceof RedisFacade) {
  8.                 throw new LogicException(
  9.                     extension_loaded('redis')
  10.                         ? 'Please remove or rename the Redis facade alias in your "app" configuration file in order to avoid collision with the PHP Redis extension.'
  11.                         'Please make sure the PHP Redis extension is installed and enabled.'
  1.         if (isset($config['prefix'])) {
  2.             $formattedOptions['prefix'] = $config['prefix'];
  3.         }
  4.         $connector = function () use ($config$options$formattedOptions) {
  5.             return $this->createClient(array_merge(
  6.                 $config$options$formattedOptions
  7.             ));
  8.         };
  9.         return new PhpRedisConnection($connector(), $connector$config);
  1.             return $this->createClient(array_merge(
  2.                 $config$options$formattedOptions
  3.             ));
  4.         };
  5.         return new PhpRedisConnection($connector(), $connector$config);
  6.     }
  7.     /**
  8.      * Create a new clustered PhpRedis connection.
  9.      *
  1.         $name $name ?: 'default';
  2.         $options $this->config['options'] ?? [];
  3.         if (isset($this->config[$name])) {
  4.             return $this->connector()->connect(
  5.                 $this->parseConnectionConfiguration($this->config[$name]),
  6.                 array_merge(Arr::except($options'parameters'), ['parameters' => Arr::get($options'parameters.'.$nameArr::get($options'parameters', []))])
  7.             );
  8.         }
  1.         if (isset($this->connections[$name])) {
  2.             return $this->connections[$name];
  3.         }
  4.         return $this->connections[$name] = $this->configure(
  5.             $this->resolve($name), $name
  6.         );
  7.     }
  8.     /**
  9.      * Resolve the given connection by name.
  1.      *
  2.      * @return \Illuminate\Redis\Connections\Connection
  3.      */
  4.     public function connection()
  5.     {
  6.         return $this->redis->connection($this->connection);
  7.     }
  8.     /**
  9.      * Get the Redis connection instance that should be used to manage locks.
  10.      *
  1.      * @param  string|array  $key
  2.      * @return mixed
  3.      */
  4.     public function get($key)
  5.     {
  6.         $value $this->connection()->get($this->prefix.$key);
  7.         return ! is_null($value) ? $this->unserialize($value) : null;
  8.     }
  9.     /**
  1.     {
  2.         if (is_array($key)) {
  3.             return $this->many($key);
  4.         }
  5.         $value $this->store->get($this->itemKey($key));
  6.         // If we could not find the cache value, we will fire the missed event and get
  7.         // the default value for this cache value. This default could be a callback
  8.         // so we will execute the value function which will resolve it if needed.
  9.         if (is_null($value)) {
  1.      * @param  \Closure(): TCacheValue  $callback
  2.      * @return TCacheValue
  3.      */
  4.     public function rememberForever($keyClosure $callback)
  5.     {
  6.         $value $this->get($key);
  7.         // If the item exists in the cache we will just return this immediately
  8.         // and if not we will execute the given Closure and cache the result
  9.         // of that forever so it is available for all subsequent requests.
  10.         if (! is_null($value)) {
  1.      * @param  array  $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call($method$parameters)
  5.     {
  6.         return $this->store()->$method(...$parameters);
  7.     }
  8. }
  1.         if (! $instance) {
  2.             throw new RuntimeException('A facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
Facade::__callStatic() in /www/2024/app/Http/Controllers/PageRedirector.php (line 14)
  1. class PageRedirector implements Redirector
  2. {
  3.     public function getRedirectsFor(Request $request): array
  4.     {
  5.         return \Cache::rememberForever('page_redirects', function () {
  6.             return Redirects::all()->pluck('from''to')->toArray();
  7.         });
  8.     }
  9. }
  1.      *
  2.      * @return \Illuminate\Http\Response|null
  3.      */
  4.     public function getRedirectFor(Request $request)
  5.     {
  6.         $redirects $this->redirector->getRedirectsFor($request);
  7.         collect($redirects)->each(function ($redirects$missingUrl) {
  8.             if (Str::contains($missingUrl'*')) {
  9.                 $missingUrl str_replace('*''{wildcard}'$missingUrl);
  10.             }
  1.         if (! $this->shouldRedirect($response)) {
  2.             return $response;
  3.         }
  4.         $redirectResponse app(MissingPageRouter::class)->getRedirectFor($request);
  5.         return $redirectResponse ?? $response;
  6.     }
  7.     protected function shouldRedirect($response): bool
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      */
  2.     public function handle($requestClosure $next)
  3.     {
  4.         $this->clean($request);
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Clean the request's data.
  9.      *
  1.             if ($callback($request)) {
  2.                 return $next($request);
  3.             }
  4.         }
  5.         return parent::handle($request$next);
  6.     }
  7.     /**
  8.      * Transform the given value.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      */
  2.     public function handle($requestClosure $next)
  3.     {
  4.         $this->clean($request);
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Clean the request's data.
  9.      *
  1.             if ($callback($request)) {
  2.                 return $next($request);
  3.             }
  4.         }
  5.         return parent::handle($request$next);
  6.     }
  7.     /**
  8.      * Transform the given value.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.         if ($max && $request->server('CONTENT_LENGTH') > $max) {
  2.             throw new PostTooLargeException;
  3.         }
  4.         return $next($request);
  5.     }
  6.     /**
  7.      * Determine the server 'post_max_size' as bytes.
  8.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.                 null,
  2.                 $this->getHeaders($data)
  3.             );
  4.         }
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Determine if the incoming request has a maintenance mode bypass cookie.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      * @return \Illuminate\Http\Response
  2.      */
  3.     public function handle($requestClosure $next)
  4.     {
  5.         if (! $this->hasMatchingPath($request)) {
  6.             return $next($request);
  7.         }
  8.         $this->cors->setOptions($this->container['config']->get('cors', []));
  9.         if ($this->cors->isPreflightRequest($request)) {
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.     {
  2.         $request::setTrustedProxies([], $this->getTrustedHeaderNames());
  3.         $this->setTrustedProxyIpAddresses($request);
  4.         return $next($request);
  5.     }
  6.     /**
  7.      * Sets the trusted proxies on the request.
  8.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.     {
  2.         if ($this->app->bound(HubInterface::class)) {
  3.             $this->startTransaction($request$this->app->make(HubInterface::class));
  4.         }
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Handle the application termination.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.     {
  2.         $pipeline array_reduce(
  3.             array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
  4.         );
  5.         return $pipeline($this->passable);
  6.     }
  7.     /**
  8.      * Run the pipeline and return the result.
  9.      *
  1.         $this->bootstrap();
  2.         return (new Pipeline($this->app))
  3.                     ->send($request)
  4.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  5.                     ->then($this->dispatchToRouter());
  6.     }
  7.     /**
  8.      * Bootstrap the application for HTTP requests.
  9.      *
  1.         $this->requestStartedAt Carbon::now();
  2.         try {
  3.             $request->enableHttpMethodParameterOverride();
  4.             $response $this->sendRequestThroughRouter($request);
  5.         } catch (Throwable $e) {
  6.             $this->reportException($e);
  7.             $response $this->renderException($request$e);
  8.         }
Kernel->handle() in /www/2024/public/index.php (line 51)
  1. $app = require_once __DIR__.'/../bootstrap/app.php';
  2. $kernel $app->make(Kernel::class);
  3. $response $kernel->handle(
  4.     $request Request::capture()
  5. )->send();
  6. $kernel->terminate($request$response);

Stack Trace

RedisException
RedisException:
Connection refused

  at /www/2024/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:159
  at Redis->connect()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:159)
  at Illuminate\Redis\Connectors\PhpRedisConnector->establishConnection()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:88)
  at Illuminate\Redis\Connectors\PhpRedisConnector->Illuminate\Redis\Connectors\{closure}()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Support/helpers.php:307)
  at tap()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:79)
  at Illuminate\Redis\Connectors\PhpRedisConnector->createClient()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:33)
  at Illuminate\Redis\Connectors\PhpRedisConnector->Illuminate\Redis\Connectors\{closure}()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:38)
  at Illuminate\Redis\Connectors\PhpRedisConnector->connect()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php:110)
  at Illuminate\Redis\RedisManager->resolve()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php:91)
  at Illuminate\Redis\RedisManager->connection()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php:330)
  at Illuminate\Cache\RedisStore->connection()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php:65)
  at Illuminate\Cache\RedisStore->get()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:98)
  at Illuminate\Cache\Repository->get()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:428)
  at Illuminate\Cache\Repository->rememberForever()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:429)
  at Illuminate\Cache\CacheManager->__call()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:355)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/www/2024/app/Http/Controllers/PageRedirector.php:14)
  at App\Http\Controllers\PageRedirector->getRedirectsFor()
     (/www/2024/vendor/spatie/laravel-missing-page-redirector/src/MissingPageRouter.php:35)
  at Spatie\MissingPageRedirector\MissingPageRouter->getRedirectFor()
     (/www/2024/vendor/spatie/laravel-missing-page-redirector/src/RedirectsMissingPages.php:18)
  at Spatie\MissingPageRedirector\RedirectsMissingPages->handle()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
  at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
  at Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
  at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:99)
  at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:49)
  at Illuminate\Http\Middleware\HandleCors->handle()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:39)
  at Illuminate\Http\Middleware\TrustProxies->handle()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/2024/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Middleware.php:97)
  at Sentry\Laravel\Tracing\Middleware->handle()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
  at Illuminate\Pipeline\Pipeline->then()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/www/2024/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/www/2024/public/index.php:51)