Owncloud failing

I moved the server to a new hosting using backup restore and I’m now getting an error that my owncloud is corrupted.

I tried to create a new database and and tried to re run the setup, but the setup fails.

I tried copying the owncloud.db from my old miab to the new server, but then it says nextcloud is running in maintenance mode. I’m not sure what to do at this point.

Below the install information:

Installing Nextcloud (contacts/calendar)…
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Updating database schema
Updated database
Updating <user_external> …
Updated <user_external> to 3.3.0
Update app user_external from App Store
Starting code integrity check…
Finished code integrity check
Update successful
Maintenance mode is kept active
Resetting log level
Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
Installing Z-Push (Exchange/ActiveSync server)…
Installing Mail-in-a-Box system management daemon…
Installing Munin (system monitoring)…
updated DNS: OpenDKIM configuration

I’m getting an email constantly from MIAB:
Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
There are no commands defined in the “dav” namespace.

How do I make the netcloud work normally again?

Ok I tried to run that command:
sudo -u www-data php8.0 /usr/local/lib/owncloud/occ maintenance:mode --off

and this worked.
Maintenance mode is now off and not getting the email from MIAB anymore.

I’m wondering what could have corrupted the database.

Do you believe that because I mounted an external drive on the default MIAB path ‘/home/user-data’ it is corrupting the owncloud database when the server boots and the services are starting?

That might depend on how and when you mount(ed) the external drive. If it’s done very early (eg. listed in /etc/fstab) and mounted done before it’s ever used, it should be fine.

If you mount it manually, and something is already using what’s under /home/user-data, yup - that would screw things up! Or if the MIAB install or any related service had run before you mounted the external drive, those things would have seen a different directory and subsequent stuff would all fall to pieces.

Moral - setup all drives etc before the mount-points can possibly be used. And take care with network drives.

I did it correctly.
It was mapped way before I started anything. The only error I got from the MIAB setup was that the folder already existed. But they were empty.

Not sure what happen exactly with the owncloud database…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.