Nextcloud version (eg, 20.0.5):
Operating system and version: Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-52-generic x86_64)
Apache or nginx version:
Server version: Apache/2.4.54 (Debian)
Server built: 2022-06-09T04:26:43
PHP version (eg, 7.4):
I set up a Nextcloud AIO instance using Linode Marketplace. Worked well, until I updated through the UI. Now I’m getting 502 Bad Gateway
on the main web interface, and the AIO login never logs me in (just redirects to self).
I have rebooted all containers and the machine, same error. I have tried stopping nextcloud-aio-apache
and logging in through the AIO (port :8443
), but just get redirected with no error to the same login screen.
The containers are all up and running.
Logs from nextcloud-aio-apache
report connection refused
on port 8000, which is not open on any container according to docker ps -a
(see below).
{"level":"error","ts":1667050944.032651,"logger":"http.log.error","msg":"dial tcp 127.0.0.1:8000: connect: connection refused",...
/var/www/html/config/config.php
(nextcloud-aio-apache container)
<?php
$CONFIG = array (
'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,
),
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'nextcloud-aio-redis',
'password' => '632c2268368d70ad489174292989e4b19f56e1883af90967',
'port' => 6379,
),
'overwritehost' => 'nextcloud.mydomain.com',
'overwriteprotocol' => 'https',
'passwordsalt' => 'SY4xGP6mxAP8S0bt0FeHIN+6hJLVGl',
'secret' => 'iJEfg6xyu+rh/nyYvLCUBgt4gfFIpwIuhR/stypUp4XYyq1X',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'nextcloud.mydomain.com',
),
'datadirectory' => '/mnt/ncdata',
'dbtype' => 'pgsql',
'version' => '24.0.4.1',
'overwrite.cli.url' => 'https://nextcloud.mydomain.com/',
'dbname' => 'nextcloud_database',
'dbhost' => 'nextcloud-aio-database',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_nextcloud',
'dbpassword' => 'dd13a3bfff846afa3ee6220abec2e20c5f720d76a11c93d5',
'installed' => true,
'instanceid' => 'oc1k9snqsxrm',
'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 (
1 => 'OC\\Preview\\Image',
2 => 'OC\\Preview\\MarkDown',
3 => 'OC\\Preview\\MP3',
4 => 'OC\\Preview\\TXT',
5 => 'OC\\Preview\\OpenDocument',
6 => 'OC\\Preview\\Movie',
),
'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' => true,
'one-click-instance.user-limit' => 100,
'htaccess.RewriteBase' => '/',
'files_external_allow_create_new_local' => true,
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '::1',
),
'allow_local_remote_servers' => true,
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
);
/var/log/apache2/error.log
(nextcloud-aio-apache container)
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.8. Set the 'ServerName' directive globally to suppress this message
[Mon Aug 29 21:33:54.596772 2022] [mpm_event:notice] [pid 36:tid 140011729788224] AH00489: Apache/2.4.54 (Debian) configured -- resuming normal operations
[Mon Aug 29 21:33:54.597145 2022] [core:notice] [pid 36:tid 140011729788224] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'
[Tue Aug 30 07:08:49.064182 2022] [proxy_fcgi:error] [pid 40:tid 140010699355904] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:47536] AH01075: Error dispatching request to :8000: (reading input brigade)
[Tue Aug 30 07:23:16.828200 2022] [proxy_fcgi:error] [pid 40:tid 140010690963200] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:47626] AH01075: Error dispatching request to :8000: (reading input brigade)
[Tue Aug 30 07:40:35.612048 2022] [proxy_fcgi:error] [pid 38:tid 140011613701888] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:47710] AH01075: Error dispatching request to :8000: (reading input brigade)
[Tue Aug 30 07:45:19.743634 2022] [proxy_fcgi:error] [pid 40:tid 140011336873728] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:47784] AH01075: Error dispatching request to :8000: (reading input brigade)
[Tue Aug 30 08:02:14.344367 2022] [proxy_fcgi:error] [pid 40:tid 140011345266432] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:47934] AH01075: Error dispatching request to :8000: (reading input brigade)
[Tue Aug 30 08:06:48.298395 2022] [proxy_fcgi:error] [pid 40:tid 140011638880000] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:47998] AH01075: Error dispatching request to :8000: (reading input brigade)
[Tue Aug 30 08:15:38.475300 2022] [proxy_fcgi:error] [pid 38:tid 140011622094592] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:48076] AH01075: Error dispatching request to :8000: (reading input brigade)
[Tue Aug 30 08:20:23.594072 2022] [proxy_fcgi:error] [pid 40:tid 140011718846208] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:48150] AH01075: Error dispatching request to :8000: (reading input brigade)
[Tue Aug 30 08:30:46.866995 2022] [proxy_fcgi:error] [pid 40:tid 140011605309184] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:48196] AH01075: Error dispatching request to :8000: (reading input brigade)
[Tue Aug 30 08:48:16.594039 2022] [proxy_fcgi:error] [pid 40:tid 140010833573632] (70008)Partial results are valid but processing is incomplete: [client 127.0.0.1:48424] AH01075: Error dispatching request to :8000: (reading input brigade)
[Sat Oct 08 10:50:14.849883 2022] [proxy_fcgi:error] [pid 154:tid 140011487876864] [client 127.0.0.1:55794] AH01071: Got error 'PHP message: PHP Deprecated: Required parameter $tid follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1894PHP message: PHP Deprecated: Required parameter $lat follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1894PHP message: PHP Deprecated: Required parameter $lon follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1894PHP message: PHP Deprecated: Required parameter $alt follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1894PHP message: PHP Deprecated: Required parameter $tst follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1894PHP message: PHP Deprecated: Required parameter $acc follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1894PHP message: PHP Deprecated: Required parameter $batt follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1894PHP message: PHP Deprecated: Required parameter $id follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1951PHP message: PHP Deprecated: Required parameter $lat follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1951PHP message: PHP Deprecated: Required parameter $lon follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1951PHP message: PHP Deprecated: Required parameter $timestamp follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1951PHP message: PHP Deprecated: Required parameter $accuracy follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1951PHP message: PHP Deprecated: Required parameter $altitude follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1951PHP message: PHP Deprecated: Required parameter $batt follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1951PHP message: PHP Deprecated: Required parameter $speed follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1951PHP message: PHP Deprecated: Required parameter $bearing follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1951PHP message: PHP Deprecated: Required parameter $id follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1969PHP message: PHP Deprecated: Required parameter $dev follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1969PHP message: PHP Deprecated: Required parameter $acct follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1969PHP message: PHP Deprecated: Required parameter $alt follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1969PHP message: PHP Deprecated: Required parameter $batt follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1969PHP message: PHP Deprecated: Required parameter $gprmc follows optional parameter $devicename in /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php on line 1969'
/var/www/html/data/nextcloud.log
(nextcloud-aio-nextcloud container)
Only lines like these, regarding notifications…
/html/apps/notifications/lib/MailNotifications.php","line":166,"function":"sendEmailToUser","class":"OCA\\Notifications\\MailNotifications","type":"->","args":[{"__class__":"OCA\\Notifications\\Model\\Settings","id":1},[{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},"And 20 more entries, set log level to debug to see all entries"],"en","Atlantic/Reykjavik"]},{"file":"/var/www/html/apps/notifications/lib/BackgroundJob/SendNotificationMails.php","line":49,"function":"sendEmails","class":"OCA\\Notifications\\MailNotifications","type":"->","args":[500,1667052606]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\\Notifications\\BackgroundJob\\SendNotificationMails","type":"->","args":[null]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":95,"function":"execute","class":"OCP\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/var/www/html/cron.php","line":151,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","Line":261,"message":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)","exception":{},"CustomMessage":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)"}}
{"reqId":"0s8uhje0iDaPX6cRy3D3","level":3,"time":"2022-10-29T14:15:06+00:00","remoteAddr":"","user":"--","app":"notifications","method":"","url":"--","message":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)","userAgent":"--","version":"24.0.4.1","exception":{"Exception":"Swift_TransportException","Message":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)","Code":0,"Trace":[{"function":"{closure}","class":"Swift_Transport_StreamBuffer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","line":264,"function":"stream_socket_client","args":["127.0.0.1:25",0,"",10,4,null]},{"file":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","line":58,"function":"establishSocketConnection","class":"Swift_Transport_StreamBuffer","type":"->","args":[]},{"file":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php","line":143,"function":"initialize","class":"Swift_Transport_StreamBuffer","type":"->","args":[["","127.0.0.1",25,10,1,"And 3 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php","line":65,"function":"start","class":"Swift_Transport_AbstractSmtpTransport","type":"->","args":[]},{"file":"/var/www/html/lib/private/Mail/Mailer.php","line":195,"function":"send","class":"Swift_Mailer","type":"->","args":[{"__class__":"Swift_Message"},[]]},{"file":"/var/www/html/apps/notifications/lib/MailNotifications.php","line":215,"function":"send","class":"OC\\Mail\\Mailer","type":"->","args":[{"__class__":"OC\\Mail\\Message"}]},{"file":"/var/www/html/apps/notifications/lib/MailNotifications.php","line":166,"function":"sendEmailToUser","class":"OCA\\Notifications\\MailNotifications","type":"->","args":[{"__class__":"OCA\\Notifications\\Model\\Settings","id":1},[{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},"And 20 more entries, set log level to debug to see all entries"],"en","Atlantic/Reykjavik"]},{"file":"/var/www/html/apps/notifications/lib/BackgroundJob/SendNotificationMails.php","line":49,"function":"sendEmails","class":"OCA\\Notifications\\MailNotifications","type":"->","args":[500,1667052906]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\\Notifications\\BackgroundJob\\SendNotificationMails","type":"->","args":[null]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":95,"function":"execute","class":"OCP\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/var/www/html/cron.php","line":151,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","Line":261,"message":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)","exception":{},"CustomMessage":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)"}}
{"reqId":"Zcbhc4YnkAQNiZ1RYszV","level":3,"time":"2022-10-29T14:20:06+00:00","remoteAddr":"","user":"--","app":"notifications","method":"","url":"--","message":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)","userAgent":"--","version":"24.0.4.1","exception":{"Exception":"Swift_TransportException","Message":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)","Code":0,"Trace":[{"function":"{closure}","class":"Swift_Transport_StreamBuffer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","line":264,"function":"stream_socket_client","args":["127.0.0.1:25",0,"",10,4,null]},{"file":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","line":58,"function":"establishSocketConnection","class":"Swift_Transport_StreamBuffer","type":"->","args":[]},{"file":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php","line":143,"function":"initialize","class":"Swift_Transport_StreamBuffer","type":"->","args":[["","127.0.0.1",25,10,1,"And 3 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php","line":65,"function":"start","class":"Swift_Transport_AbstractSmtpTransport","type":"->","args":[]},{"file":"/var/www/html/lib/private/Mail/Mailer.php","line":195,"function":"send","class":"Swift_Mailer","type":"->","args":[{"__class__":"Swift_Message"},[]]},{"file":"/var/www/html/apps/notifications/lib/MailNotifications.php","line":215,"function":"send","class":"OC\\Mail\\Mailer","type":"->","args":[{"__class__":"OC\\Mail\\Message"}]},{"file":"/var/www/html/apps/notifications/lib/MailNotifications.php","line":166,"function":"sendEmailToUser","class":"OCA\\Notifications\\MailNotifications","type":"->","args":[{"__class__":"OCA\\Notifications\\Model\\Settings","id":1},[{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},{"__class__":"OC\\Notification\\Notification"},"And 20 more entries, set log level to debug to see all entries"],"en","Atlantic/Reykjavik"]},{"file":"/var/www/html/apps/notifications/lib/BackgroundJob/SendNotificationMails.php","line":49,"function":"sendEmails","class":"OCA\\Notifications\\MailNotifications","type":"->","args":[500,1667053206]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\\Notifications\\BackgroundJob\\SendNotificationMails","type":"->","args":[null]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":95,"function":"execute","class":"OCP\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/var/www/html/cron.php","line":151,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/var/www/html/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","Line":261,"message":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)","exception":{},"CustomMessage":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)"}}
Nextcloud ports (nextcloud-aio-nextcloud container)
bash-5.1$ netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:7867 0.0.0.0:* LISTEN 204/notify_push
tcp 0 0 127.0.0.11:43175 0.0.0.0:* LISTEN -
tcp 0 0 172.18.0.5:58242 172.18.0.4:6379 ESTABLISHED 204/notify_push
tcp 0 0 :::9000 :::* LISTEN 207/php-fpm.conf)
Docker status
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8e4aa9ad43e8 nextcloud/aio-apache:latest "start.sh /usr/bin/s…" 2 months ago Up 5 minutes 0.0.0.0:443->443/tcp, :::443->443/tcp nextcloud-aio-apache
db8d2525e906 nextcloud/aio-nextcloud:latest "/start.sh /usr/bin/…" 2 months ago Up 17 minutes 9000/tcp nextcloud-aio-nextcloud
b5d64eaefaf9 nextcloud/aio-redis:latest "start.sh" 2 months ago Up 17 minutes 6379/tcp nextcloud-aio-redis
5544c8a29d57 nextcloud/aio-postgresql:latest "start.sh" 2 months ago Up 17 minutes 5432/tcp nextcloud-aio-database
d0d09983181d nextcloud/aio-talk:latest "start.sh /usr/bin/s…" 2 months ago Up 17 minutes 0.0.0.0:3478->3478/tcp, 0.0.0.0:3478->3478/udp, :::3478->3478/tcp, :::3478->3478/udp nextcloud-aio-talk
52275bf85c01 nextcloud/aio-collabora:latest "/start-collabora-on…" 2 months ago Up 35 seconds 9980/tcp nextcloud-aio-collabora
9a561afefe0d nextcloud/aio-domaincheck:latest "/start.sh" 2 months ago Exited (137) 19 minutes ago nextcloud-aio-domaincheck
722257d3a47b nextcloud/all-in-one:latest "start.sh /usr/bin/s…" 2 months ago Up 17 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 0.0.0.0:8443->8443/tcp, :::8443->8443/tcp nextcloud-aio-mastercontainer