Updated My Start9 Nextcloud Service to 28.0.14~1 now 2 factor is not allowing login

I ran an update on my start9 Server and updated my Nextcloud and I am now locked out as admin due to a two factor issue. Also cannot sync new files… getting the following:

Two-factor authentication

Could not load at least one of your enabled two-factor auth methods. Please contact your admin.

Two-factor authentication is enforced but has not been configured on your account. Contact your admin for assistance.

This upgrade deactivates non-default Nextcloud apps as part of the upgrade script in order to stop the upgrade from failing. This doesn’t affect many people as most people add and enable these apps just to see what they are and then never use them again. Not all the apps work perfectly in the StartOS environment yet and so deactivating anything that isn’t heavily tested might even be beneficial.

For those who do have an app that works and that they are using, after the upgrade they’d need to go into the Apps section and enable them again.

Which… leaves you stuck, since your preferred app, twofactor_totp is needed to let you log in!

To fix this, you’ll need to enable the app manually.

  1. Setup SSH on your server (Start9 | Using SSH)

  2. SSH into your server:

ssh start9@adjective-noun.local
  1. Enter into the Nextcloud container:
sudo podman exec -it nextcloud.embassy bash
  1. Enable the app manually:
sudo -u www-data php occ app:enable twofactor_totp

Thank you this worked like a charm. It also appears server side encryption has been disabled as well and my files are no longer syncing. Is there a way to renable it similar to the two factor?

If you are now logged in, you are able to go to the Apps section and install and re-enable any Apps that you like.

I had to manually enable encryption app the same way…
sudo -u www-data php occ app:enable encryption

Bingo sync is now working!! thank you so much!!

1 Like