Symfony Exception

PDOException PDOException QueryException

HTTP 500 Internal Server Error

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db-mysql-neo-production-server-do-user-4251420-0.b.db.ondigitalocean.com failed: Name or service not known (Connection: mysql, SQL: SET SESSION sql_require_primary_key=0)

Exceptions 3

Illuminate\Database\ QueryException

Show exception properties
Illuminate\Database\QueryException {#445
  +errorInfo: array:3 [
    0 => "HY000"
    1 => 2002
    2 => "php_network_getaddresses: getaddrinfo for db-mysql-neo-production-server-do-user-4251420-0.b.db.ondigitalocean.com failed: Name or service not known"
  ]
  +connectionName: "mysql"
  #sql: "SET SESSION sql_require_primary_key=0"
  #bindings: []
}
  1.                 throw new UniqueConstraintViolationException(
  2.                     $this->getName(), $query$this->prepareBindings($bindings), $e
  3.                 );
  4.             }
  5.             throw new QueryException(
  6.                 $this->getName(), $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.     {
  2.         if ($this->transactions >= 1) {
  3.             throw $e;
  4.         }
  5.         return $this->tryAgainIfCausedByLostConnection(
  6.             $e$query$bindings$callback
  7.         );
  8.     }
  9.     /**
  1.         // caused by a connection that has been lost. If that is the cause, we'll try
  2.         // to re-establish connection and re-run the query with a fresh connection.
  3.         try {
  4.             $result $this->runQueryCallback($query$bindings$callback);
  5.         } catch (QueryException $e) {
  6.             $result $this->handleQueryException(
  7.                 $e$query$bindings$callback
  8.             );
  9.         }
  10.         // Once we have run the query we will calculate the time that it took to run and
  1.      * @param  array  $bindings
  2.      * @return bool
  3.      */
  4.     public function statement($query$bindings = [])
  5.     {
  6.         return $this->run($query$bindings, function ($query$bindings) {
  7.             if ($this->pretending()) {
  8.                 return true;
  9.             }
  10.             $statement $this->getPdo()->prepare($query);
  1.     {
  2.         if (static::hasMacro($method)) {
  3.             return $this->macroCall($method$parameters);
  4.         }
  5.         return $this->connection()->$method(...$parameters);
  6.     }
  7. }
  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 /var/www/neo/app/Providers/AppServiceProvider.php (line 38)
  1.             $this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
  2.             //            $this->app->register(TelescopeServiceProvider::class);
  3.         }
  4.         if ($this->app->environment('production')) {
  5.             \Illuminate\Support\Facades\DB::statement('SET SESSION sql_require_primary_key=0');
  6.         }
  7.     }
  8.     /**
  9.      * Bootstrap any application services.
  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() in /var/www/neo/public/index.php (line 52)
  1. $app = require_once __DIR__.'/../bootstrap/app.php';
  2. $kernel $app->make(Kernel::class);
  3. $response tap($kernel->handle(
  4.     $request Request::capture()
  5. ))->send();
  6. $kernel->terminate($request$response);

PDOException

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db-mysql-neo-production-server-do-user-4251420-0.b.db.ondigitalocean.com failed: Name or service not known

  1.      * @param  array  $options
  2.      * @return \PDO
  3.      */
  4.     protected function createPdoConnection($dsn$username$password$options)
  5.     {
  6.         return new PDO($dsn$username$password$options);
  7.     }
  8.     /**
  9.      * Handle an exception that occurred during connect execution.
  10.      *
  1.      * @param  array  $options
  2.      * @return \PDO
  3.      */
  4.     protected function createPdoConnection($dsn$username$password$options)
  5.     {
  6.         return new PDO($dsn$username$password$options);
  7.     }
  8.     /**
  9.      * Handle an exception that occurred during connect execution.
  10.      *
  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.         try {
  2.             return $this->createPdoConnection(
  3.                 $dsn$username$password$options
  4.             );
  5.         } catch (Exception $e) {
  6.             return $this->tryAgainIfCausedByLostConnection(
  7.                 $e$dsn$username$password$options
  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.         return $this->run($query$bindings, function ($query$bindings) {
  2.             if ($this->pretending()) {
  3.                 return true;
  4.             }
  5.             $statement $this->getPdo()->prepare($query);
  6.             $this->bindValues($statement$this->prepareBindings($bindings));
  7.             $this->recordsHaveBeenModified();
  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.     {
  2.         if ($this->transactions >= 1) {
  3.             throw $e;
  4.         }
  5.         return $this->tryAgainIfCausedByLostConnection(
  6.             $e$query$bindings$callback
  7.         );
  8.     }
  9.     /**
  1.         // caused by a connection that has been lost. If that is the cause, we'll try
  2.         // to re-establish connection and re-run the query with a fresh connection.
  3.         try {
  4.             $result $this->runQueryCallback($query$bindings$callback);
  5.         } catch (QueryException $e) {
  6.             $result $this->handleQueryException(
  7.                 $e$query$bindings$callback
  8.             );
  9.         }
  10.         // Once we have run the query we will calculate the time that it took to run and
  1.      * @param  array  $bindings
  2.      * @return bool
  3.      */
  4.     public function statement($query$bindings = [])
  5.     {
  6.         return $this->run($query$bindings, function ($query$bindings) {
  7.             if ($this->pretending()) {
  8.                 return true;
  9.             }
  10.             $statement $this->getPdo()->prepare($query);
  1.     {
  2.         if (static::hasMacro($method)) {
  3.             return $this->macroCall($method$parameters);
  4.         }
  5.         return $this->connection()->$method(...$parameters);
  6.     }
  7. }
  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 /var/www/neo/app/Providers/AppServiceProvider.php (line 38)
  1.             $this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
  2.             //            $this->app->register(TelescopeServiceProvider::class);
  3.         }
  4.         if ($this->app->environment('production')) {
  5.             \Illuminate\Support\Facades\DB::statement('SET SESSION sql_require_primary_key=0');
  6.         }
  7.     }
  8.     /**
  9.      * Bootstrap any application services.
  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() in /var/www/neo/public/index.php (line 52)
  1. $app = require_once __DIR__.'/../bootstrap/app.php';
  2. $kernel $app->make(Kernel::class);
  3. $response tap($kernel->handle(
  4.     $request Request::capture()
  5. ))->send();
  6. $kernel->terminate($request$response);

PDOException

PDO::__construct(): php_network_getaddresses: getaddrinfo for db-mysql-neo-production-server-do-user-4251420-0.b.db.ondigitalocean.com failed: Name or service not known

  1.      * @param  array  $options
  2.      * @return \PDO
  3.      */
  4.     protected function createPdoConnection($dsn$username$password$options)
  5.     {
  6.         return new PDO($dsn$username$password$options);
  7.     }
  8.     /**
  9.      * Handle an exception that occurred during connect execution.
  10.      *
  1.      * @param  array  $options
  2.      * @return \PDO
  3.      */
  4.     protected function createPdoConnection($dsn$username$password$options)
  5.     {
  6.         return new PDO($dsn$username$password$options);
  7.     }
  8.     /**
  9.      * Handle an exception that occurred during connect execution.
  10.      *
  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.         try {
  2.             return $this->createPdoConnection(
  3.                 $dsn$username$password$options
  4.             );
  5.         } catch (Exception $e) {
  6.             return $this->tryAgainIfCausedByLostConnection(
  7.                 $e$dsn$username$password$options
  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.         return $this->run($query$bindings, function ($query$bindings) {
  2.             if ($this->pretending()) {
  3.                 return true;
  4.             }
  5.             $statement $this->getPdo()->prepare($query);
  6.             $this->bindValues($statement$this->prepareBindings($bindings));
  7.             $this->recordsHaveBeenModified();
  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.     {
  2.         if ($this->transactions >= 1) {
  3.             throw $e;
  4.         }
  5.         return $this->tryAgainIfCausedByLostConnection(
  6.             $e$query$bindings$callback
  7.         );
  8.     }
  9.     /**
  1.         // caused by a connection that has been lost. If that is the cause, we'll try
  2.         // to re-establish connection and re-run the query with a fresh connection.
  3.         try {
  4.             $result $this->runQueryCallback($query$bindings$callback);
  5.         } catch (QueryException $e) {
  6.             $result $this->handleQueryException(
  7.                 $e$query$bindings$callback
  8.             );
  9.         }
  10.         // Once we have run the query we will calculate the time that it took to run and
  1.      * @param  array  $bindings
  2.      * @return bool
  3.      */
  4.     public function statement($query$bindings = [])
  5.     {
  6.         return $this->run($query$bindings, function ($query$bindings) {
  7.             if ($this->pretending()) {
  8.                 return true;
  9.             }
  10.             $statement $this->getPdo()->prepare($query);
  1.     {
  2.         if (static::hasMacro($method)) {
  3.             return $this->macroCall($method$parameters);
  4.         }
  5.         return $this->connection()->$method(...$parameters);
  6.     }
  7. }
  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 /var/www/neo/app/Providers/AppServiceProvider.php (line 38)
  1.             $this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
  2.             //            $this->app->register(TelescopeServiceProvider::class);
  3.         }
  4.         if ($this->app->environment('production')) {
  5.             \Illuminate\Support\Facades\DB::statement('SET SESSION sql_require_primary_key=0');
  6.         }
  7.     }
  8.     /**
  9.      * Bootstrap any application services.
  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() in /var/www/neo/public/index.php (line 52)
  1. $app = require_once __DIR__.'/../bootstrap/app.php';
  2. $kernel $app->make(Kernel::class);
  3. $response tap($kernel->handle(
  4.     $request Request::capture()
  5. ))->send();
  6. $kernel->terminate($request$response);

Stack Traces 3

[3/3] QueryException
Illuminate\Database\QueryException:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db-mysql-neo-production-server-do-user-4251420-0.b.db.ondigitalocean.com failed: Name or service not known (Connection: mysql, SQL: SET SESSION sql_require_primary_key=0)

  at /var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829
  at Illuminate\Database\Connection->runQueryCallback()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:983)
  at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:962)
  at Illuminate\Database\Connection->handleQueryException()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:785)
  at Illuminate\Database\Connection->run()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:576)
  at Illuminate\Database\Connection->statement()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:509)
  at Illuminate\Database\DatabaseManager->__call()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:355)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/var/www/neo/app/Providers/AppServiceProvider.php:38)
  at Neo\Providers\AppServiceProvider->register()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:788)
  at Illuminate\Foundation\Application->register()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75)
  at Illuminate\Foundation\ProviderRepository->load()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:765)
  at Illuminate\Foundation\Application->registerConfiguredProviders()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17)
  at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:263)
  at Illuminate\Foundation\Application->bootstrapWith()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:186)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/var/www/neo/public/index.php:52)                
[2/3] PDOException
PDOException:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db-mysql-neo-production-server-do-user-4251420-0.b.db.ondigitalocean.com failed: Name or service not known

  at /var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65
  at PDO->__construct()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
  at Illuminate\Database\Connectors\Connector->createPdoConnection()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:83)
  at Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:48)
  at Illuminate\Database\Connectors\Connector->createConnection()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24)
  at Illuminate\Database\Connectors\MySqlConnector->connect()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:184)
  at Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
  at call_user_func()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1339)
  at Illuminate\Database\Connection->getPdo()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:581)
  at Illuminate\Database\Connection->Illuminate\Database\{closure}()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:816)
  at Illuminate\Database\Connection->runQueryCallback()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:983)
  at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:962)
  at Illuminate\Database\Connection->handleQueryException()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:785)
  at Illuminate\Database\Connection->run()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:576)
  at Illuminate\Database\Connection->statement()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:509)
  at Illuminate\Database\DatabaseManager->__call()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:355)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/var/www/neo/app/Providers/AppServiceProvider.php:38)
  at Neo\Providers\AppServiceProvider->register()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:788)
  at Illuminate\Foundation\Application->register()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75)
  at Illuminate\Foundation\ProviderRepository->load()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:765)
  at Illuminate\Foundation\Application->registerConfiguredProviders()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17)
  at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:263)
  at Illuminate\Foundation\Application->bootstrapWith()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:186)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/var/www/neo/public/index.php:52)                
[1/3] PDOException
PDOException:
PDO::__construct(): php_network_getaddresses: getaddrinfo for db-mysql-neo-production-server-do-user-4251420-0.b.db.ondigitalocean.com failed: Name or service not known

  at /var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65
  at PDO->__construct()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
  at Illuminate\Database\Connectors\Connector->createPdoConnection()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:83)
  at Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:48)
  at Illuminate\Database\Connectors\Connector->createConnection()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24)
  at Illuminate\Database\Connectors\MySqlConnector->connect()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:184)
  at Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
  at call_user_func()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1339)
  at Illuminate\Database\Connection->getPdo()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:581)
  at Illuminate\Database\Connection->Illuminate\Database\{closure}()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:816)
  at Illuminate\Database\Connection->runQueryCallback()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:983)
  at Illuminate\Database\Connection->tryAgainIfCausedByLostConnection()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:962)
  at Illuminate\Database\Connection->handleQueryException()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:785)
  at Illuminate\Database\Connection->run()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/Connection.php:576)
  at Illuminate\Database\Connection->statement()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:509)
  at Illuminate\Database\DatabaseManager->__call()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:355)
  at Illuminate\Support\Facades\Facade::__callStatic()
     (/var/www/neo/app/Providers/AppServiceProvider.php:38)
  at Neo\Providers\AppServiceProvider->register()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:788)
  at Illuminate\Foundation\Application->register()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75)
  at Illuminate\Foundation\ProviderRepository->load()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:765)
  at Illuminate\Foundation\Application->registerConfiguredProviders()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17)
  at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:263)
  at Illuminate\Foundation\Application->bootstrapWith()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:186)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/var/www/neo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/var/www/neo/public/index.php:52)