Nextcloud AIO instance unreachable few minutes after reboot (remaining connection slots are reserved for non-replication superuser connections)

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 26
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.3 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.57 (Unix) OpenSSL/3.1.1 configured
PHP version (eg, 7.4): unknown, comes with AIO docker container

The issue you are facing:

Hi!

I’m trying to get AIO running on my VPS. I did it first on my Raspberry Pi 4 with no problems. My Nextcloud becomes unreachable both web version (times out) and with using client (client reports network error 302 when trying to sync).

It happens a few minutes after restart when syncing date; when no client connects, it happens hours later, according to the logs. It seems to be an issue with connection to the database and no more slots were available, see details below.

From my research here, I found out, that it may be a Caddy related issue, but my instance runs on a fresh server with no reverse proxy configured.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Reboot
  2. Nextcloud keeps functioning, syncing is possible
  3. After syncing a few minutes OR idling for some hours, NC becomes unreachable

The output of your Nextcloud log in Admin > Logging:

Can't access right now.

The output of docker logs nextcloud-aio-apache (This one is the idling example. The exception repeats on and on):

[10-Aug-2023 05:09:41] NOTICE: fpm is running, pid 424
[10-Aug-2023 05:09:41] NOTICE: ready to handle connections
Activating collabora config...
Activated any config changes
[10-Aug-2023 18:06:39] WARNING: [pool www] server reached max_children setting (159), consider raising it
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "nextcloud-aio-database" (172.18.0.4), port 5432 failed: FATAL:  remaining connection slots are reserved for non-replication superuser connections in /var/www/html/lib/private/DB/Connection.php:140
Stack trace:
#0 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1531): OC\DB\Connection->connect()
#1 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1029): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /var/www/html/lib/private/DB/Connection.php(262): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM "...', Array, Array, NULL)
#3 /var/www/html/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(345): OC\DB\Connection->executeQuery('SELECT * FROM "...', Array, Array)
#4 /var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php(280): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /var/www/html/lib/private/AppConfig.php(418): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /var/www/html/lib/private/AppConfig.php(184): OC\AppConfig->loadConfigValues()
#7 /var/www/html/lib/private/AppConfig.php(374): OC\AppConfig->getApps()
#8 /var/www/html/lib/private/legacy/OC_App.php(976): OC\AppConfig->getValues(false, 'installed_versi...')
#9 /var/www/html/lib/private/Server.php(731): OC_App::getAppVersions()
#10 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}(Object(OC\Server))
#11 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
#12 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet('OC\\Memcache\\Fac...')
#13 /var/www/html/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query('OC\\Memcache\\Fac...', true)
#14 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query('OC\\Memcache\\Fac...')
#15 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(193): OC\AppFramework\Utility\SimpleContainer->get('OC\\Memcache\\Fac...')
#16 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#17 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
#18 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet('OCP\\ICacheFacto...')
#19 /var/www/html/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query('OCP\\ICacheFacto...', true)
#20 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query('OCP\\ICacheFacto...')
#21 /var/www/html/lib/private/Server.php(1112): OC\AppFramework\Utility\SimpleContainer->get('OCP\\ICacheFacto...')
#22 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}(Object(OC\Server))
#23 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
#24 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...')
#25 /var/www/html/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...', true)
#26 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query('OCP\\Lock\\ILocki...')
#27 /var/www/html/lib/private/Server.php(2067): OC\AppFramework\Utility\SimpleContainer->get('OCP\\Lock\\ILocki...')
#28 /var/www/html/lib/private/Files/View.php(119): OC\Server->getLockingProvider()
#29 /var/www/html/lib/private/Server.php(465): OC\Files\View->__construct()
#30 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}(Object(OC\Server))
#31 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
#32 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet('OC\\Files\\Node\\H...')
#33 /var/www/html/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query('OC\\Files\\Node\\H...', true)
#34 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query('OC\\Files\\Node\\H...')
#35 /var/www/html/lib/private/Server.php(1469): OC\AppFramework\Utility\SimpleContainer->get('OC\\Files\\Node\\H...')
#36 /var/www/html/lib/base.php(632): OC\Server->boot()
#37 /var/www/html/lib/base.php(1174): OC::init()
#38 /var/www/html/cron.php(43): require_once('/var/www/html/l...')
#39 {main}
[10-Aug-2023 18:09:57] WARNING: [pool www] server reached max_children setting (159), consider raising it

Output of docker logs nextcloud-aio-nextcloud

2023-08-10 19:25:46.497383+00
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n '' ']'
+ set +x
Configuring Redis as session handler...
Setting php max children...
Applying one-click-instance settings...
System config value one-click-instance set to boolean true
System config value one-click-instance.user-limit set to integer 100
System config value one-click-instance.link set to string https://nextcloud.com/all-in-one/
support already enabled
Adjusting log files...
System config value upgrade.cli-upgrade-link set to string https://github.com/nextcloud/all-in-one/discussions/2726
System config value logfile set to string /var/www/html/data/nextcloud.log
Config value logfile for app admin_audit set to /var/www/html/data/audit.log
System config value updatedirectory set to string /nc-updater
Applying network settings...
System config value trusted_domains => 1 set to string mydomain.abc
System config value overwrite.cli.url set to string https://mydomain.abc/
System config value htaccess.RewriteBase set to string /
.htaccess has been updated
System config value files_external_allow_create_new_local set to boolean false
System config value trusted_proxies => 0 set to string 127.0.0.1
System config value trusted_proxies => 1 set to string ::1
Config value base_endpoint for app notify_push set to https://mydomain.abc/push
Config value wopi_url for app richdocuments set to https://mydomain.abc/
System config value allow_local_remote_servers set to boolean true
No ipv6-address found for mydomain.abc.
Config value wopi_allowlist for app richdocuments set to MY-IP,127.0.0.1/8,192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,fd00::/8,::1
Config value recording_servers of app spreed deleted
System config value enabledPreviewProviders => 0 set to string OC\Preview\Imaginary
System config value preview_imaginary_url set to string http://nextcloud-aio-imaginary:9000
{
    "search_platform": "OCA\\FullTextSearch_Elasticsearch\\Platform\\ElasticSearchPlatform",
    "app_navigation": "0",
    "provider_indexed": "{\"test_provider\":\"0\",\"deck\":\"1\",\"files\":\"1\"}",
    "cron_err_reset": "1691609930",
    "tick_ttl": "1800",
    "collection_indexing_list": "50",
    "migration_24": "1"
}
{
    "elastic_host": "http:\/\/nextcloud-aio-fulltextsearch:9200",
    "elastic_index": "nextcloud-aio",
    "fields_limit": "10000",
    "es_ver_below66": "0",
    "analyzer_tokenizer": "standard"
}
{
    "files_local": "1",
    "files_external": "0",
    "files_group_folders": "0",
    "files_encrypted": "0",
    "files_federated": "0",
    "files_size": "20",
    "files_pdf": "1",
    "files_office": "1",
    "files_image": "0",
    "files_audio": "0",
    "files_chunk_size": "2"
}
[10-Aug-2023 19:26:51] NOTICE: fpm is running, pid 422
[10-Aug-2023 19:26:51] NOTICE: ready to handle connections
Activating collabora config...
Activated any config changes
[11-Aug-2023 08:35:04] WARNING: [pool www] server reached max_children setting (159), consider raising it
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "nextcloud-aio-database" (172.18.0.3), port 5432 failed: FATAL:  remaining connection slots are reserved for non-replication superuser connections in /var/www/html/lib/private/DB/Connection.php:140
Stack trace:
#0 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1531): OC\DB\Connection->connect()
#1 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1029): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /var/www/html/lib/private/DB/Connection.php(262): Doctrine\DBAL\Connection->executeQuery('SELECT * FROM "...', Array, Array, NULL)
#3 /var/www/html/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(345): OC\DB\Connection->executeQuery('SELECT * FROM "...', Array, Array)
#4 /var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php(280): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /var/www/html/lib/private/AppConfig.php(418): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /var/www/html/lib/private/AppConfig.php(184): OC\AppConfig->loadConfigValues()
#7 /var/www/html/lib/private/AppConfig.php(374): OC\AppConfig->getApps()
#8 /var/www/html/lib/private/legacy/OC_App.php(976): OC\AppConfig->getValues(false, 'installed_versi...')
#9 /var/www/html/lib/private/Server.php(731): OC_App::getAppVersions()
#10 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}(Object(OC\Server))
#11 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
#12 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet('OC\\Memcache\\Fac...')
#13 /var/www/html/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query('OC\\Memcache\\Fac...', true)
#14 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query('OC\\Memcache\\Fac...')
#15 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(193): OC\AppFramework\Utility\SimpleContainer->get('OC\\Memcache\\Fac...')
#16 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#17 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
#18 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet('OCP\\ICacheFacto...')
#19 /var/www/html/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query('OCP\\ICacheFacto...', true)
#20 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query('OCP\\ICacheFacto...')
#21 /var/www/html/lib/private/Server.php(1112): OC\AppFramework\Utility\SimpleContainer->get('OCP\\ICacheFacto...')
#22 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}(Object(OC\Server))
#23 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
#24 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...')
#25 /var/www/html/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...', true)
#26 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query('OCP\\Lock\\ILocki...')
#27 /var/www/html/lib/private/Server.php(2067): OC\AppFramework\Utility\SimpleContainer->get('OCP\\Lock\\ILocki...')
#28 /var/www/html/lib/private/Files/View.php(119): OC\Server->getLockingProvider()
#29 /var/www/html/lib/private/Server.php(465): OC\Files\View->__construct()
#30 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}(Object(OC\Server))
#31 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
#32 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet('OC\\Files\\Node\\H...')
#33 /var/www/html/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query('OC\\Files\\Node\\H...', true)
#34 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query('OC\\Files\\Node\\H...')
#35 /var/www/html/lib/private/Server.php(1469): OC\AppFramework\Utility\SimpleContainer->get('OC\\Files\\Node\\H...')
#36 /var/www/html/lib/base.php(632): OC\Server->boot()
#37 /var/www/html/lib/base.php(1174): OC::init()
#38 /var/www/html/cron.php(43): require_once('/var/www/html/l...')
#39 {main}

Output of docker logs nextlcoud-aio-database

PostgreSQL Database directory appears to contain a database; Skipping initialization

2023-08-11 13:31:46.241 UTC [13] LOG:  starting PostgreSQL 15.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit
2023-08-11 13:31:46.241 UTC [13] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2023-08-11 13:31:46.241 UTC [13] LOG:  listening on IPv6 address "::", port 5432
2023-08-11 13:31:46.243 UTC [13] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-08-11 13:31:46.250 UTC [23] LOG:  database system was shut down at 2023-08-11 13:31:39 UTC
2023-08-11 13:31:46.263 UTC [13] LOG:  database system is ready to accept connections

I’m not that familiar with docker, that’s why I didn’t change anything in the docker configuration. I’d say, it’s configured the default way.

Could you help me out? Thanks!

Hi, can you upgrade to v7.0.0 Beta and check if that resolves things? See GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All-in-One and provides easy deployment and maintenance with most features included in this one Nextcloud instance.

1 Like

Hi! Thanks for your help. I updated to AIO 7.0.0 by switching channel to beta and it works. My NC instance is running for more than 24 hours straight and I synced a couple of GB to it. No more issues.

Do you know, if this issue is something that has been fixed in the beta? If so, I could look out for the next stable release and switch back to stable channel.

Thanks a lot again for your help!

1 Like

Yes, it has

1 Like

I’m on the beta channel with a install, and I’m getting kicked out of the server with an internal server error. The database container is in unhealthy state. Logs follow:

root@vmd117059:/home/kiyengar# docker logs 1a4a9e9109cd
+ rm -rf '/var/lib/postgresql/data/*'
+ touch /mnt/data/initial-cleanup-done
+ set +ex
chmod: /var/run/postgresql: Operation not permitted
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
sh: locale: not found
2023-08-13 07:13:16.720 UTC [29] WARNING:  no usable system locales were found
performing post-bootstrap initialization ... ok
initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
syncing data to disk ... ok


Success. You can now start the database server using:

    pg_ctl -D /var/lib/postgresql/data -l logfile start

waiting for server to start....2023-08-13 07:13:17.544 UTC [35] LOG:  starting PostgreSQL 15.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit
2023-08-13 07:13:17.544 UTC [35] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-08-13 07:13:17.556 UTC [38] LOG:  database system was shut down at 2023-08-13 07:13:17 UTC
2023-08-13 07:13:17.565 UTC [35] LOG:  database system is ready to accept connections
 done
server started
CREATE DATABASE


/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init-user-db.sh
+ touch /mnt/data/initialization.failed
+ psql -v ON_ERROR_STOP=1 --username nextcloud --dbname nextcloud_database
CREATE ROLE
ALTER DATABASE
GRANT
GRANT
+ rm /mnt/data/initialization.failed
+ set +ex

waiting for server to shut down....2023-08-13 07:13:17.716 UTC [35] LOG:  received fast shutdown request
2023-08-13 07:13:17.717 UTC [35] LOG:  aborting any active transactions
2023-08-13 07:13:17.719 UTC [35] LOG:  background worker "logical replication launcher" (PID 41) exited with exit code 1
2023-08-13 07:13:17.720 UTC [36] LOG:  shutting down
2023-08-13 07:13:17.721 UTC [36] LOG:  checkpoint starting: shutdown immediate
2023-08-13 07:13:17.844 UTC [36] LOG:  checkpoint complete: wrote 927 buffers (5.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.096 s, sync=0.023 s, total=0.125 s; sync files=257, longest=0.006 s, average=0.001 s; distance=4227 kB, estimate=4227 kB
2023-08-13 07:13:17.851 UTC [35] LOG:  database system is shut down
 done
server stopped

PostgreSQL init process complete; ready for start up.

2023-08-13 07:13:17.939 UTC [13] LOG:  starting PostgreSQL 15.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit
2023-08-13 07:13:17.939 UTC [13] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2023-08-13 07:13:17.939 UTC [13] LOG:  listening on IPv6 address "::", port 5432
2023-08-13 07:13:17.941 UTC [13] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-08-13 07:13:17.944 UTC [56] LOG:  database system was shut down at 2023-08-13 07:13:17 UTC
2023-08-13 07:13:17.950 UTC [13] LOG:  database system is ready to accept connections
2023-08-13 07:15:54.657 UTC [118] ERROR:  relation "oc_circle_circles" does not exist at character 15
2023-08-13 07:15:54.657 UTC [118] STATEMENT:  SELECT * FROM "oc_circle_circles"
2023-08-13 07:18:18.044 UTC [54] LOG:  checkpoint starting: time
2023-08-13 07:19:32.590 UTC [54] LOG:  checkpoint complete: wrote 744 buffers (4.5%); 1 WAL file(s) added, 0 removed, 0 recycled; write=74.428 s, sync=0.053 s, total=74.546 s; sync files=325, longest=0.008 s, average=0.001 s; distance=4932 kB, estimate=4932 kB
2023-08-13 07:23:18.665 UTC [54] LOG:  checkpoint starting: time
2023-08-13 07:23:35.210 UTC [54] LOG:  checkpoint complete: wrote 165 buffers (1.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=16.520 s, sync=0.006 s, total=16.545 s; sync files=105, longest=0.001 s, average=0.001 s; distance=585 kB, estimate=4498 kB
2023-08-13 07:27:23.769 UTC [580] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.803 UTC [581] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.820 UTC [582] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.836 UTC [583] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.863 UTC [584] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.879 UTC [585] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.891 UTC [586] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.902 UTC [587] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.916 UTC [588] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.927 UTC [589] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.941 UTC [590] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.952 UTC [591] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.964 UTC [592] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.976 UTC [593] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:23.993 UTC [594] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.010 UTC [595] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.031 UTC [596] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.044 UTC [597] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.061 UTC [598] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.077 UTC [599] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.108 UTC [600] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.120 UTC [601] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.135 UTC [602] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.147 UTC [603] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.162 UTC [604] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.178 UTC [605] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.192 UTC [606] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.207 UTC [607] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.220 UTC [608] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.231 UTC [609] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.245 UTC [610] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.255 UTC [611] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.266 UTC [612] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.280 UTC [613] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.291 UTC [614] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.307 UTC [615] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.320 UTC [616] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.330 UTC [617] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.342 UTC [618] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.354 UTC [619] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.369 UTC [620] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.384 UTC [621] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.399 UTC [622] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.419 UTC [623] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.432 UTC [624] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.446 UTC [625] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.459 UTC [626] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.470 UTC [627] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.481 UTC [628] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.494 UTC [629] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.510 UTC [630] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.523 UTC [631] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.534 UTC [632] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.550 UTC [633] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.562 UTC [634] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.576 UTC [635] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.588 UTC [636] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.600 UTC [637] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.612 UTC [638] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:24.623 UTC [639] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:25.794 UTC [640] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:25.809 UTC [641] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:25.823 UTC [642] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:25.835 UTC [643] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:25.849 UTC [644] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:32.254 UTC [646] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:32.268 UTC [647] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:32.279 UTC [648] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:32.292 UTC [649] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:32.304 UTC [650] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:50.035 UTC [659] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:55.087 UTC [660] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:27:55.107 UTC [661] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:28:18.274 UTC [54] LOG:  checkpoint starting: time
2023-08-13 07:28:20.191 UTC [672] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:28:20.614 UTC [54] LOG:  checkpoint complete: wrote 24 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=2.324 s, sync=0.007 s, total=2.341 s; sync files=19, longest=0.003 s, average=0.001 s; distance=64 kB, estimate=4054 kB
2023-08-13 07:28:32.398 UTC [674] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:28:32.412 UTC [675] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:28:32.424 UTC [676] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:28:32.437 UTC [677] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:28:32.450 UTC [678] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:28:41.674 UTC [680] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:28:50.309 UTC [688] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:29:02.137 UTC [690] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:29:20.466 UTC [700] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:29:32.507 UTC [701] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:29:32.534 UTC [702] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:29:32.549 UTC [703] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:29:32.568 UTC [705] FATAL:  remaining connection slots are reserved for non-replication superuser connections
2023-08-13 07:29:32.583 UTC [706] FATAL:  remaining connection slots are reserved for non-replication superuser connections

Giving up on 27 and moving to 26 now, will let you know if I have the same there.

Hm… How much ram does your server have and which optional addons do you have enabled from the aio interface?

Still not in the beta channel, gonna try this later. But I am having the same problem.

It seems the endpoint that is causing it is /ocs/v2.php/apps/spreed/api/v1/chat/4f5xnyn4?setReadMarker=0&lookIntoFuture=1&lastKnownMessageId=54618&includeLastKnown=0

This is the url that appears with the error “Doctrine\DBAL\Exception”,“Message”:“Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "nextcloud-aio-database" (172.18.0.9), port 5432 failed: FATAL: remaining connection slots are reserved for non-replication superuser connections”
on nextcloud.log (downloaded from the admin interface).

Hi, did you already upgrade to AIO v7.0.0?

No, gonna do it now!
Just did it. I’ll tell in a few days if it stopped crashing.

The server did not crash anymore, thanks!!

1 Like