I get this error after power down and power up nginx server


#1

{“error”:{“context”:null,“message”:“SQLSTATE[HY000] [2002] No such file or directory”,“code”:2002,“trace”:[“0 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(55): PDO->__construct(‘mysql:host=loca…’, ‘bn_dreamfactory’, ‘b2a8c75675’, Array)”,“1 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection(‘mysql:host=loca…’, Array, Array)”,“2 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(11377): Illuminate\Database\Connectors\MySqlConnector->connect(Array)”,“3 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()”,“4 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(864): call_user_func(Object(Closure))”,“5 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(732): Illuminate\Database\Connection->getPdo()”,“6 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(621): Illuminate\Database\Connection->reconnectIfMissingConnection()”,“7 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(342): Illuminate\Database\Connection->run(‘select * from ...', Array, Object(Closure))","8 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1461): Illuminate\\Database\\Connection->select('select * from…’, Array, true)”,“9 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1447): Illuminate\Database\Query\Builder->runSelect()”,“10 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(569): Illuminate\Database\Query\Builder->get(Array)”,“11 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(303): Illuminate\Database\Eloquent\Builder->getModels(Array)”,“12 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(273): Illuminate\Database\Eloquent\Builder->get(Array)”,“13 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(286): Illuminate\Database\Eloquent\Builder->first(Array)”,“14 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Models/App.php(213): Illuminate\Database\Eloquent\Builder->firstOrFail()”,“15 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(292): DreamFactory\Core\Models\App::DreamFactory\Core\Models\{closure}()”,“16 [internal function]: Illuminate\Cache\Repository->remember(‘apikey2appid:’, 300, Object(Closure))”,“17 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(296): call_user_func_array(Array, Array)”,“18 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(6314): Illuminate\Cache\CacheManager->__call(‘remember’, Array)”,“19 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(6314): Illuminate\Cache\CacheManager->remember(‘apikey2appid:’, 300, Object(Closure))”,“20 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Models/App.php(214): Illuminate\Support\Facades\Facade::__callStatic(‘remember’, Array)”,“21 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Models/App.php(214): Illuminate\Support\Facades\Cache::remember(‘apikey2appid:’, 300, Object(Closure))”,“22 /opt/bitnami/apps/dreamfactory/htdocs/app/Http/Middleware/AuthCheck.php(112): DreamFactory\Core\Models\App::getAppIdByApiKey(NULL)”,“23 [internal function]: DreamFactory\Http\Middleware\AuthCheck->handle(Object(Illuminate\Http\Request), Object(Closure))”,“24 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)”,“25 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“26 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“27 /opt/bitnami/apps/dreamfactory/htdocs/vendor/barryvdh/laravel-cors/src/HandleCors.php(34): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“28 [internal function]: Barryvdh\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))”,“29 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)”,“30 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“31 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“32 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17072): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“33 [internal function]: DreamFactory\Http\Middleware\FirstUserCheck->handle(Object(Illuminate\Http\Request), Object(Closure))”,“34 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)”,“35 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“36 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“37 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12935): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“38 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))”,“39 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)”,“40 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“41 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“42 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(11495): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“43 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))”,“44 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)”,“45 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“46 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“47 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12674): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“48 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))”,“49 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)”,“50 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“51 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“52 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12611): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“53 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))”,“54 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)”,“55 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“56 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“57 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(3226): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“58 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))”,“59 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9511): call_user_func_array(Array, Array)”,“60 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,“61 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“62 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,“63 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9501): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,“64 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2340): Illuminate\Pipeline\Pipeline->then(Object(Closure))”,“65 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2324): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))”,“66 /opt/bitnami/apps/dreamfactory/htdocs/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))”,“67 {main}”]}}


#2

It looks like you’re trying to use nginx with Bitnami. What process did you use to enable this?