I updated from 17 to 18 and now my install is messed up

Nextcloud version (eg, 20.0.5): 18
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.29
PHP version (eg, 7.4): 7.4.24

<?php $CONFIG = array ( 'instanceid' => 'oc3e5szc7g6j', 'passwordsalt' => 'xNY59qF2ctX2jmwWqFGe/M+TrOeyRM', 'secret' => 'f37nIXFTCAeiSlJ5peNobNxahPm11WIjsPcXZYgiuokwlV4l', 'trusted_domains' => array ( 0 => 'cloud.website.com', 1 => '10.10.0.105', ), 'datadirectory' => '/nextcloud/data/data', 'overwrite.cli.url' => 'http://cloud.website.com', 'dbtype' => 'sqlite3', 'version' => '18.0.14.1', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'dbusername', 'dbpassword' => 'dbpassword', 'simpleSignUpLink.shown' => false, 'installed' => true, 'filelocking.enabled' => true, 'maintenance' => false, 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => 'localhost', 'port' => 6379, ), 'mail_smtpmode' => 'smtp', 'mail_smtpauthtype' => 'LOGIN', 'mail_from_address' => 'emailaddress', 'mail_domain' => 'gmail.com', 'mail_smtpauth' => 1, 'mail_smtphost' => 'smtp.gmail.com', 'mail_smtpport' => '587', 'mail_smtpname' => 'gmailname@gmail.com', 'mail_smtppassword' => 'gmailpassword', 'mail_smtpsecure' => 'tls', 'theme' => '', 'loglevel' => 0, 'updater.release.channel' => 'stable', 'updater.secret' => '$2y$10$UPDATERSECRET/xIMwjS', ); ``` cat /var/log/apache2/error.log [Thu Mar 10 00:09:13.152298 2022] [mpm_prefork:notice] [pid 2049] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations [Thu Mar 10 00:09:13.152373 2022] [core:notice] [pid 2049] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 10 06:58:48.495141 2022] [mpm_prefork:notice] [pid 2049] AH00171: Graceful restart requested, doing restart [Thu Mar 10 06:58:48.722279 2022] [mpm_prefork:notice] [pid 2049] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations [Thu Mar 10 06:58:48.722317 2022] [core:notice] [pid 2049] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 10 06:58:55.277093 2022] [mpm_prefork:notice] [pid 2049] AH00171: Graceful restart requested, doing restart [Thu Mar 10 06:58:55.520172 2022] [mpm_prefork:notice] [pid 2049] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations [Thu Mar 10 06:58:55.520214 2022] [core:notice] [pid 2049] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 10 06:58:59.454945 2022] [mpm_prefork:notice] [pid 2049] AH00171: Graceful restart requested, doing restart [Thu Mar 10 06:58:59.684736 2022] [mpm_prefork:notice] [pid 2049] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations [Thu Mar 10 06:58:59.684774 2022] [core:notice] [pid 2049] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 10 06:59:06.293079 2022] [mpm_prefork:notice] [pid 2049] AH00171: Graceful restart requested, doing restart [Thu Mar 10 06:59:06.521284 2022] [mpm_prefork:notice] [pid 2049] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations [Thu Mar 10 06:59:06.521326 2022] [core:notice] [pid 2049] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 10 15:13:09.441303 2022] [mpm_prefork:notice] [pid 2049] AH00171: Graceful restart requested, doing restart [Thu Mar 10 15:13:09.689563 2022] [mpm_prefork:notice] [pid 2049] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations [Thu Mar 10 15:13:09.689601 2022] [core:notice] [pid 2049] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 10 15:13:16.301037 2022] [mpm_prefork:notice] [pid 2049] AH00171: Graceful restart requested, doing restart [Thu Mar 10 15:13:16.548011 2022] [mpm_prefork:notice] [pid 2049] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations [Thu Mar 10 15:13:16.548052 2022] [core:notice] [pid 2049] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 10 15:13:20.773530 2022] [mpm_prefork:notice] [pid 2049] AH00171: Graceful restart requested, doing restart [Thu Mar 10 15:13:21.005592 2022] [mpm_prefork:notice] [pid 2049] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations [Thu Mar 10 15:13:21.005636 2022] [core:notice] [pid 2049] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 10 15:13:27.608469 2022] [mpm_prefork:notice] [pid 2049] AH00171: Graceful restart requested, doing restart [Thu Mar 10 15:13:27.838744 2022] [mpm_prefork:notice] [pid 2049] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations [Thu Mar 10 15:13:27.838826 2022] [core:notice] [pid 2049] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 10 16:07:39.282010 2022] [core:error] [pid 9303] [client 161.35.188.242:38930] AH00126: Invalid URI in request GET /cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/hosts HTTP/1.1 [Thu Mar 10 16:07:41.658157 2022] [php7:error] [pid 9304] [client 161.35.188.242:40684] script '/var/www/html/frontend_dev.php' not found or unable to stat ``` I was on an old version of Nextcloud (Version 14) and so I started using the web updater to update as far as I could go. Everything was going well until I upgraded to 18. Now, my login page, settings and user data is now missing. After frantically ssh'ing into the server, I found that all my files are still there, including my config file was not touched. It seems that maybe either a compatibility with the database I was using broke and it created a new but empty database. How can I fix this? I hope to go to version 23.

Hmm, is there any way to just restore your data into a current release?

Please do keep full backups before updating.

Also, the jumble of this is really difficult to read.

Sorry, yea it seemed more formatted before I hit Post…

Essentially yea, I backed everything up but I guess my big question is how do I restore? I dont have any formal backup, I rsync’d the html file and the /nextcloud folder to my external, where most of my footage is stored.

Because of this entry i think you use only a minimal Nextcloud for perhaps one person.

I think you can better:

  • backup all files

  • export calender, contacts, …

  • lose all shares

  • delete old Nextcloud

  • upgrade to Ubuntu 20.04 LTS (or new installation, use default packages for e.g. php)

  • install Nextcloud 23

  • add new users

  • import old files (use e.g. occ files:rescan --all)

  • import calender, contacts, …

  • make new public shares

You must upgrade from 17 to 18, 19, 20, 21, 22 and then 23.

Unfortunately, you have to take care of your nexcloud about every half year. You didn’t do that. Perhaps you can better use a Managed Nextcloud in the internet. Then other people take care of the updates.