Symfony Exception

PDOException QueryException

HTTP 500 Internal Server Error

SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = aquapoo1_new2 and table_name = mail_settings and table_type = 'BASE TABLE')

Exceptions 2

Illuminate\Database\ QueryException

Show exception properties
Illuminate\Database\QueryException {#205
  +errorInfo: array:3 [
    0 => "HY000"
    1 => 2002
    2 => "Connection refused"
  ]
  #sql: "select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = 'BASE TABLE'"
  #bindings: array:2 [
    0 => "aquapoo1_new2"
    1 => "mail_settings"
  ]
}
  1.         // If an exception occurs when attempting to run a query, we'll format the error
  2.         // message to include the bindings with SQL, which will make this exception a
  3.         // lot more helpful to the developer instead of just the database's errors.
  4.         catch (Exception $e) {
  5.             throw new QueryException(
  6.                 $query$this->prepareBindings($bindings), $e
  7.             );
  8.         }
  9.     }
  1.     protected function tryAgainIfCausedByLostConnection(QueryException $e$query$bindingsClosure $callback)
  2.     {
  3.         if ($this->causedByLostConnection($e->getPrevious())) {
  4.             $this->reconnect();
  5.             return $this->runQueryCallback($query$bindings$callback);
  6.         }
  7.         throw $e;
  8.     }
  1.         if ($this->transactions >= 1) {
  2.             throw $e;
  3.         }
  4.         return $this->tryAgainIfCausedByLostConnection(
  5.             $e$query$bindings$callback
  6.         );
  7.     }
  8.     /**
  9.      * Handle a query exception that occurred during query execution.
  1.         // to re-establish connection and re-run the query with a fresh connection.
  2.         try {
  3.             $result $this->runQueryCallback($query$bindings$callback);
  4.         } catch (QueryException $e) {
  5.             $result $this->handleQueryException(
  6.                 $e$query$bindings$callback
  7.             );
  8.         }
  9.         // Once we have run the query we will calculate the time that it took to run and
  10.         // then log the query, bindings, and execution time so we will report them on
  1.             $this->bindValues($statement$this->prepareBindings($bindings));
  2.             $statement->execute();
  3.             return $statement->fetchAll();
  4.         });
  5.     }
  6.     /**
  7.      * Run a select statement against the database and returns a generator.
  8.      *
  1.      * @param  array  $bindings
  2.      * @return array
  3.      */
  4.     public function selectFromWriteConnection($query$bindings = [])
  5.     {
  6.         return $this->select($query$bindingsfalse);
  7.     }
  8.     /**
  9.      * Run a select statement against the database.
  10.      *
  1.     public function hasTable($table)
  2.     {
  3.         $table $this->connection->getTablePrefix().$table;
  4.         return count($this->connection->selectFromWriteConnection(
  5.             $this->grammar->compileTableExists(), [$this->connection->getDatabaseName(), $table]
  6.         )) > 0;
  7.     }
  8.     /**
  9.      * Get the column listing for a given table.
  1.         if (! $instance) {
  2.             throw new RuntimeException('A facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
Facade::__callStatic('hasTable', array('mail_settings')) in /var/www/vhosts/aquapool.kz/new.aquapool.kz/app/Modules/Mail/Providers/MailServiceProvider.php (line 29)
  1.      *
  2.      * @return void
  3.      */
  4.     public function register()
  5.     {
  6.         if (Schema::hasTable('mail_settings')) {
  7.             $mail collect(DB::table('mail_settings')->get());
  8.             $config = [
  9.                 'default' => 'sendmail',
  10.                 'mailers' => [
  1.         // a more convenient way of specifying your service provider classes.
  2.         if (is_string($provider)) {
  3.             $provider $this->resolveProvider($provider);
  4.         }
  5.         $provider->register();
  6.         // If there are bindings / singletons set as properties on the provider we
  7.         // will spin through them and register them with the application, which
  8.         // serves as a convenience layer while registering a lot of bindings.
  9.         if (property_exists($provider'bindings')) {
  1.         // We will go ahead and register all of the eagerly loaded providers with the
  2.         // application so their services can be registered with the application as
  3.         // a provided service. Then we will set the deferred service list on it.
  4.         foreach ($manifest['eager'] as $provider) {
  5.             $this->app->register($provider);
  6.         }
  7.         $this->app->addDeferredServices($manifest['deferred']);
  8.     }
  1.                         ->partition(fn ($provider) => str_starts_with($provider'Illuminate\\'));
  2.         $providers->splice(10, [$this->make(PackageManifest::class)->providers()]);
  3.         (new ProviderRepository($this, new Filesystem$this->getCachedServicesPath()))
  4.                     ->load($providers->collapse()->toArray());
  5.     }
  6.     /**
  7.      * Register a service provider with the application.
  8.      *
  1.      * @param  \Illuminate\Contracts\Foundation\Application  $app
  2.      * @return void
  3.      */
  4.     public function bootstrap(Application $app)
  5.     {
  6.         $app->registerConfiguredProviders();
  7.     }
  8. }
  1.         $this->hasBeenBootstrapped true;
  2.         foreach ($bootstrappers as $bootstrapper) {
  3.             $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
  4.             $this->make($bootstrapper)->bootstrap($this);
  5.             $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
  6.         }
  7.     }
  1.      * @return void
  2.      */
  3.     public function bootstrap()
  4.     {
  5.         if (! $this->app->hasBeenBootstrapped()) {
  6.             $this->app->bootstrapWith($this->bootstrappers());
  7.         }
  8.     }
  9.     /**
  10.      * Get the route dispatcher callback.
  1.     {
  2.         $this->app->instance('request'$request);
  3.         Facade::clearResolvedInstance('request');
  4.         $this->bootstrap();
  5.         return (new Pipeline($this->app))
  6.                     ->send($request)
  7.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  8.                     ->then($this->dispatchToRouter());
  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(object(Request)) in /var/www/vhosts/aquapool.kz/new.aquapool.kz/public/index.php (line 54)
  1. $curs_eu file_get_contents($_SERVER['DOCUMENT_ROOT'].'/price_eu.txt');
  2. $kernel $app->make(Kernel::class);
  3. $response $kernel->handle(
  4.     $request Request::capture()
  5. )->send();
  6. $kernel->terminate($request$response);

PDOException

SQLSTATE[HY000] [2002] Connection refused

  1.     {
  2.         if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
  3.             return new PDOConnection($dsn$username$password$options);
  4.         }
  5.         return new PDO($dsn$username$password$options);
  6.     }
  7.     /**
  8.      * Determine if the connection is persistent.
  9.      *
  1.     {
  2.         if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
  3.             return new PDOConnection($dsn$username$password$options);
  4.         }
  5.         return new PDO($dsn$username$password$options);
  6.     }
  7.     /**
  8.      * Determine if the connection is persistent.
  9.      *
  1.      * @throws \Exception
  2.      */
  3.     protected function tryAgainIfCausedByLostConnection(Throwable $e$dsn$username$password$options)
  4.     {
  5.         if ($this->causedByLostConnection($e)) {
  6.             return $this->createPdoConnection($dsn$username$password$options);
  7.         }
  8.         throw $e;
  9.     }
  1.             return $this->createPdoConnection(
  2.                 $dsn$username$password$options
  3.             );
  4.         } catch (Exception $e) {
  5.             return $this->tryAgainIfCausedByLostConnection(
  6.                 $e$dsn$username$password$options
  7.             );
  8.         }
  9.     }
  10.     /**
  1.         $options $this->getOptions($config);
  2.         // We need to grab the PDO options that should be used while making the brand
  3.         // new connection instance. The PDO options control various aspects of the
  4.         // connection's behavior, and some might be specified by the developers.
  5.         $connection $this->createConnection($dsn$config$options);
  6.         if (! empty($config['database'])) {
  7.             $connection->exec("use `{$config['database']}`;");
  8.         }
  1.         return function () use ($config) {
  2.             foreach (Arr::shuffle($this->parseHosts($config)) as $host) {
  3.                 $config['host'] = $host;
  4.                 try {
  5.                     return $this->createConnector($config)->connect($config);
  6.                 } catch (PDOException $e) {
  7.                     continue;
  8.                 }
  9.             }
ConnectionFactory->Illuminate\Database\Connectors\{closure}()
  1.      * @return \PDO
  2.      */
  3.     public function getPdo()
  4.     {
  5.         if ($this->pdo instanceof Closure) {
  6.             return $this->pdo call_user_func($this->pdo);
  7.         }
  8.         return $this->pdo;
  9.     }
  1.      * @param  bool  $useReadPdo
  2.      * @return \PDO
  3.      */
  4.     protected function getPdoForSelect($useReadPdo true)
  5.     {
  6.         return $useReadPdo $this->getReadPdo() : $this->getPdo();
  7.     }
  8.     /**
  9.      * Run an insert statement against the database.
  10.      *
  1.             // For select statements, we'll simply execute the query and return an array
  2.             // of the database result set. Each element in the array will be a single
  3.             // row from the database table, and will either be an array or objects.
  4.             $statement $this->prepared(
  5.                 $this->getPdoForSelect($useReadPdo)->prepare($query)
  6.             );
  7.             $this->bindValues($statement$this->prepareBindings($bindings));
  8.             $statement->execute();
  1.     {
  2.         // To execute the statement, we'll simply call the callback, which will actually
  3.         // run the SQL against the PDO connection. Then we can calculate the time it
  4.         // took to execute and log the query SQL, bindings and time in our memory.
  5.         try {
  6.             return $callback($query$bindings);
  7.         }
  8.         // If an exception occurs when attempting to run a query, we'll format the error
  9.         // message to include the bindings with SQL, which will make this exception a
  10.         // lot more helpful to the developer instead of just the database's errors.
  1.     protected function tryAgainIfCausedByLostConnection(QueryException $e$query$bindingsClosure $callback)
  2.     {
  3.         if ($this->causedByLostConnection($e->getPrevious())) {
  4.             $this->reconnect();
  5.             return $this->runQueryCallback($query$bindings$callback);
  6.         }
  7.         throw $e;
  8.     }
  1.         if ($this->transactions >= 1) {
  2.             throw $e;
  3.         }
  4.         return $this->tryAgainIfCausedByLostConnection(
  5.             $e$query$bindings$callback
  6.         );
  7.     }
  8.     /**
  9.      * Handle a query exception that occurred during query execution.
  1.         // to re-establish connection and re-run the query with a fresh connection.
  2.         try {
  3.             $result $this->runQueryCallback($query$bindings$callback);
  4.         } catch (QueryException $e) {
  5.             $result $this->handleQueryException(
  6.                 $e$query$bindings$callback
  7.             );
  8.         }
  9.         // Once we have run the query we will calculate the time that it took to run and
  10.         // then log the query, bindings, and execution time so we will report them on
  1.             $this->bindValues($statement$this->prepareBindings($bindings));
  2.             $statement->execute();
  3.             return $statement->fetchAll();
  4.         });
  5.     }
  6.     /**
  7.      * Run a select statement against the database and returns a generator.
  8.      *
  1.      * @param  array  $bindings
  2.      * @return array
  3.      */
  4.     public function selectFromWriteConnection($query$bindings = [])
  5.     {
  6.         return $this->select($query$bindingsfalse);
  7.     }
  8.     /**
  9.      * Run a select statement against the database.
  10.      *
  1.     public function hasTable($table)
  2.     {
  3.         $table $this->connection->getTablePrefix().$table;
  4.         return count($this->connection->selectFromWriteConnection(
  5.             $this->grammar->compileTableExists(), [$this->connection->getDatabaseName(), $table]
  6.         )) > 0;
  7.     }
  8.     /**
  9.      * Get the column listing for a given table.
  1.         if (! $instance) {
  2.             throw new RuntimeException('A facade root has not been set.');
  3.         }
  4.         return $instance->$method(...$args);
  5.     }
  6. }
Facade::__callStatic('hasTable', array('mail_settings')) in /var/www/vhosts/aquapool.kz/new.aquapool.kz/app/Modules/Mail/Providers/MailServiceProvider.php (line 29)
  1.      *
  2.      * @return void
  3.      */
  4.     public function register()
  5.     {
  6.         if (Schema::hasTable('mail_settings')) {
  7.             $mail collect(DB::table('mail_settings')->get());
  8.             $config = [
  9.                 'default' => 'sendmail',
  10.                 'mailers' => [
  1.         // a more convenient way of specifying your service provider classes.
  2.         if (is_string($provider)) {
  3.             $provider $this->resolveProvider($provider);
  4.         }
  5.         $provider->register();
  6.         // If there are bindings / singletons set as properties on the provider we
  7.         // will spin through them and register them with the application, which
  8.         // serves as a convenience layer while registering a lot of bindings.
  9.         if (property_exists($provider'bindings')) {
  1.         // We will go ahead and register all of the eagerly loaded providers with the
  2.         // application so their services can be registered with the application as
  3.         // a provided service. Then we will set the deferred service list on it.
  4.         foreach ($manifest['eager'] as $provider) {
  5.             $this->app->register($provider);
  6.         }
  7.         $this->app->addDeferredServices($manifest['deferred']);
  8.     }
  1.                         ->partition(fn ($provider) => str_starts_with($provider'Illuminate\\'));
  2.         $providers->splice(10, [$this->make(PackageManifest::class)->providers()]);
  3.         (new ProviderRepository($this, new Filesystem$this->getCachedServicesPath()))
  4.                     ->load($providers->collapse()->toArray());
  5.     }
  6.     /**
  7.      * Register a service provider with the application.
  8.      *
  1.      * @param  \Illuminate\Contracts\Foundation\Application  $app
  2.      * @return void
  3.      */
  4.     public function bootstrap(Application $app)
  5.     {
  6.         $app->registerConfiguredProviders();
  7.     }
  8. }
  1.         $this->hasBeenBootstrapped true;
  2.         foreach ($bootstrappers as $bootstrapper) {
  3.             $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
  4.             $this->make($bootstrapper)->bootstrap($this);
  5.             $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
  6.         }
  7.     }
  1.      * @return void
  2.      */
  3.     public function bootstrap()
  4.     {
  5.         if (! $this->app->hasBeenBootstrapped()) {
  6.             $this->app->bootstrapWith($this->bootstrappers());
  7.         }
  8.     }
  9.     /**
  10.      * Get the route dispatcher callback.
  1.     {
  2.         $this->app->instance('request'$request);
  3.         Facade::clearResolvedInstance('request');
  4.         $this->bootstrap();
  5.         return (new Pipeline($this->app))
  6.                     ->send($request)
  7.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  8.                     ->then($this->dispatchToRouter());
  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(object(Request)) in /var/www/vhosts/aquapool.kz/new.aquapool.kz/public/index.php (line 54)
  1. $curs_eu file_get_contents($_SERVER['DOCUMENT_ROOT'].'/price_eu.txt');
  2. $kernel $app->make(Kernel::class);
  3. $response $kernel->handle(
  4.     $request Request::capture()
  5. )->send();
  6. $kernel->terminate($request$response);

Stack Traces 2

[2/2] QueryException
Illuminate\Database\QueryException:
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = aquapoo1_new2 and table_name = mail_settings and table_type = 'BASE TABLE')

  at /var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760
  at Illuminate\Database\Connection->runQueryCallback('select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'), object(Closure))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:899)
  at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(object(QueryException), 'select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'), object(Closure))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:879)
  at Illuminate\Database\Connection->handleQueryException(object(QueryException), 'select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'), object(Closure))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:723)
  at Illuminate\Database\Connection->run('select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'), object(Closure))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:422)
  at Illuminate\Database\Connection->select('select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'), false)
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:392)
  at Illuminate\Database\Connection->selectFromWriteConnection('select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php:44)
  at Illuminate\Database\Schema\MySqlBuilder->hasTable('mail_settings')
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:338)
  at Illuminate\Support\Facades\Facade::__callStatic('hasTable', array('mail_settings'))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/app/Modules/Mail/Providers/MailServiceProvider.php:29)
  at Modules\Mail\Providers\MailServiceProvider->register()
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:687)
  at Illuminate\Foundation\Application->register(object(MailServiceProvider))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75)
  at Illuminate\Foundation\ProviderRepository->load(array('Illuminate\\Auth\\AuthServiceProvider', 'Illuminate\\Broadcasting\\BroadcastServiceProvider', 'Illuminate\\Bus\\BusServiceProvider', 'Illuminate\\Cache\\CacheServiceProvider', 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider', 'Illuminate\\Cookie\\CookieServiceProvider', 'Illuminate\\Database\\DatabaseServiceProvider', 'Illuminate\\Encryption\\EncryptionServiceProvider', 'Illuminate\\Filesystem\\FilesystemServiceProvider', 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider', 'Illuminate\\Hashing\\HashServiceProvider', 'Illuminate\\Mail\\MailServiceProvider', 'Illuminate\\Notifications\\NotificationServiceProvider', 'Illuminate\\Pagination\\PaginationServiceProvider', 'Illuminate\\Pipeline\\PipelineServiceProvider', 'Illuminate\\Queue\\QueueServiceProvider', 'Illuminate\\Redis\\RedisServiceProvider', 'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider', 'Illuminate\\Session\\SessionServiceProvider', 'Illuminate\\Translation\\TranslationServiceProvider', 'Illuminate\\Validation\\ValidationServiceProvider', 'Illuminate\\View\\ViewServiceProvider', 'Barryvdh\\HttpCache\\ServiceProvider', 'Barryvdh\\StackMiddleware\\ServiceProvider', 'Darryldecode\\Cart\\CartServiceProvider', 'Diglactic\\Breadcrumbs\\ServiceProvider', 'Dive\\Wishlist\\WishlistServiceProvider', 'LaravelTrailingSlash\\RoutingServiceProvider', 'Intervention\\Image\\ImageServiceProvider', 'Kalnoy\\Nestedset\\NestedSetServiceProvider', 'Laravel\\Sanctum\\SanctumServiceProvider', 'Laravel\\Scout\\ScoutServiceProvider', 'Laravel\\Tinker\\TinkerServiceProvider', 'Mcamara\\LaravelLocalization\\LaravelLocalizationServiceProvider', 'Carbon\\Laravel\\ServiceProvider', 'Termwind\\Laravel\\TermwindServiceProvider', 'Orchid\\Icons\\IconServiceProvider', 'Orchid\\Platform\\Providers\\FoundationServiceProvider', 'Spatie\\ResponseCache\\ResponseCacheServiceProvider', 'Spatie\\Translatable\\TranslatableServiceProvider', 'Tabuna\\Breadcrumbs\\BreadcrumbsServiceProvider', 'UniSharp\\LaravelFilemanager\\LaravelFilemanagerServiceProvider', 'Watson\\Active\\ActiveServiceProvider', 'App\\Providers\\AppServiceProvider', 'App\\Providers\\AuthServiceProvider', 'App\\Providers\\EventServiceProvider', 'App\\Providers\\RouteServiceProvider', 'Intervention\\Image\\ImageServiceProvider', 'App\\Providers\\ComposerServiceProvider', 'Barryvdh\\HttpCache\\ServiceProvider', 'Modules\\Mail\\Providers\\MailServiceProvider', 'Darryldecode\\Cart\\CartServiceProvider', 'App\\Providers\\AddSlashServiceProvider'))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:664)
  at Illuminate\Foundation\Application->registerConfiguredProviders()
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17)
  at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(object(Application))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:242)
  at Illuminate\Foundation\Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders'))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:160)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:134)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/public/index.php:54)                
[1/2] PDOException
PDOException:
SQLSTATE[HY000] [2002] Connection refused

  at /var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
  at PDO->__construct('mysql:host=srv-pleskdb44.ps.kz:3306;port=3306;dbname=aquapoo1_new2', 'aquapoo1_alpv', 'P65qgbp65qgb@', array(0, 2, 0, false, false))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70)
  at Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=srv-pleskdb44.ps.kz:3306;port=3306;dbname=aquapoo1_new2', 'aquapoo1_alpv', 'P65qgbp65qgb@', array(0, 2, 0, false, false))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:100)
  at Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection(object(PDOException), 'mysql:host=srv-pleskdb44.ps.kz:3306;port=3306;dbname=aquapoo1_new2', 'aquapoo1_alpv', 'P65qgbp65qgb@', array(0, 2, 0, false, false))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:50)
  at Illuminate\Database\Connectors\Connector->createConnection('mysql:host=srv-pleskdb44.ps.kz:3306;port=3306;dbname=aquapoo1_new2', array('driver' => 'mysql', 'host' => 'srv-pleskdb44.ps.kz:3306', 'port' => '3306', 'database' => 'aquapoo1_new2', 'username' => 'aquapoo1_alpv', 'password' => 'P65qgbp65qgb@', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_general_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, 'engine' => null, 'options' => array(), 'name' => 'mysql'), array(0, 2, 0, false, false))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24)
  at Illuminate\Database\Connectors\MySqlConnector->connect(array('driver' => 'mysql', 'host' => 'srv-pleskdb44.ps.kz:3306', 'port' => '3306', 'database' => 'aquapoo1_new2', 'username' => 'aquapoo1_alpv', 'password' => 'P65qgbp65qgb@', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_general_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, 'engine' => null, 'options' => array(), 'name' => 'mysql'))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:184)
  at Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
  at call_user_func(object(Closure))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1181)
  at Illuminate\Database\Connection->getPdo()
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:486)
  at Illuminate\Database\Connection->getPdoForSelect(false)
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:414)
  at Illuminate\Database\Connection->Illuminate\Database\{closure}('select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:753)
  at Illuminate\Database\Connection->runQueryCallback('select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'), object(Closure))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:899)
  at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(object(QueryException), 'select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'), object(Closure))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:879)
  at Illuminate\Database\Connection->handleQueryException(object(QueryException), 'select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'), object(Closure))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:723)
  at Illuminate\Database\Connection->run('select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'), object(Closure))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:422)
  at Illuminate\Database\Connection->select('select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'), false)
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Connection.php:392)
  at Illuminate\Database\Connection->selectFromWriteConnection('select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = \'BASE TABLE\'', array('aquapoo1_new2', 'mail_settings'))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php:44)
  at Illuminate\Database\Schema\MySqlBuilder->hasTable('mail_settings')
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:338)
  at Illuminate\Support\Facades\Facade::__callStatic('hasTable', array('mail_settings'))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/app/Modules/Mail/Providers/MailServiceProvider.php:29)
  at Modules\Mail\Providers\MailServiceProvider->register()
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:687)
  at Illuminate\Foundation\Application->register(object(MailServiceProvider))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75)
  at Illuminate\Foundation\ProviderRepository->load(array('Illuminate\\Auth\\AuthServiceProvider', 'Illuminate\\Broadcasting\\BroadcastServiceProvider', 'Illuminate\\Bus\\BusServiceProvider', 'Illuminate\\Cache\\CacheServiceProvider', 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider', 'Illuminate\\Cookie\\CookieServiceProvider', 'Illuminate\\Database\\DatabaseServiceProvider', 'Illuminate\\Encryption\\EncryptionServiceProvider', 'Illuminate\\Filesystem\\FilesystemServiceProvider', 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider', 'Illuminate\\Hashing\\HashServiceProvider', 'Illuminate\\Mail\\MailServiceProvider', 'Illuminate\\Notifications\\NotificationServiceProvider', 'Illuminate\\Pagination\\PaginationServiceProvider', 'Illuminate\\Pipeline\\PipelineServiceProvider', 'Illuminate\\Queue\\QueueServiceProvider', 'Illuminate\\Redis\\RedisServiceProvider', 'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider', 'Illuminate\\Session\\SessionServiceProvider', 'Illuminate\\Translation\\TranslationServiceProvider', 'Illuminate\\Validation\\ValidationServiceProvider', 'Illuminate\\View\\ViewServiceProvider', 'Barryvdh\\HttpCache\\ServiceProvider', 'Barryvdh\\StackMiddleware\\ServiceProvider', 'Darryldecode\\Cart\\CartServiceProvider', 'Diglactic\\Breadcrumbs\\ServiceProvider', 'Dive\\Wishlist\\WishlistServiceProvider', 'LaravelTrailingSlash\\RoutingServiceProvider', 'Intervention\\Image\\ImageServiceProvider', 'Kalnoy\\Nestedset\\NestedSetServiceProvider', 'Laravel\\Sanctum\\SanctumServiceProvider', 'Laravel\\Scout\\ScoutServiceProvider', 'Laravel\\Tinker\\TinkerServiceProvider', 'Mcamara\\LaravelLocalization\\LaravelLocalizationServiceProvider', 'Carbon\\Laravel\\ServiceProvider', 'Termwind\\Laravel\\TermwindServiceProvider', 'Orchid\\Icons\\IconServiceProvider', 'Orchid\\Platform\\Providers\\FoundationServiceProvider', 'Spatie\\ResponseCache\\ResponseCacheServiceProvider', 'Spatie\\Translatable\\TranslatableServiceProvider', 'Tabuna\\Breadcrumbs\\BreadcrumbsServiceProvider', 'UniSharp\\LaravelFilemanager\\LaravelFilemanagerServiceProvider', 'Watson\\Active\\ActiveServiceProvider', 'App\\Providers\\AppServiceProvider', 'App\\Providers\\AuthServiceProvider', 'App\\Providers\\EventServiceProvider', 'App\\Providers\\RouteServiceProvider', 'Intervention\\Image\\ImageServiceProvider', 'App\\Providers\\ComposerServiceProvider', 'Barryvdh\\HttpCache\\ServiceProvider', 'Modules\\Mail\\Providers\\MailServiceProvider', 'Darryldecode\\Cart\\CartServiceProvider', 'App\\Providers\\AddSlashServiceProvider'))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:664)
  at Illuminate\Foundation\Application->registerConfiguredProviders()
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17)
  at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(object(Application))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:242)
  at Illuminate\Foundation\Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders'))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:160)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:134)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/public/index.php:54)                
This is just a stub class, aliased to the HttpCache in the ServiceProvider (500 Internal Server Error)

Symfony Exception

Exception

HTTP 500 Internal Server Error

This is just a stub class, aliased to the HttpCache in the ServiceProvider

Exception

Exception

  1. class CacheRequests
  2. {
  3.     public function __construct()
  4.     {
  5.         throw new \Exception('This is just a stub class, aliased to the HttpCache in the ServiceProvider');
  6.     }
  7. }
CacheRequests->__construct()
  1.             throw $e;
  2.         }
  3.         array_pop($this->buildStack);
  4.         return $reflector->newInstanceArgs($instances);
  5.     }
  6.     /**
  7.      * Resolve all of the dependencies from the ReflectionParameters.
  8.      *
  1.         // We're ready to instantiate an instance of the concrete type registered for
  2.         // the binding. This will instantiate the types, as well as resolve any of
  3.         // its "nested" dependencies recursively until all have gotten resolved.
  4.         if ($this->isBuildable($concrete$abstract)) {
  5.             $object $this->build($concrete);
  6.         } else {
  7.             $object $this->make($concrete);
  8.         }
  9.         // If we defined any extenders for this type, we'll need to spin through them
  1.      */
  2.     protected function resolve($abstract$parameters = [], $raiseEvents true)
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::resolve($abstract$parameters$raiseEvents);
  6.     }
  7.     /**
  8.      * Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
  9.      *
  1.      *
  2.      * @throws \Illuminate\Contracts\Container\BindingResolutionException
  3.      */
  4.     public function make($abstract, array $parameters = [])
  5.     {
  6.         return $this->resolve($abstract$parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.      */
  2.     public function make($abstract, array $parameters = [])
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::make($abstract$parameters);
  6.     }
  7.     /**
  8.      * Resolve the given type from the container.
  9.      *
  1.                 continue;
  2.             }
  3.             [$name] = $this->parseMiddleware($middleware);
  4.             $instance $this->app->make($name);
  5.             if (method_exists($instance'terminate')) {
  6.                 $instance->terminate($request$response);
  7.             }
  8.         }
  1.      * @param  \Illuminate\Http\Response  $response
  2.      * @return void
  3.      */
  4.     public function terminate($request$response)
  5.     {
  6.         $this->terminateMiddleware($request$response);
  7.         $this->app->terminate();
  8.         foreach ($this->requestLifecycleDurationHandlers as ['threshold' => $threshold'handler' => $handler]) {
  9.             $end ??= Carbon::now();
Kernel->terminate(object(Request), object(Response)) in /var/www/vhosts/aquapool.kz/new.aquapool.kz/public/index.php (line 57)
  1. $response $kernel->handle(
  2.     $request Request::capture()
  3. )->send();
  4. $kernel->terminate($request$response);

Stack Trace

Exception
Exception:
This is just a stub class, aliased to the HttpCache in the ServiceProvider

  at /var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/barryvdh/laravel-httpcache/src/Middleware/CacheRequests.php:9
  at Barryvdh\HttpCache\Middleware\CacheRequests->__construct()
  at ReflectionClass->newInstanceArgs(array())
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Container/Container.php:929)
  at Illuminate\Container\Container->build('Barryvdh\\HttpCache\\Middleware\\CacheRequests')
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Container/Container.php:770)
  at Illuminate\Container\Container->resolve('Barryvdh\\HttpCache\\Middleware\\CacheRequests', array(), true)
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:856)
  at Illuminate\Foundation\Application->resolve('Barryvdh\\HttpCache\\Middleware\\CacheRequests', array())
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Container/Container.php:706)
  at Illuminate\Container\Container->make('Barryvdh\\HttpCache\\Middleware\\CacheRequests', array())
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:841)
  at Illuminate\Foundation\Application->make('Barryvdh\\HttpCache\\Middleware\\CacheRequests')
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:239)
  at Illuminate\Foundation\Http\Kernel->terminateMiddleware(object(Request), object(Response))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:203)
  at Illuminate\Foundation\Http\Kernel->terminate(object(Request), object(Response))
     (/var/www/vhosts/aquapool.kz/new.aquapool.kz/public/index.php:57)