The Basics
- Nextcloud Server version (e.g., 29.x.x):
- 31.0.7
- Operating system and version (e.g., Ubuntu 24.04):
- Ubuntu 24.04.2 LTS
- Web server and version (e.g, Apache 2.4.25):
- 2.4.63
- PHP version (e.g, 8.3):
- 8.4.10
- Is this the first time you’ve seen this error? (Yes / No):
- Yes
- When did this problem seem to first start?
- Tuesday, 7/29/25
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- AIO
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
- Cloudflared tunnel, healthy according to Cloudflare dashboard
Summary of the issue you are facing:
After a physical machine relocation and reboot, I can no longer access the AIO interface or my Nextcloud environment from either the local or public networks. I use the AIO docker container. I’m not sure what changed, but I’m banging my head against a wall here. Any help would be much appreciated!
In Portainer, the apache, mastercontainer, nextcloud, and notify-push containers all read as unhealthy.
Steps to replicate it (hint: details matter!):
- (Re)Boot system
- Attempt to access either AIO interface locally or public Nextcloud interface
Log entries
nextcloud-aio-mastercontainer
Docker Root Dir: /var/snap/docker/common/var-lib-docker
Warning: It looks like your installation uses docker installed via snap.
This comes with some limitations and is disrecommended by the docker maintainers.
See for example https://github.com/nextcloud/all-in-one/discussions/4890#discussioncomment-10386752
curl: (28) Failed to connect to ghcr.io port 443 after 132567 ms: Could not connect to server
Could not reach https://ghcr.io.
Most likely is something blocking access to it.
You should be able to fix this by following https://dockerlabs.collabnix.com/intermediate/networking/Configuring_DNS.html
Another solution is using https://github.com/nextcloud/all-in-one/tree/main/manual-install
curl: (28) Failed to connect to ghcr.io port 443 after 134757 ms: Could not connect to server
curl: (28) Failed to connect to ghcr.io port 443 after 134763 ms: Could not connect to server
curl: (28) Failed to connect to ghcr.io port 443 after 134736 ms: Could not connect to server
Configuration
Nextcloud
<?php
$CONFIG = array (
'one-click-instance' => true,
'one-click-instance.user-limit' => 100,
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'appsallowlist' => false,
'check_data_directory_permissions' => false,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'nextcloud-aio-redis',
'password' => 'scrubbed',
'port' => 6379,
),
'overwritehost' => 'scrubbed',
'overwriteprotocol' => 'https',
'passwordsalt' => 'scrubbed',
'secret' => 'scrubbed',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'scrubbed',
),
'datadirectory' => '/mnt/ncdata',
'dbtype' => 'pgsql',
'version' => '31.0.7.1',
'overwrite.cli.url' => 'scrubbed',
'dbname' => 'nextcloud_database',
'dbhost' => 'nextcloud-aio-database',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'scrubbed',
'dbpassword' => 'scrubbed',
'installed' => true,
'instanceid' => 'oc58zw43d1hk',
'maintenance' => false,
'updatedirectory' => '/nc-updater',
'loglevel' => 2,
'log_type' => 'file',
'logfile' => '/var/www/html/data/nextcloud.log',
'log_rotate_size' => '10485760',
'log.condition' =>
array (
'apps' =>
array (
0 => 'admin_audit',
),
),
'preview_max_x' => 2048,
'preview_max_y' => 2048,
'jpeg_quality' => 60,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\Imaginary',
1 => 'OC\\Preview\\TXT',
2 => 'OC\\Preview\\OpenDocument',
3 => 'OC\\Preview\\Movie',
4 => 'OC\\Preview\\Krita',
5 => 'OC\\Preview\\Image',
6 => 'OC\\Preview\\HEIC',
7 => 'OC\\Preview\\TIFF',
8 => 'OC\\Preview\\ImaginaryPDF',
23 => 'OC\\Preview\\ImaginaryPDF',
),
'enable_previews' => true,
'upgrade.disable-web' => true,
'mail_smtpmode' => 'smtp',
'trashbin_retention_obligation' => 'auto, 30',
'versions_retention_obligation' => 'auto, 30',
'activity_expire_days' => '30',
'simpleSignUpLink.shown' => false,
'share_folder' => '/Shared',
'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',
'maintenance_window_start' => 100,
'allow_local_remote_servers' => true,
'davstorage.request_timeout' => 3600,
'htaccess.RewriteBase' => '/',
'dbpersistent' => false,
'auth.bruteforce.protection.enabled' => true,
'ratelimit.protection.enabled' => true,
'files_external_allow_create_new_local' => false,
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '::1',
10 => '172.19.0.0/16',
),
'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
'preview_imaginary_key' => 'd0338ff96454c3f4247db461aa340f250b81c5545568cf4c',
'memories.db.triggers.fcu' => true,
'memories.exiftool' => '/var/www/html/custom_apps/memories/bin-ext/exiftool-amd64-musl',
'memories.vod.path' => '/var/www/html/custom_apps/memories/bin-ext/go-vod-amd64',
'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
'memories.vod.ffprobe' => '/usr/bin/ffprobe',
'memories.gis_type' => 2,
'documentation_url.server_logs' => 'https://github.com/nextcloud/all-in-one/discussions/5425',
'updatechecker' => false,
);