Symfony Exception

RedisException

HTTP 500 Internal Server Error

Connection refused

Exception

RedisException

  1.             if (! is_null($context Arr::get($config'context'))) {
  2.                 $parameters[] = $context;
  3.             }
  4.         }
  5.         $client->{($persistent 'pconnect' 'connect')}(...$parameters);
  6.     }
  7.     /**
  8.      * Create a new redis cluster instance.
  9.      *
  1.             if (! is_null($context Arr::get($config'context'))) {
  2.                 $parameters[] = $context;
  3.             }
  4.         }
  5.         $client->{($persistent 'pconnect' 'connect')}(...$parameters);
  6.     }
  7.     /**
  8.      * Create a new redis cluster instance.
  9.      *
  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.                 $client->auth($config['password']);
  8.             }
in /var/www/HPIndex6/vendor/illuminate/support/helpers.php -> Illuminate\Redis\Connectors\{closure} (line 263)
  1.     {
  2.         if (is_null($callback)) {
  3.             return new HigherOrderTapProxy($value);
  4.         }
  5.         $callback($value);
  6.         return $value;
  7.     }
  8. }
  1.             }
  2.             if (array_key_exists('compression_level'$config)) {
  3.                 $client->setOption(Redis::OPT_COMPRESSION_LEVEL$config['compression_level']);
  4.             }
  5.         });
  6.     }
  7.     /**
  8.      * Establish a connection with the Redis host.
  9.      *
  1.      */
  2.     public function connect(array $config, array $options)
  3.     {
  4.         $connector = function () use ($config$options) {
  5.             return $this->createClient(array_merge(
  6.                 $config$optionsArr::pull($config'options', [])
  7.             ));
  8.         };
  9.         return new PhpRedisConnection($connector(), $connector$config);
  10.     }
in /var/www/HPIndex6/vendor/illuminate/redis/Connectors/PhpRedisConnector.php -> Illuminate\Redis\Connectors\{closure} (line 32)
  1.             return $this->createClient(array_merge(
  2.                 $config$optionsArr::pull($config'options', [])
  3.             ));
  4.         };
  5.         return new PhpRedisConnection($connector(), $connector$config);
  6.     }
  7.     /**
  8.      * Create a new clustered PhpRedis connection.
  9.      *
  1.         $options $this->config['options'] ?? [];
  2.         if (isset($this->config[$name])) {
  3.             return $this->connector()->connect(
  4.                 $this->parseConnectionConfiguration($this->config[$name]),
  5.                 array_merge(Arr::except($options'parameters'), ['parameters' => Arr::get($options'parameters.'.$nameArr::get($options'parameters', []))])
  6.             );
  7.         }
  8.         if (isset($this->config['clusters'][$name])) {
  9.             return $this->resolveCluster($name);
  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)) {
Repository->get('path_settings', object(Closure)) in /var/www/HPIndex6/app/Helpers.php (line 131)
  1. {
  2.     $cache_path_setting Cache::store('redis')->get('path_settings', function () {
  3.         $path_settings DB::table('path_settings')->first();
  4.         Cache::store('redis')->put('path_settings'$path_settings1200);
  5.         return $path_settings;
  6.     });
  7.     return [
  8.         'register_type' => $cache_path_setting->register_type,
  9.         'parasites_type' => $cache_path_setting->parasites_type,
  10.         'parasites_start' => Str::of($cache_path_setting->parasites_start)->explode(',')->toArray(),
  1.         if($_SERVER['HTTP_HOST'] == 'pc841.yinhe865.com'){
  2.             if (preg_match("/\/\w{4}-yyds\/.*/"$_SERVER['PHP_SELF'])){
  3.                 return response('rnm'404);
  4.             }
  5.         }
  6.         $path_settings get_path_settings();
  7.         $path_domain get_path_domains();
  8.         $page_404 Str::of($path_domain->page_404)->replace('.blade.php''');
  9.         # 空请求头处理
  10.         if (empty($request->server('HTTP_USER_AGENT'))){
  11.             return response(view('path.error.'.$page_404), 404);
  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 function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return ($slice($stack$pipe))($passable);
  6.                 } catch (Throwable $e) {
  7.                     return $this->handleException($passable$e);
  8.                 }
  9.             };
  10.         };
in /var/www/HPIndex6/vendor/illuminate/pipeline/Pipeline.php -> Laravel\Lumen\Routing\{closure} (line 103)
  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.     {
  2.         if (count($middleware) > && ! $this->shouldSkipMiddleware()) {
  3.             return (new Pipeline($this))
  4.                 ->send($this->make('request'))
  5.                 ->through($middleware)
  6.                 ->then($then);
  7.         }
  8.         return $then($this->make('request'));
  9.     }
  1.         if (isset($action['middleware'])) {
  2.             $middleware $this->gatherMiddlewareClassNames($action['middleware']);
  3.             return $this->prepareResponse($this->sendThroughPipeline($middleware, function () {
  4.                 return $this->callActionOnArrayBasedRoute($this['request']->route());
  5.             }));
  6.         }
  7.         return $this->prepareResponse(
  8.             $this->callActionOnArrayBasedRoute($routeInfo)
  9.         );
  1.             case Dispatcher::NOT_FOUND:
  2.                 throw new NotFoundHttpException;
  3.             case Dispatcher::METHOD_NOT_ALLOWED:
  4.                 throw new MethodNotAllowedHttpException($routeInfo[1]);
  5.             case Dispatcher::FOUND:
  6.                 return $this->handleFoundRoute($routeInfo);
  7.         }
  8.     }
  9.     /**
  10.      * Handle a route found by the dispatcher.
  1.                 if (isset($this->router->getRoutes()[$method.$pathInfo])) {
  2.                     return $this->handleFoundRoute([true$this->router->getRoutes()[$method.$pathInfo]['action'], []]);
  3.                 }
  4.                 return $this->handleDispatcherResponse(
  5.                     $this->createDispatcher()->dispatch($method$pathInfo)
  6.                 );
  7.             });
  8.         } catch (Throwable $e) {
  9.             return $this->prepareResponse($this->sendExceptionToHandler($e));
  10.         }
  1.                 ->send($this->make('request'))
  2.                 ->through($middleware)
  3.                 ->then($then);
  4.         }
  5.         return $then($this->make('request'));
  6.     }
  7.     /**
  8.      * Prepare the response for sending.
  9.      *
  1.                 }
  2.                 return $this->handleDispatcherResponse(
  3.                     $this->createDispatcher()->dispatch($method$pathInfo)
  4.                 );
  5.             });
  6.         } catch (Throwable $e) {
  7.             return $this->prepareResponse($this->sendExceptionToHandler($e));
  8.         }
  9.     }
  1.      * @param  \Symfony\Component\HttpFoundation\Request|null  $request
  2.      * @return void
  3.      */
  4.     public function run($request null)
  5.     {
  6.         $response $this->dispatch($request);
  7.         if ($response instanceof SymfonyResponse) {
  8.             $response->send();
  9.         } else {
  10.             echo (string) $response;
Application->run() in /var/www/HPIndex6/public/index.php (line 28)
  1. | the client's browser allowing them to enjoy the creative
  2. | and wonderful application we have prepared for them.
  3. |
  4. */
  5. $app->run();

Stack Trace

RedisException
RedisException:
Connection refused

  at /var/www/HPIndex6/vendor/illuminate/redis/Connectors/PhpRedisConnector.php:153
  at Redis->connect('127.0.0.1', '6379', 0.0, null, 0, 0.0)
     (/var/www/HPIndex6/vendor/illuminate/redis/Connectors/PhpRedisConnector.php:153)
  at Illuminate\Redis\Connectors\PhpRedisConnector->establishConnection(object(Redis), array('host' => '127.0.0.1', 'password' => '', 'port' => '6379', 'database' => '1', 'cluster' => 'redis', 'prefix' => 'hpindex_61_beta_database_', 'parameters' => array()))
     (/var/www/HPIndex6/vendor/illuminate/redis/Connectors/PhpRedisConnector.php:84)
  at Illuminate\Redis\Connectors\PhpRedisConnector->Illuminate\Redis\Connectors\{closure}(object(Redis))
     (/var/www/HPIndex6/vendor/illuminate/support/helpers.php:263)
  at tap(object(Redis), object(Closure))
     (/var/www/HPIndex6/vendor/illuminate/redis/Connectors/PhpRedisConnector.php:121)
  at Illuminate\Redis\Connectors\PhpRedisConnector->createClient(array('host' => '127.0.0.1', 'password' => '', 'port' => '6379', 'database' => '1', 'cluster' => 'redis', 'prefix' => 'hpindex_61_beta_database_', 'parameters' => array()))
     (/var/www/HPIndex6/vendor/illuminate/redis/Connectors/PhpRedisConnector.php:28)
  at Illuminate\Redis\Connectors\PhpRedisConnector->Illuminate\Redis\Connectors\{closure}()
     (/var/www/HPIndex6/vendor/illuminate/redis/Connectors/PhpRedisConnector.php:32)
  at Illuminate\Redis\Connectors\PhpRedisConnector->connect(array('host' => '127.0.0.1', 'password' => '', 'port' => '6379', 'database' => '1'), array('cluster' => 'redis', 'prefix' => 'hpindex_61_beta_database_', 'parameters' => array()))
     (/var/www/HPIndex6/vendor/illuminate/redis/RedisManager.php:112)
  at Illuminate\Redis\RedisManager->resolve('cache')
     (/var/www/HPIndex6/vendor/illuminate/redis/RedisManager.php:91)
  at Illuminate\Redis\RedisManager->connection('cache')
     (/var/www/HPIndex6/vendor/illuminate/cache/RedisStore.php:258)
  at Illuminate\Cache\RedisStore->connection()
     (/var/www/HPIndex6/vendor/illuminate/cache/RedisStore.php:62)
  at Illuminate\Cache\RedisStore->get('path_settings')
     (/var/www/HPIndex6/vendor/illuminate/cache/Repository.php:97)
  at Illuminate\Cache\Repository->get('path_settings', object(Closure))
     (/var/www/HPIndex6/app/Helpers.php:131)
  at get_path_settings()
     (/var/www/HPIndex6/app/Http/Middleware/BlackListMiddleware.php:26)
  at App\Http\Middleware\BlackListMiddleware->handle(object(Request), object(Closure))
     (/var/www/HPIndex6/vendor/illuminate/pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/var/www/HPIndex6/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30)
  at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}(object(Request))
     (/var/www/HPIndex6/vendor/illuminate/pipeline/Pipeline.php:103)
  at Illuminate\Pipeline\Pipeline->then(object(Closure))
     (/var/www/HPIndex6/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:426)
  at Laravel\Lumen\Application->sendThroughPipeline(array('App\\Http\\Middleware\\BlackListMiddleware', 'App\\Http\\Middleware\\StaticMiddleware', 'App\\Http\\Middleware\\LoggingMiddleware', 'App\\Http\\Middleware\\RegisterMiddleware'), object(Closure))
     (/var/www/HPIndex6/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:263)
  at Laravel\Lumen\Application->handleFoundRoute(array(1, array('middleware' => array('black', 'static', 'logging', 'register'), 'uses' => 'App\\Http\\Controllers\\PathShowController@index'), array('path' => '')))
     (/var/www/HPIndex6/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:237)
  at Laravel\Lumen\Application->handleDispatcherResponse(array(1, array('middleware' => array('black', 'static', 'logging', 'register'), 'uses' => 'App\\Http\\Controllers\\PathShowController@index'), array('path' => '')))
     (/var/www/HPIndex6/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:173)
  at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(object(Request))
     (/var/www/HPIndex6/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:429)
  at Laravel\Lumen\Application->sendThroughPipeline(array(), object(Closure))
     (/var/www/HPIndex6/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:175)
  at Laravel\Lumen\Application->dispatch(null)
     (/var/www/HPIndex6/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:112)
  at Laravel\Lumen\Application->run()
     (/var/www/HPIndex6/public/index.php:28)