Restore destroyed NextCloud if Database still exists?

I am afraid I detroyed my NC with several attempts to upgrade, but I still have the complete database. There is a huge table “oc_filecache” with more than 4000 entries.
Is it possible to restore the NC instance based on the database?

The database is part of what’s needed.

Your files however aren’t stored in the database. They’ll be in your configured datadirectory.

See the Maintenance chapter of the Admin Manual.

I am afraid I detroyed my NC with several attempts to upgrade,

Depending on what you mean here, there may be other approaches to recover but we’d need a better idea of where things stand with your environment. Can you give more context?

Thank you for the answer.
So I am sure that I lost all my file data during my attemps to install the new NC version, the db entries don’t have much value to me. I think the NC integration in Plesk has it’s own problems.
I think about if and how I can restore my server, since I have backup files.

I was able to restore all my NC data from backup and got the situation of yesterday.
So I could start to run the update again and will face the same problems as today morning.
But I do not understand the concepts there. I do not know if they are plesk-specific or NC-specific. I only know for sure that the update fails, if I start it again.

Maybe first read Backup and Restore. The files are stored in the file system at e.g. /path/to/nextcloud/data/files/username and the database manages the files. You can be glad that Nextcloud saves the files as normal files. At least you can always save the files. Other cloud solutions like Seafile don’t make it so easy for you. Ok, but the synchronisation is probably more reliable there.

Post details of your problem.

Use if possible for updates not the web updater but updater.phar
sudo -u www-data php /var/www/nextcloud/updater/updater.phar

documentation

Thank you for your help!
The problem is that Pleask does different things which perhaps do not follow the NC default rules.
I have once installed NC into a sub domain in Plesk. However Plesk and the instance is realized in the above , not the sub domain. Must strange is that the NC installation is server-wide, not domain-wide.
So I guess I need to ask the Plesk people, what the are doing and not the NC people.
With some luck I will find s.b. who uses the same setup as me.

The use of supposedly simple installation options such as Plesk does not really make it any easier. Especially not if something doesn’t work.

1 Like

Dear devnull
thank you (and all who are helping here) very much! :folded_hands:
Plesk: NC is only a small part of my complex server world. Without Plesk (or a similar tool) I would have much more work to maintain the server. I look always for alternatives (in the best case open source).
For those who might have the same issue:
https://support.plesk.com/hc/en-us/articles/12376962006935-Nextcloud-update-fails-on-a-domain-in-Plesk-Step-5-is-currently-in-process-Please-call-this-command-later
(I have not yet tried!)
Best, Alex

1 Like