The Basics
-
Nextcloud Server version:
latest
but can’t be determined
-
Operating system and version:
Ubuntu 24.04
-
Web server and version:
2.4.52-1ubuntu4.14
-
Reverse proxy and version
?
-
PHP version:
8.1.2-1ubuntu2.21
-
Is this the first time you’ve seen this error? (Yes / No):
Yes
-
When did this problem seem to first start?
7 June 2025
-
Installation method
Who remembers, I did it three years ago
-
Are you using CloudfIare, mod_security, or similar?
No
Summary of the issue you are facing:
Trying to install AIO I screwed my working installation.
Steps to replicate it (hint: details matter!):
-
I followed many tutorial;
-
To summarize: I created a docker that answer to the port 8080, updated the Let’s encrypt certification, restarted Apache;
-
I end that my NC no longer works:
#Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.4.52 (Ubuntu) Server at nextmune.munerotto.it Port 443
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log
located in your data directory). Feel free to use a pastebin/gist service if necessary.
fedehome:~$ sudo tail nextcloud.log
{"reqId":"a4dLaESoZGp2A1euuMy9","level":2,"time":"2025-06-08T21:14:57+00:00","remoteAddr":"93.49.253.65","user":"--","app":"unsplash","method":"GET","url":"/index.php/apps/unsplash/api/login.css","message":"Selected provider 'Unsplash' could not be found. Using Default. Please select an existing provider in the settings!","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0","version":"30.0.11.1","data":{"app":"unsplash"}}
{"reqId":"a4dLaESoZGp2A1euuMy9","level":2,"time":"2025-06-08T21:14:58+00:00","remoteAddr":"93.49.253.65","user":"--","app":"unsplash","method":"GET","url":"/index.php/apps/unsplash/api/login.css","message":"Selected provider 'Unsplash' could not be found. Using Default. Please select an existing provider in the settings!","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0","version":"30.0.11.1","data":{"app":"unsplash"}}
{"reqId":"a4dLaESoZGp2A1euuMy9","level":2,"time":"2025-06-08T21:14:58+00:00","remoteAddr":"93.49.253.65","user":"--","app":"unsplash","method":"GET","url":"/index.php/apps/unsplash/api/login.css","message":"Selected provider 'Unsplash' could not be found. Using Default. Please select an existing provider in the settings!","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0","version":"30.0.11.1","data":{"app":"unsplash"}}
{"reqId":"DfREeqD2FSKDhiCtoriF","level":2,"time":"2025-06-08T21:14:58+00:00","remoteAddr":"93.49.253.65","user":"--","app":"unsplash","method":"GET","url":"/index.php/apps/theming/image/logo?v=26","message":"Selected provider 'Unsplash' could not be found. Using Default. Please select an existing provider in the settings!","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0","version":"30.0.11.1","data":{"app":"unsplash"}}
{"reqId":"bxsECi3xBTkdzDALY1Ee","level":2,"time":"2025-06-08T21:14:59+00:00","remoteAddr":"93.49.253.65","user":"--","app":"unsplash","method":"GET","url":"/index.php/apps/unsplash/api/metadata","message":"Selected provider 'Unsplash' could not be found. Using Default. Please select an existing provider in the settings!","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0","version":"30.0.11.1","data":{"app":"unsplash"}}
{"reqId":"M9cdeLZoK2Dw0q2ykhYM","level":2,"time":"2025-06-08T21:15:17+00:00","remoteAddr":"93.49.253.65","user":"--","app":"unsplash","method":"GET","url":"/:8080","message":"Selected provider 'Unsplash' could not be found. Using Default. Please select an existing provider in the settings!","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0","version":"30.0.11.1","data":{"app":"unsplash"}}
{"reqId":"HQ5QhRb4Hsjd30CCOYVM","level":2,"time":"2025-06-08T21:15:18+00:00","remoteAddr":"93.49.253.65","user":"--","app":"unsplash","method":"GET","url":"/index.php/apps/theming/image/background?v=26","message":"Selected provider 'Unsplash' could not be found. Using Default. Please select an existing provider in the settings!","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0","version":"30.0.11.1","data":{"app":"unsplash"}}
{"reqId":"ghtvv1IB6X7nd8JTdaI8","level":2,"time":"2025-06-08T21:31:03+00:00","remoteAddr":"152.32.208.9","user":"--","app":"unsplash","method":"GET","url":"/index.php/login","message":"Selected provider 'Unsplash' could not be found. Using Default. Please select an existing provider in the settings!","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11","version":"30.0.11.1","data":{"app":"unsplash"}}
{"reqId":"QOKNIndtKbr0WM2P4dtJ","level":2,"time":"2025-06-08T22:05:15+00:00","remoteAddr":"87.236.176.96","user":"--","app":"unsplash","method":"GET","url":"/index.php/login","message":"Selected provider 'Unsplash' could not be found. Using Default. Please select an existing provider in the settings!","userAgent":"Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)","version":"30.0.11.1","data":{"app":"unsplash"}}
{"reqId":"XSiEgQsmhDgqexFkNCjf","level":2,"time":"2025-06-08T22:21:45+00:00","remoteAddr":"142.44.149.135","user":"--","app":"unsplash","method":"GET","url":"/admin/assets/css/jquery-ui.css","message":"Selected provider 'Unsplash' could not be found. Using Default. Please select an existing provider in the settings!","userAgent":"nvdorz","version":"30.0.11.1","data":{"app":"unsplash"}}
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/apache2/error.log
:
fedehome:~$ tail /var/log/apache2/error.log
[Tue Jun 10 23:11:40.214426 2025] [proxy:error] [pid 558352] (113)No route to host: AH00957: http: attempt to connect to 93.49.253.65:11000 (93.49.253.65) failed
[Tue Jun 10 23:11:40.214500 2025] [proxy_http:error] [pid 558352] [client 93.49.253.65:39124] AH01114: HTTP: failed to make connection to backend: 93.49.253.65
[Tue Jun 10 23:12:40.674605 2025] [proxy:error] [pid 559631] (113)No route to host: AH00957: http: attempt to connect to 93.49.253.65:11000 (93.49.253.65) failed
[Tue Jun 10 23:12:40.674672 2025] [proxy_http:error] [pid 559631] [client 93.49.253.65:39126] AH01114: HTTP: failed to make connection to backend: 93.49.253.65
[Tue Jun 10 23:13:41.734905 2025] [proxy:error] [pid 559635] (113)No route to host: AH00957: http: attempt to connect to 93.49.253.65:11000 (93.49.253.65) failed
[Tue Jun 10 23:13:41.734969 2025] [proxy_http:error] [pid 559635] [client 93.49.253.65:39130] AH01114: HTTP: failed to make connection to backend: 93.49.253.65
[Tue Jun 10 23:14:43.264935 2025] [proxy:error] [pid 559596] (113)No route to host: AH00957: http: attempt to connect to 93.49.253.65:11000 (93.49.253.65) failed
[Tue Jun 10 23:14:43.265007 2025] [proxy_http:error] [pid 559596] [client 93.49.253.65:39132] AH01114: HTTP: failed to make connection to backend: 93.49.253.65
[Tue Jun 10 23:15:45.305342 2025] [proxy:error] [pid 559582] (113)No route to host: AH00957: http: attempt to connect to 93.49.253.65:11000 (93.49.253.65) failed
[Tue Jun 10 23:15:45.305412 2025] [proxy_http:error] [pid 559582] [client 93.49.253.65:39134] AH01114: HTTP: failed to make connection to backend: 93.49.253.65
Configuration
Apache HTTPS for the Nextcloud web
The output of /etc/apache2/sites-enabled/nextCsite-le-ssl.conf
fedehome:~$ cat /etc/apache2/sites-enabled/nextCsite-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
# This is the name of the vhost.
ServerName nextmune.munerotto.it
# These are alternative names for this same vhost.
# We put the other domains here. They will all go to the same place.
ServerAlias nextmune.munerotto.it
# Directory where the website code lives.
DocumentRoot /var/www/html/nextCsite
# Reverse proxy based on https://httpd.apache.org/docs/current/mod/mod_proxy_wstunnel.html
RewriteEngine On
ProxyPreserveHost On
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
AllowEncodedSlashes NoDecode
# Adjust the two lines below to match APACHE_PORT and APACHE_IP_BINDING. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#adapting-the-sample-web-server-configurations-below
ProxyPass / http://{public_static_ip_NC}:11000/ nocanon
ProxyPassReverse / http://{public_static_ip_NC}:11000/
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteCond %{THE_REQUEST} "^[a-zA-Z]+ /(.*) HTTP/\d+(\.\d+)?$"
RewriteRule .? "ws://127.0.0.1:11000/%1" [P,L,UnsafeAllow3F] # Adjust to match APACHE_PORT and APACHE_IP_BINDING. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#adapting-the-sample-web-server-configurations-below
# Enable h2, h2c and http1.1
Protocols h2 h2c http/1.1
# Solves slow upload speeds caused by http2
H2WindowSize 5242880
# TLS
SSLEngine on
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305
SSLHonorCipherOrder off
SSLSessionTickets off
# If running apache on a subdomain (eg. nextcloud.example.com) of a domain that already has an wildcard ssl certificate from certbot on this machine,
# the <your-nc-domain> in the below lines should be replaced with just the domain (eg. example.com), not the subdomain.
# In this case the subdomain should already be secured without additional actions
# Disable HTTP TRACE method.
TraceEnable off
<Files ".ht*">
Require all denied
</Files>
# Support big file uploads
LimitRequestBody 0
Timeout 86400
ProxyTimeout 86400
<Directory /var/www/html/nextCsite>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/nextCsite/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nextCsite/privkey.pem
</VirtualHost>
</IfModule>
Docker AIO configuration
The docker init:
sudo docker run --init --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 8080:8080 --env APACHE_PORT=11000 --env APACHE_IP_BINDING={public_static_ip_NC} --env APACHE_ADDITIONAL_NETWORK="nextCsite" --env SKIP_DOMAIN_VALIDATION=false --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /var/run/docker.sock:/var/run/docker.sock:ro ghcr.io/nextcloud-releases/all-in-one:latest
I did a sketch of my layout but it is quite basic.
I would like to point out that are already different tutorials about adding the AIO’s docker and people dumb as I am, might get confused. Please help me to regain my NC.