Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can.
The Basics
- Nextcloud Server version (e.g., 29.x.x):
31.0.2
- Operating system and version (e.g., Ubuntu 24.04):
rocky linux 9
- Web server and version (e.g, Apache 2.4.25):
httpd
- PHP version (e.g, 8.3):
8.2
- Is this the first time you’ve seen this error? (Yes / No):
kind of yes
- When did this problem seem to first start?
trying to make my setup more disaster recovery stabel
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
bare metal
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
no
Summary of the issue you are facing:
I want to make my nextcloud setup more disaster recovery prove. For that i moved the data and database folder of my nextcloud onto an samba and nfs share with the correct permissions for nextcloud to read and write to it (no problems there). The problem i have is, when i now would need to reinstall my setup, i have the problem, that im not able to reubstakk aoos via the occ app:install bookmark
command as example, because nextcloud think that the app is still installed. And when i say `occ app:remove --keep-data bookmark’ to temporarily remove it (dont forget its not there because fresh install), than it says its not installed. I even tried to use the --force option but this also didnt worked.
Because i dont want to risk loosing deck entrys and bookmarks mostly (beside all the other data :D) i wanted to ask now for advices how to handel this before i really break something…
Normaly when i do an update i just diff the plugin folder and move the missing apps into the new app folder. But this wouldnt be an option with a disaster recovery state
Steps to replicate it (hint: details matter!):
- make your setup disaster recovery compatibel with database and nextcloud data storage compatible
- reinstall the system
- try to install the apps again you had before via occ command
Log entries
[root@nextcloud1 ~]# sudo -u apache php /var/www/html/nextcloud/occ app:install bookmarks --force
bookmarks already installed
[root@nextcloud1 ~]# sudo -u apache php /var/www/html/nextcloud/occ app:update bookmarks
bookmarks not installed
[root@nextcloud1 ~]# sudo -u apache php /var/www/html/nextcloud/occ app:install bookmarks
bookmarks already installed
[root@nextcloud1 ~]# sudo -u apache php /var/www/html/nextcloud/occ app:install --force bookmarks
bookmarks already installed
[root@nextcloud1 ~]# sudo -u apache php /var/www/html/nextcloud/occ app:install --force drawio
drawio already installed
[root@nextcloud1 ~]# sudo -u apache php /var/www/html/nextcloud/occ app:remove --keep-data drawio
drawio could not be removed
[root@nextcloud1 ~]# sudo -u apache php /var/www/html/nextcloud/occ app:install --force drawio
drawio already installed
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log
located in your data directory). Feel free to use a pastebin/gist service if necessary.
i didnt checked if i have logs, if needed i can redo it, but wanted a working setup for the moment :D
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
no
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____
:
not relevant
Configuration
Nextcloud
The output of occ config:list system
or similar is best, but, if not possible, the contents of your config.php
file from /path/to/nextcloud
is fine (make sure to remove any identifiable information!):
really needed?