Upgrade failed because of app_api

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.

I assume you’ve updated to an unstable version. This has been a kown issue for nc 30.0.3rc1 which has been resolved with rc2 and final.

1 Like

At least not that I know of. In my YAML, “nextcloud:latest” is selected everywhere.
As I mentioned, I can’t even say exactly when this happened because I haven’t been home for the last two weeks.

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