The Basics
- Nextcloud Server version (e.g., 29.x.x):
30.0.3
- Operating system and version (e.g., Ubuntu 24.04):
Debian 12
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
Maybe some days ago
- Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
Portainer Stack
- Are you using Cloudflare, mod_security, or similar? (Yes / No)
Yes, Cloudflare
Summary of the issue you are facing:
I first noticed that the desktop client on my PC is not connected. Next, I wanted to login to the web client. Here, however, I was greeted by the message that the system is in maintenance mode. When I switched off the maintenance mode via occ, I received the message “Update required” in the web client.
Now I ran occ upgrade -v and got this error message:
Exception: Database error when running migration 5000Date20241120135411 for app app_api
An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_ex_apps_daemons' doesn't exist
Then I deactivated the app via occ app:disable app_api and ran the upgrade again. This went successfully and now I was able to end the maintenance mode. However, I cannot reactivate app_api. The following message appears:
An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_ex_apps_daemons' doesn't exist
Apparently everything is running, but I’m still worried that I might have problems somehow.
I am running the Docker Container Watchtower to automatically update the images. I believe that the last time I checked, I still had NC version 29. I was on vacation for 2 weeks and started my PC for the first time today.