Closed MariusQuabeck closed 1 year ago
Hi, thanks for the report! Can you post the mastercontainer logs here?
mastercontainer log
Thanks! Can you post the output of the following command?
sudo netstat -tulpn
Do I need to run that on host or in some container? host (linode app/ubuntu 22.04) doesn't have a package named "netstat", I had to install "netstat-nat" but that one doesn't like your command :)
root:~# sudo netstat-nat -tulpn
netstat-nat: invalid option -- 't'
You need to install it with sudo apt install net-tools
ah my bad :D
root~# sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1232/docker-proxy
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 753/sshd: /usr/sbin
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 1005/docker-proxy
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1149/docker-proxy
tcp 0 0 0.0.0.0:3478 0.0.0.0:* LISTEN 1099/docker-proxy
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 543/systemd-resolve
tcp6 0 0 :::80 :::* LISTEN 1243/docker-proxy
tcp6 0 0 :::22 :::* LISTEN 753/sshd: /usr/sbin
tcp6 0 0 :::8443 :::* LISTEN 1018/docker-proxy
tcp6 0 0 :::8080 :::* LISTEN 1155/docker-proxy
tcp6 0 0 :::3478 :::* LISTEN 1105/docker-proxy
udp 0 0 0.0.0.0:3478 0.0.0.0:* 1196/docker-proxy
udp 0 0 127.0.0.53:53 0.0.0.0:* 543/systemd-resolve
udp6 0 0 :::3478 :::* 1201/docker-proxy
Thanks! What happens if you want to check the logs of the apache container? What do you see then?
:8443/api/docker/logs?id=nextcloud-aio-apache gives me a completely empty page :/
Is there a new log line in the mastercontainer logs after attempting to open the apache logs?
yes!
What is the output of sudo docker inspect nextcloud-aio-apache
?
sudo docker inspect nextcloud-aio-apache
Finally we found the issue:
"Error": "driver failed programming external connectivity on endpoint nextcloud-aio-apache (ca03df1c41a428c37a38e6f6bb144e7398d2ed4ae078e415a0d79ee5ae08d759): Bind for 0.0.0.0:443 failed: port is already allocated",
Can you maybe restart your server and try to start the containers again? Does it work afterwards?
after rebooting the initial container start worked except for apache, then after stopping and starting containers again, it worked.
So I suspect that the firwall caused this... Sometimes the server still needs to be restarted unfortunately...
Apache itself is not giving any logs, here are the logs that I have:
Database
Setting max connections... chmod: /var/run/postgresql: Operation not permitted PostgreSQL Database directory appears to contain a database; Skipping initialization 2023-09-20 06:45:02.070 UTC [14] LOG: starting PostgreSQL 15.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit 2023-09-20 06:45:02.070 UTC [14] LOG: listening on IPv4 address "0.0.0.0", port 5432 2023-09-20 06:45:02.070 UTC [14] LOG: listening on IPv6 address "::", port 5432 2023-09-20 06:45:02.072 UTC [14] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2023-09-20 06:45:02.078 UTC [24] LOG: database system was shut down at 2023-09-20 06:44:51 UTC 2023-09-20 06:45:02.087 UTC [14] LOG: database system is ready to accept connections 2023-09-20 06:47:11.284 UTC [14] LOG: received fast shutdown request 2023-09-20 06:47:11.290 UTC [14] LOG: aborting any active transactions 2023-09-20 06:47:11.294 UTC [14] LOG: background worker "logical replication launcher" (PID 27) exited with exit code 1 2023-09-20 06:47:11.301 UTC [22] LOG: shutting down 2023-09-20 06:47:11.316 UTC [14] LOG: database system is shut down waiting for server to shut down.... done server stopped Database dump successful! Setting max connections... chmod: /var/run/postgresql: Operation not permitted PostgreSQL Database directory appears to contain a database; Skipping initialization 2023-09-20 06:49:18.861 UTC [14] LOG: starting PostgreSQL 15.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit 2023-09-20 06:49:18.861 UTC [14] LOG: listening on IPv4 address "0.0.0.0", port 5432 2023-09-20 06:49:18.861 UTC [14] LOG: listening on IPv6 address "::", port 5432 2023-09-20 06:49:18.863 UTC [14] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2023-09-20 06:49:18.876 UTC [24] LOG: database system was shut down at 2023-09-20 06:47:11 UTC 2023-09-20 06:49:18.894 UTC [14] LOG: database system is ready to accept connectionsNextcloud
now ------------------------------- 2023-09-20 06:45:09.363487+00 (1 row) + '[' -f /dev-dri-group-was-added ']' ++ find /dev -maxdepth 1 -mindepth 1 -name dri + '[' -n '' ']' + set +x Installing imagemagick via apk... Enabling Imagick... 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 davstorage.request_timeout set to integer 3600 System config value trusted_domains => 1 set to string cloud.nerdzoom.media System config value overwrite.cli.url set to string https://cloud.nerdzoom.media/ System config value htaccess.RewriteBase set to string / .htaccess has been updated System config value dbpersistent set to boolean true System config value files_external_allow_create_new_local set to boolean true 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://cloud.nerdzoom.media/push Config value wopi_url for app richdocuments set to https://cloud.nerdzoom.media/ System config value allow_local_remote_servers set to boolean true Config value wopi_allowlist for app richdocuments set to 172.105.131.67,2a01:7e01::f03c:93ff:fe6c:bf05,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 Waiting for database to start... now ------------------------------- 2023-09-20 06:49:25.748641+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 davstorage.request_timeout set to integer 3600 System config value trusted_domains => 1 set to string cloud.nerdzoom.media System config value overwrite.cli.url set to string https://cloud.nerdzoom.media/ System config value htaccess.RewriteBase set to string / .htaccess has been updated System config value dbpersistent set to boolean true System config value files_external_allow_create_new_local set to boolean true 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://cloud.nerdzoom.media/push Config value wopi_url for app richdocuments set to https://cloud.nerdzoom.media/ System config value allow_local_remote_servers set to boolean true Config value wopi_allowlist for app richdocuments set to 172.105.131.67,2a01:7e01::f03c:93ff:fe6c:bf05,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 [20-Sep-2023 06:50:16] NOTICE: fpm is running, pid 367 [20-Sep-2023 06:50:16] NOTICE: ready to handle connectionsThis issue started a few weeks ago, Nextcloud was unreachable in the morning, I assume after Apache not starting after automatic backup/update. It usually came back after a few tries of restarting all containers.