problem with update to Nextcloud 20.04

Leonard Lassen

Explorer
Joined
Nov 19, 2020
Messages
82
Hello everybody, I have updated my nextcloud, which is running in a jail in truenas, to version 20.0.4 today, I then went into the browser and was asked again to do the update, which I did. the update was then aborted with an error and nextcloud went into maintenance mode I then brought nextcloud out of mode via config.php. Then the message came back with the update and it started all over again. Can I somehow downgrade Nextcloud? Here is the detailed error message

Code:

`## Update to 20.0.4

An error has occurred.

Detailed log messages

Prepare update

Log level set to “debug”

Maintenance mode switched on

Repair step: Repair MySQL collation

Repair information: All tables already have the correct collation -> nothing to do

Repair step: Repair SQLite autoincrement

Repair step: Copy data from accounts table when migrating from ownCloud

Repair step: Drop account terms table when migrating from ownCloud

The database schema is updated

Database updated

Look for an update for the accessibility app in the app store

App store checked for updates for the app “accessibility”

Check for an update for the “activity” app in the app store

App store checked for updates for the app “activity”

Check for an update for the bruteforcesettings app in the app store

App store checked for updates for the “bruteforcesettings” app

Look for an update for the “calendar” app in the app store

App store checked for updates for the “calendar” app

Look for an update for the “cloud_federation_api” app in the app store

App store checked for updates for the “cloud_federation_api” app

Check for an update to the “Comments” app in the App Store

App store checked for updates for the app “comments”

Check for an update to the “contactsinteraction” app in the app store

App store checked for updates for the “contactsinteraction” app

Check for an update to the dashboard app in the app store

App store checked for updates for the app “dashboard”

Check for an update for the “dav” app in the app store

App store checked for updates for app “dav”

Look for an update for the “end_to_end_encryption” app in the app store

App store checked for updates for the “end_to_end_encryption” app

Look for an update for the “federatedfilesharing” app in the app store

App store checked for updates for the “federatedfilesharing” app

Look for an update for the “federation” app in the app store

App store checked for updates for the “federation” app

Check for an update for the files app in the app store

App store checked for updates for the app “files”

Look for an update for the files_external app in the app store

App store checked for updates for the app “files_external”

Look for an update for the “files_pdfviewer” app in the app store

App store checked for updates for the app “files_pdfviewer”

Look for an update for the "files_rightclick" app in the app store

App store checked for updates for the app “files_rightclick”

Look for an update for the files_sharing app in the app store

App store checked for updates for the app “files_sharing”

Look for an update for the files_trashbin app in the app store

App store checked for updates for the app “files_trashbin”

Check for an update for the files_versions app in the app store

App store checked for updates for the app “files_versions”

Check for an update for the “files_videoplayer” app in the app store

App store checked for updates for the app “files_videoplayer”

Look for an update for the “firstrunwizard” app in the app store

App store checked for updates for the “firstrunwizard” app

Look for an update for the “logreader” app in the app store

App store checked for updates for the “logreader” app

Look for an update for the “lookup_server_connector” app in the app store

App store checked for updates for the app “lookup_server_connector”

Look for an update for the “nextcloud_announcements” app in the app store

App store checked for updates for the app “nextcloud_announcements”

Look for an update for the “notifications” app in the app store

App store checked for updates for the app “notifications”

Look for an update for the “oauth2” app in the app store

App store checked for updates for the “oauth2” app

Look for an update for the “onlyoffice” app in the app store

App store checked for updates for the “onlyoffice” app

Check for an update for the password_policy app in the app store
Mehr zu diesem Ausgangstext
Für weitere Übersetzungsinformationen ist ein Ausgangstext erforderlich
Feedback geben
Seitenleisten
Zeichenbeschränkung: 5.000. Du kannst mithilfe der Pfeile weiter übersetzen.


can somebody help me?

best regards Leonard
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The log is truncated and does not say what went wrong.
I assume this is the output of the upgrade command?
cd /usr/local/www/nextcloud && su -m www -c "/usr/local/bin/php occ upgrade"

As for the downgrade: of course, roll back the plugin jail to the latest snapshot before your upgrade.
 

Leonard Lassen

Explorer
Joined
Nov 19, 2020
Messages
82
yes thats right this is the log when i update nextcloud in the browser or when I do that in the shell.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
If you had enabled snapshots for all datasets under nextcloud/iocage/jails then shutdown your jail and for each dataset pick the snapshot to rollback to - I never used the UI for that, sorry.

But first let's look at the original problem. Don't ever do updates in the browser (besides Apps) - period. You can login to the jail, do pkg update; pkg upgrade; pkg autoremove, restart the jail, then do the occ command above. Don't forget a mysql_upgrade which is also mandatory after each update of the MySQL or MariaDB packages.

In the (SSH!) shell you should be able to capture the entire output from occ, so possibly we can catch what went wrong.
 

Leonard Lassen

Explorer
Joined
Nov 19, 2020
Messages
82
I have a snapshot but that is nextcloud/iocage and not nextcloud/iocage/jails is that a problem? Because this is from last week as we changed to the new drives.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You need a recursive snapshot of all the datasets that make up your nextcloud jail. We did that for the send/receive process. You would need to revert all the datasets. Can somebody who knows the UI better than I do confirm that one can do a recurive rollback that way?

But you lose everything that changed since then! Rollbacks are a "time machine". They revert all changes.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776

Leonard Lassen

Explorer
Joined
Nov 19, 2020
Messages
82
I can not login with ssh as root I get the message that my password is wrong but its the right password
 

Leonard Lassen

Explorer
Joined
Nov 19, 2020
Messages
82
You need a recursive snapshot of all the datasets that make up your nextcloud jail. We did that for the send/receive process. You would need to revert all the datasets. Can somebody who knows the UI better than I do confirm that one can do a recurive rollback that way?

But you lose everything that changed since then! Rollbacks are a "time machine". They revert all changes.
okay that means that I can do it like this when I do the snapshot of the move, yes the data is not the problem and nothing has actually been saved or changed
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
I can not login with ssh as root I get the message that my password is wrong but its the right password
How did you do our move operation? I explicitly told you to use SSH instead of the web console.
You need to enable root login in the SSH settings under Services, then restart the SSH service.
 

Leonard Lassen

Explorer
Joined
Nov 19, 2020
Messages
82
by the command mysql_upgrade I get this

mysql_upgrade: Got error: 1045: Acces denied for user ´root´@`localhost` (using password: NO)
While connecting to the MySQL server
Upgrade process encountered error and will not continue
root@nextcloud:~ #
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
mysql_upgrade -p, of course if there is a root password set.
 

Leonard Lassen

Explorer
Joined
Nov 19, 2020
Messages
82
I have load a snapshot but that was not the right way I use now my old backup to restore everything. ups
 
Top