Nextcloud version (eg, 20.0.5): 28.0.3.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.03
Apache or nginx version (eg, Apache 2.4.25): 2.4(?)
PHP version (eg, 7.4): 8.3.3
The issue you are facing:
When attempting to access the NextCloud instance in Chrome, I receive:
Unfortunately, after doing my best to scour the logs of different containers, ensure the instance had adequate resources available, and Google/attempt thoroughly, I couldn’t find a solution or evidence of the internal error.
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
- For my installation, simply accessing ‘mynextclouddomain.com’ returns an internal server error.
The output of your Nextcloud log in Admin > Logging:
Trying to fix docker.sock permissions internally...
Adding internal www-data to group ping
e[0;92mInitial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443e[0m
{"level":"info","ts":1711152190.2188838,"msg":"using provided configuration","config_file":"/Caddyfile","config_adapter":""}
[Sat Mar 23 00:03:10.258732 2024] [mpm_event:notice] [pid 107:tid 139982629665544] AH00489: Apache/2.4.58 (Unix) OpenSSL/3.1.4 configured -- resuming normal operations
[Sat Mar 23 00:03:10.259219 2024] [core:notice] [pid 107:tid 139982629665544] AH00094: Command line: 'httpd -D FOREGROUND'
[23-Mar-2024 00:03:10] NOTICE: fpm is running, pid 112
[23-Mar-2024 00:03:10] NOTICE: ready to handle connections
e[0;92mInitial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443e[0m
{"level":"info","ts":1711155599.2774653,"msg":"using provided configuration","config_file":"/Caddyfile","config_adapter":""}
[23-Mar-2024 00:59:59] NOTICE: fpm is running, pid 104
[23-Mar-2024 00:59:59] NOTICE: ready to handle connections
[Sat Mar 23 00:59:59.335477 2024] [mpm_event:notice] [pid 99:tid 140577233959688] AH00489: Apache/2.4.58 (Unix) OpenSSL/3.1.4 configured -- resuming normal operations
[Sat Mar 23 00:59:59.336136 2024] [core:notice] [pid 99:tid 140577233959688] AH00094: Command line: 'httpd -D FOREGROUND'
e[0;92mInitial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443e[0m
{"level":"info","ts":1711155704.555377,"msg":"using provided configuration","config_file":"/Caddyfile","config_adapter":""}
[Sat Mar 23 01:01:44.609669 2024] [mpm_event:notice] [pid 100:tid 140376624904968] AH00489: Apache/2.4.58 (Unix) OpenSSL/3.1.4 configured -- resuming normal operations
[Sat Mar 23 01:01:44.614947 2024] [core:notice] [pid 100:tid 140376624904968] AH00094: Command line: 'httpd -D FOREGROUND'
[23-Mar-2024 01:01:44] NOTICE: fpm is running, pid 105
[23-Mar-2024 01:01:44] NOTICE: ready to handle connections
e[0;92mInitial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443e[0m
{"level":"info","ts":1711156403.6851792,"msg":"using provided configuration","config_file":"/Caddyfile","config_adapter":""}
[Sat Mar 23 01:13:23.779230 2024] [mpm_event:notice] [pid 100:tid 140040298273544] AH00489: Apache/2.4.58 (Unix) OpenSSL/3.1.4 configured -- resuming normal operations
[Sat Mar 23 01:13:23.784841 2024] [core:notice] [pid 100:tid 140040298273544] AH00094: Command line: 'httpd -D FOREGROUND'
[23-Mar-2024 01:13:23] NOTICE: fpm is running, pid 110
[23-Mar-2024 01:13:23] NOTICE: ready to handle connections
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?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,
),
),
'check_data_directory_permissions' => false,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'nextcloud-aio-redis',
'password' => 'pwd',
'port' => 6379,
),
'overwritehost' => 'mynextclouddomain.com',
'overwriteprotocol' => 'https',
'passwordsalt' => 'salt',
'secret' => 'secret',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'mynextclouddomain.com',
),
'datadirectory' => '/mnt/ncdata',
'dbtype' => 'pgsql',
'version' => '28.0.3.2',
'overwrite.cli.url' => 'mynextclouddomain.com',
'dbname' => 'nextcloud_database',
'dbhost' => 'nextcloud-aio-database',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'user',
'dbpassword' => 'pwd',
'installed' => true,
'instanceid' => 'id',
'maintenance' => false,
'loglevel' => '2',
'log_type' => 'file',
'logfile' => '/var/www/html/data/nextcloud.log',
'log_rotate_size' => '10485760',
'log.condition' =>
array (
'apps' =>
array (
0 => 'admin_audit',
),
),
'objectstore' =>
array (
'class' => '\\OC\\Files\\ObjectStore\\S3',
'arguments' =>
array (
'bucket' => 'bucket',
'autocreate' => true,
'key' => 'key',
'secret' => 'secret',
'use_ssl' => true,
'region' => 'region',
),
),
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'enabledPreviewProviders' =>
array (
1 => 'OC\\Preview\\Image',
2 => 'OC\\Preview\\MarkDown',
3 => 'OC\\Preview\\MP3',
4 => 'OC\\Preview\\TXT',
5 => 'OC\\Preview\\OpenDocument',
6 => 'OC\\Preview\\Movie',
7 => 'OC\\Preview\\Krita',
0 => 'OC\\Preview\\Imaginary',
),
'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',
'updatedirectory' => '/nc-updater',
'davstorage.request_timeout' => 3600,
'htaccess.RewriteBase' => '/',
'dbpersistent' => false,
'files_external_allow_create_new_local' => false,
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '::1',
),
'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
'appsallowlist' => false,
'maintenance_window_start' => 100,
'allow_local_remote_servers' => true,
'preview_imaginary_key' => 'key',
);
The output of your Apache/nginx/system log in /var/log/____
:
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Connection to nextcloud-aio-nextcloud (172.18.0.9) 9000 port [tcp/*] succeeded!
{"level":"info","ts":1711156456.2629194,"msg":"using provided configuration","config_file":"/tmp/Caddyfile","config_adapter":""}
{"level":"info","ts":1711156456.284538,"msg":"failed to sufficiently increase send buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details."}
[Fri Mar 22 18:14:16.307706 2024] [mpm_event:notice] [pid 62:tid 140237994457864] AH00489: Apache/2.4.58 (Unix) configured -- resuming normal operations
[Fri Mar 22 18:14:16.308270 2024] [core:notice] [pid 62:tid 140237994457864] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
- I noticed the "failed to sufficiently increase send buffer size, but upon following the steps found here: https://github.com/nextcloud/all-in-one/discussions/1970 it made no difference. Could this be the issue? The config appears to be set correctly with the value from this GitHub issue. Aditionally, I found some info here: Can't increase receive buffer size on AIO WSL2 with Ubuntu host? but the post was incomplete and unfortunately I wasn’t able to get anywhere with the information provided.