Nextcloud won't work after Ubuntu update

Nextcloud version : 19.0.4.
Operating system and version (eg, Ubuntu 20.04): Updated 20.04 from 18.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.46
PHP version (eg, 7.1): 7.4.3

The issue you are facing:

I updated my Ubuntu from 18.04 LTS to 20.04.
After the update was successful, I wanted to boot but had errors because of

systemd-jounral Failed to write entry

I rebooted the system and tried the old kernel and I was able to boot up again.
But now I’m facing the problem that I cannot access my Nextcloud because of Error 503.
I checked if php7.2-fpm service was running like I have seen on other posts but it is masked.
Is this maybe the problem for my cause?

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. See above

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.0.10',
    2 => 'cloud.XXXXXXXXXXXXXXXXXXX.net',
    3 => 'cloud.XXXXXXXXXXXXXXXXXXX.net',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '19.0.4.2',
  'overwrite.cli.url' => 'https://cloud.XXXXXXXXXXXXXXXXXXXXXX.net/',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'ncadmin',
  'dbpassword' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'installed' => true,
  'instanceid' => 'ocns94zifdu4',
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '2',
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => '1800',
  'log_rotate_size' => '10485760',
  'trashbin_retention_obligation' => 'auto, 180',
  'versions_retention_obligation' => 'auto, 365',
  'simpleSignUpLink.shown' => 'false',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,    
	'timeout' => 0.5,
    'dbindex' => 0,
    'password' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  ),
  'logtimezone' => 'Europe/Berlin',
  'htaccess.RewriteBase' => '/',
  'enable_previews' => true,
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'maintenance' => false,
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'quirinlippl',
  'mail_domain' => 'outlook.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'SMTP.office365.com',
  'mail_smtpport' => '587',
  'mail_smtpname' => '',
  'mail_smtppassword' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,
  'app_install_overwrite' =>
  array (
    0 => 'ocr',
    1 => 'dropit',
    2 => 'joplin',
  ),
  'theme' => '',
  'updater.secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
);

The output of your Apache/nginx/system log in /var/log/____:

[Thu Nov 05 06:43:49.513783 2020] [proxy:error] [pid 983:tid 140342208751360] (2)No such file or directory: AH02454: FCGI: attempt to c>
[Thu Nov 05 06:42:50.925099 2020] [proxy_fcgi:error] [pid 982:tid 140342191965952] [client 192.168.0.4:50061] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:43:19.519299 2020] [proxy:error] [pid 983:tid 140342049289984] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:43:19.519323 2020] [proxy_fcgi:error] [pid 983:tid 140342049289984] [client 62.159.232.186:52055] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:43:20.924654 2020] [proxy:error] [pid 983:tid 140342024111872] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:43:20.924686 2020] [proxy_fcgi:error] [pid 983:tid 140342024111872] [client 192.168.0.4:50065] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:43:49.513783 2020] [proxy:error] [pid 983:tid 140342208751360] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:43:49.513805 2020] [proxy_fcgi:error] [pid 983:tid 140342208751360] [client 62.159.232.186:52079] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:43:50.909977 2020] [proxy:error] [pid 983:tid 140342200358656] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:43:50.910000 2020] [proxy_fcgi:error] [pid 983:tid 140342200358656] [client 192.168.0.4:50068] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:44:19.518161 2020] [proxy:error] [pid 983:tid 140342191965952] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:44:19.518183 2020] [proxy_fcgi:error] [pid 983:tid 140342191965952] [client 62.159.232.186:52102] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:44:20.905906 2020] [proxy:error] [pid 983:tid 140342175180544] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:44:20.905928 2020] [proxy_fcgi:error] [pid 983:tid 140342175180544] [client 192.168.0.4:50069] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:44:49.498868 2020] [proxy:error] [pid 983:tid 140342158395136] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:44:49.498892 2020] [proxy_fcgi:error] [pid 983:tid 140342158395136] [client 62.159.232.186:52134] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:44:50.003302 2020] [proxy:error] [pid 982:tid 140342166787840] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:44:50.003322 2020] [proxy_fcgi:error] [pid 982:tid 140342166787840] [client 62.159.232.186:52135] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:44:50.902501 2020] [proxy:error] [pid 982:tid 140342175180544] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:44:50.902520 2020] [proxy_fcgi:error] [pid 982:tid 140342175180544] [client 192.168.0.4:50072] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:45:19.504341 2020] [proxy:error] [pid 982:tid 140342133217024] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:45:19.504369 2020] [proxy_fcgi:error] [pid 982:tid 140342133217024] [client 62.159.232.186:52161] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:45:20.901396 2020] [proxy:error] [pid 983:tid 140342141609728] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:45:20.901418 2020] [proxy_fcgi:error] [pid 983:tid 140342141609728] [client 192.168.0.4:50073] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:45:49.553925 2020] [proxy:error] [pid 982:tid 140342116431616] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:45:49.553950 2020] [proxy_fcgi:error] [pid 982:tid 140342116431616] [client 62.159.232.186:52185] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:45:50.202761 2020] [proxy:error] [pid 983:tid 140342124824320] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:45:50.202782 2020] [proxy_fcgi:error] [pid 983:tid 140342124824320] [client 5.180.62.28:32832] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 05 06:45:50.910599 2020] [proxy:error] [pid 982:tid 140342108038912] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Thu Nov 05 06:45:50.910622 2020] [proxy_fcgi:error] [pid 982:tid 140342108038912] [client 192.168.0.4:50079] AH01079: failed to make connection to backend: httpd-UDS





No real idea. But because of the errors perhaps a problem with the php (php-fm) version (7.2 vs. 7.4) because of your update.

Perhaps you can read this two tutorials an control everything.
The first tutorial is Debian but perhaps it is useful for you because of Apache2.
The second tutoral is Ubuntu and Nginx and it is useful for you because of Ubuntu and Nextcloud.

Do you have installed the needed packages.
Please also control the versions e.g. with “dpkg -l”

https://www.howtoforge.com/tutorial/how-to-install-nextcloud-on-debian-10
https://www.howtoforge.com/tutorial/ubuntu-nginx-nextcloud/

Hmmm

I removed php7.2 because it will be deprecated in the near future. At least I get no errors after a reboot but my nextcloud ist still not working…

I was already thinking about setting up a new VM with a fresh nextcloud install because I started last year with the “Nextcloud VM” approach with the OnlyOffice Server etc.
After the last update, the OnlyOffice stuff got implemented, right?
So maybe it’s time for a fresh start…

I got only one question regarding a new start.
I had my “ncdata” folder on my FreeNAS, when I reinstall my nextcloud, can I use the same folder or should I create a new share, install Nextcloud with the new NCDATA Folder, recreate all users and then move their data to their respective folders?
Is this completely bullsh.t what I’m trying to do or reasonable?

Cheers