Fatal error: Uncaught PDOException: SQLSTATE[08006] [7] connection to server at "localhost" (::1), port 5432 failed: FATAL: sorry, too many clients already
connection to server at "localhost" (::1), port 5432 failed: FATAL: sorry, too many clients already in /opt/dbis-projekt/dbis_server/config/container.php:61
Stack trace:
#0 /opt/dbis-projekt/dbis_server/config/container.php(61): PDO->__construct()
#1 [internal function]: DI\Definition\Source\DefinitionFile->{closure}()
#2 /opt/dbis-projekt/dbis_server/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array()
#3 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Definition/Resolver/FactoryResolver.php(80): Invoker\Invoker->call()
#4 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Definition/Resolver/ResolverDispatcher.php(71): DI\Definition\Resolver\FactoryResolver->resolve()
#5 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Container.php(390): DI\Definition\Resolver\ResolverDispatcher->resolve()
#6 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Container.php(139): DI\Container->resolveDefinition()
#7 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Definition/Reference.php(53): DI\Container->get()
#8 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Definition/Resolver/ResolverDispatcher.php(66): DI\Definition\Reference->resolve()
#9 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Definition/Resolver/ParameterResolver.php(78): DI\Definition\Resolver\ResolverDispatcher->resolve()
#10 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Definition/Resolver/ObjectCreator.php(137): DI\Definition\Resolver\ParameterResolver->resolveParameters()
#11 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Definition/Resolver/ObjectCreator.php(71): DI\Definition\Resolver\ObjectCreator->createInstance()
#12 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Definition/Resolver/ResolverDispatcher.php(71): DI\Definition\Resolver\ObjectCreator->resolve()
#13 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Container.php(390): DI\Definition\Resolver\ResolverDispatcher->resolve()
#14 /opt/dbis-projekt/dbis_server/vendor/php-di/php-di/src/Container.php(139): DI\Container->resolveDefinition()
#15 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/CallableResolver.php(129): DI\Container->get()
#16 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/CallableResolver.php(90): Slim\CallableResolver->resolveSlimNotation()
#17 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/CallableResolver.php(63): Slim\CallableResolver->resolveByPredicate()
#18 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/Routing/Route.php(340): Slim\CallableResolver->resolveRoute()
#19 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\Routing\Route->handle()
#20 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\MiddlewareDispatcher->handle()
#21 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/Routing/Route.php(315): Slim\MiddlewareDispatcher->handle()
#22 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/Routing/RouteRunner.php(68): Slim\Routing\Route->run()
#23 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/Middleware/BodyParsingMiddleware.php(64): Slim\Routing\RouteRunner->handle()
#24 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\BodyParsingMiddleware->process()
#25 /opt/dbis-projekt/dbis_server/vendor/slim/twig-view/src/TwigMiddleware.php(115): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#26 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Views\TwigMiddleware->process()
#27 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#28 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process()
#29 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/Middleware/MethodOverrideMiddleware.php(41): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#30 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\MethodOverrideMiddleware->process()
#31 /opt/dbis-projekt/dbis_server/vendor/selective/basepath/src/BasePathMiddleware.php(52): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#32 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Selective\BasePath\BasePathMiddleware->process()
#33 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#34 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle()
#35 /opt/dbis-projekt/dbis_server/vendor/slim/slim/Slim/App.php(183): Slim\App->handle()
#36 /opt/dbis-projekt/dbis_server/public/index.php(45): Slim\App->run()
#37 {main}
thrown in /opt/dbis-projekt/dbis_server/config/container.php on line 61