PDOException {#384
  -errorCode: 2002
  -sqlState: 2002
  #message: "SQLSTATE[HY000] [2002] Connection refused"
  #code: 2002
  #file: "/var/www/papenberg/releases/2017-12-19-1611/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php"
  #line: 50
  -previous: PDOException {#383
    #message: "SQLSTATE[HY000] [2002] Connection refused"
    #code: 2002
    #file: "/var/www/papenberg/releases/2017-12-19-1611/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php"
    #line: 46
    +errorInfo: null
    trace: {
      /var/www/papenberg/releases/2017-12-19-1611/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:46 {try {    parent::__construct($dsn, $user, $password, $options);    $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, ['Doctrine\DBAL\Driver\PDOStatement', []]);
        arguments: {
          $dsn: "mysql:host=127.0.0.1;port=3306;dbname=papenberg"
          $username: "root"
          $passwd: "w8w00rd9932"
          $options: array:5 [ …5]
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65 {if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {    return new PDOConnection($dsn, $username, $password, $options);}
        arguments: {
          $dsn: "mysql:host=127.0.0.1;port=3306;dbname=papenberg"
          $user: "root"
          $password: "w8w00rd9932"
          $options: array:5 [ …5]
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:44 {return $this->createPdoConnection(    $dsn, $username, $password, $options);
        arguments: {
          $dsn: "mysql:host=127.0.0.1;port=3306;dbname=papenberg"
          $username: "root"
          $password: "w8w00rd9932"
          $options: array:5 [ …5]
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 {// connection's behavior, and some might be specified by the developers.$connection = $this->createConnection($dsn, $config, $options);arguments: {
          $dsn: "mysql:host=127.0.0.1;port=3306;dbname=papenberg"
          $config: array:13 [ …13]
          $options: array:5 [ …5]
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 {try {    return $this->createConnector($config)->connect($config);} catch (PDOException $e) {
        arguments: {
          $config: array:13 [ …13]
        }
      }
      Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() {}
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Database/Connection.php:916 {if ($this->pdo instanceof Closure) {    return $this->pdo = call_user_func($this->pdo);}
        arguments: {
          $function_name: Closure {#285 …}
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/vormkracht10/slim/src/Providers/DatabaseServiceProvider.php:13 {try {    DB::connection()->getPdo();} catch (\Exception $e) {
      }
      Slim\Providers\DatabaseServiceProvider->boot() {}
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 {return call_user_func_array(    $callback, static::getMethodDependencies($container, $callback, $parameters));
        arguments: {
          $function_name: array:2 [ …2]
          $parameters: []
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87 {
        › 
        ›     return $default instanceof Closure ? $default() : $default;}
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31 {        );    });}
        arguments: {
          $container: Application {#4 …}
          $callback: array:2 [ …2]
          $default: Closure {#32 …}
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Container/Container.php:564 {{    return BoundMethod::call($this, $callback, $parameters, $defaultMethod);}
        arguments: {
          $container: Application {#4 …}
          $callback: array:2 [ …2]
          $parameters: []
          $defaultMethod: null
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:793 {if (method_exists($provider, 'boot')) {    return $this->call([$provider, 'boot']);}
        arguments: {
          $callback: array:2 [ …2]
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:776 {array_walk($this->serviceProviders, function ($p) {    $this->bootProvider($p);});
        arguments: {
          $provider: DatabaseServiceProvider {#178 …}
        }
      }
      Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:777 {    $this->bootProvider($p);});arguments: {
          &$input: array:61 [ …61]
          $funcname: Closure {#23 …}
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {{    $app->boot();}
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:206 {
        › 
        › $this->make($bootstrapper)->bootstrap($this);arguments: {
          $app: Application {#4 …}
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 {if (! $this->app->hasBeenBootstrapped()) {    $this->app->bootstrapWith($this->bootstrappers());}
        arguments: {
          $bootstrappers: array:6 [ …6]
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 {
        › 
        › $this->bootstrap();}
      /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
        › 
        ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
        arguments: {
          $request: Request {#43 …}
        }
      }
      /var/www/papenberg/releases/2017-12-19-1611/public/index.php:53 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
        arguments: {
          $request: Request {#43 …}
        }
      }
    }
  }
  +errorInfo: null
  trace: {
    /var/www/papenberg/releases/2017-12-19-1611/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:50 {} catch (\PDOException $exception) {    throw new PDOException($exception);}
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65 {if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {    return new PDOConnection($dsn, $username, $password, $options);}
      arguments: {
        $dsn: "mysql:host=127.0.0.1;port=3306;dbname=papenberg"
        $user: "root"
        $password: "w8w00rd9932"
        $options: array:5 [ …5]
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:44 {return $this->createPdoConnection(    $dsn, $username, $password, $options);
      arguments: {
        $dsn: "mysql:host=127.0.0.1;port=3306;dbname=papenberg"
        $username: "root"
        $password: "w8w00rd9932"
        $options: array:5 [ …5]
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 {// connection's behavior, and some might be specified by the developers.$connection = $this->createConnection($dsn, $config, $options);arguments: {
        $dsn: "mysql:host=127.0.0.1;port=3306;dbname=papenberg"
        $config: array:13 [ …13]
        $options: array:5 [ …5]
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 {try {    return $this->createConnector($config)->connect($config);} catch (PDOException $e) {
      arguments: {
        $config: array:13 [ …13]
      }
    }
    Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() {}
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Database/Connection.php:916 {if ($this->pdo instanceof Closure) {    return $this->pdo = call_user_func($this->pdo);}
      arguments: {
        $function_name: Closure {#285 …}
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/vormkracht10/slim/src/Providers/DatabaseServiceProvider.php:13 {try {    DB::connection()->getPdo();} catch (\Exception $e) {
    }
    Slim\Providers\DatabaseServiceProvider->boot() {}
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 {return call_user_func_array(    $callback, static::getMethodDependencies($container, $callback, $parameters));
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87 {
      › 
      ›     return $default instanceof Closure ? $default() : $default;}
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31 {        );    });}
      arguments: {
        $container: Application {#4 …}
        $callback: array:2 [ …2]
        $default: Closure {#32 …}
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Container/Container.php:564 {{    return BoundMethod::call($this, $callback, $parameters, $defaultMethod);}
      arguments: {
        $container: Application {#4 …}
        $callback: array:2 [ …2]
        $parameters: []
        $defaultMethod: null
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:793 {if (method_exists($provider, 'boot')) {    return $this->call([$provider, 'boot']);}
      arguments: {
        $callback: array:2 [ …2]
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:776 {array_walk($this->serviceProviders, function ($p) {    $this->bootProvider($p);});
      arguments: {
        $provider: DatabaseServiceProvider {#178 …}
      }
    }
    Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:777 {    $this->bootProvider($p);});arguments: {
        &$input: array:61 [ …61]
        $funcname: Closure {#23 …}
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {{    $app->boot();}
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:206 {
      › 
      › $this->make($bootstrapper)->bootstrap($this);arguments: {
        $app: Application {#4 …}
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 {if (! $this->app->hasBeenBootstrapped()) {    $this->app->bootstrapWith($this->bootstrappers());}
      arguments: {
        $bootstrappers: array:6 [ …6]
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 {
      › 
      › $this->bootstrap();}
    /var/www/papenberg/releases/2017-12-19-1611/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
      arguments: {
        $request: Request {#43 …}
      }
    }
    /var/www/papenberg/releases/2017-12-19-1611/public/index.php:53 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
      arguments: {
        $request: Request {#43 …}
      }
    }
  }
}