Reinstall application keeping user data

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
  • Operating system and version (e.g., Ubuntu 24.04):
    • Operating system: Linux 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
    • Debian 12.12
  • Web server and version (e.g, Apache 2.4.25):
    • apache2 2.4.65-1~deb12u1
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • N/A
  • PHP version (e.g, 8.3):
    • php 2:8.2+93
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After Upgrade to new Nextcloud Release.
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • web + occ.
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I have some issues with somme applications, on my 32.0.1 release, see below.
I came up suspecting that application was incorrectly installed.
So I did occ integrity:check-app --all
Some applications do not have app signature (E.g.: bookmarks).

I want to reinstall those applications without loosing the user data.

I wonder if the command ‘occ app:install --reinstall theApp’ exists and would do the job of re-downloading the application and reinstalling the scripts.

Save a cryptographic signature, is there a simple checksum for each application that is checked in this case ?

The original issue is that log includes :
{“reqId”:“494Qiqmuz0dK8KwoQTqC”,“level”:3,“time”:“2025-11-13T07:55:30+01:00”,“remoteAddr”:“192.168.1.1”,“user”:“xxx”,“app”:“no app in context”,“method”:“PROPFIND”,“url”:“/remote.php/dav/files/denis/”,“message”:“Uncaught exception”,“userAgent”:“Mozilla/5.0 (Linux) mirall/3.11.0git (Nextcloud, ubuntu-6.8.0-87-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“32.0.1.2”,“clientReqId”:“11a07f15-60ed-4552-940d-7a920291f7ac”,“exception”:{“Exception”:“OCA\DAV\Exception\ServerMaintenanceMode”,“Message”:“Le système est en mode maintenance.”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“checkMaintenanceMode”,“class”:“OCA\DAV\Connector\Sabre\MaintenancePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:456,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:211,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:424,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:22,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php”,“Line”:65,“message”:“Uncaught exception”,“exception”:,“CustomMessage”:“Uncaught exception”},“id”:“691632758b6f7”}

Steps to replicate it (hint: details matter!):

  1. Upgrade from previous latest release (I was up to date in stable stream).

  2. Try to go to maintenance mode on then off.

  3. Logs are still there.

Log entries

Nextcloud

See above.

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.

N/A

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

N/A

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!):

If really needed I will provide later.

Apps

Enabled:

  • activity: 5.0.0-dev.0
  • admin_audit: 1.22.0
  • announcementcenter: 7.2.2
  • bookmarks: 16.0.1
  • bruteforcesettings: 5.0.0-dev.0
  • calendar: 6.0.4
  • circles: 32.0.0
  • cloud_federation_api: 1.16.0
  • collectives: 3.3.0
  • comments: 1.22.0
  • contacts: 8.0.6
  • contactsinteraction: 1.13.1
  • cookbook: 0.11.5
  • dashboard: 7.12.0
  • dav: 1.34.2
  • deck: 1.16.1
  • drawio: 3.1.2
  • federatedfilesharing: 1.22.0
  • files: 2.4.0
  • files_downloadlimit: 5.0.0-dev.0
  • files_external: 1.24.0
  • files_pdfviewer: 5.0.0-dev.0
  • files_reminders: 1.5.0
  • files_sharing: 1.24.0
  • files_trashbin: 1.22.0
  • files_versions: 1.25.0
  • firstrunwizard: 5.0.0-dev.0
  • geoblocker: 0.5.18
  • groupfolders: 20.1.3
  • logreader: 5.0.0-dev.0
  • lookup_server_connector: 1.20.0
  • mail: 5.5.14
  • memories: 7.7.0
  • music: 2.4.1
  • nextcloud_announcements: 4.0.0-dev.0
  • notes: 4.12.3
  • notifications: 5.0.0-dev.0
  • oauth2: 1.20.0
  • password_policy: 4.0.0-dev.0
  • photos: 5.0.0-dev.1
  • previewgenerator: 5.10.0
  • privacy: 4.0.0-dev.0
  • profile: 1.1.0
  • provisioning_api: 1.22.0
  • recognize: 10.0.6
  • recommendations: 5.0.0-dev.0
  • related_resources: 3.0.0-dev.0
  • serverinfo: 4.0.0-dev.0
  • settings: 1.15.1
  • sharebymail: 1.22.0
  • spreed: 22.0.2
  • support: 4.0.0-dev.0
  • survey_client: 4.0.0-dev.0
  • suspicious_login: 10.0.0-dev.0
  • systemtags: 1.22.0
  • tasks: 0.17.1
  • text: 6.0.1
  • theming: 2.7.0
  • thesearchpage: 1.2.14
  • twofactor_backupcodes: 1.21.0
  • updatenotification: 1.22.0
  • user_status: 1.12.0
  • viewer: 5.0.0-dev.0
  • weather_status: 1.12.0
  • webhook_listeners: 1.3.0
  • workflowengine: 2.14.0
    Disabled:
  • app_api: 32.0.0 (installed 32.0.0)
  • encryption: 2.20.0
  • federation: 1.22.0 (installed 1.10.1)
  • twofactor_nextcloud_notification: 6.0.0-dev.0
  • twofactor_totp: 14.0.0
  • user_ldap: 1.23.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Hey @dge

it doesn’t look like it:

its probably better to disable → remove → enable step by step. but you could just do it the bash way occ app:disable <appname> && occ app:remove<appname> && occ app:enable <appname>

but this worked for me : Error updating 31.0.10 to 32.0.1 - #2 by jtr

see also

I meant ‘occ app:install --reinstall theapp’

Going through disable->remove->install->enable as an unwanted side effect : The suppression of user data.

The idea would be to trigger a rerun of upload, check of upload, extract and install scripts, without touching user data as it would be done in an upgrade to a new release.

This way we insure correct any corruption of the file that may happen.

see the docs for rescan:

occ integrity:check-core
occ integrity:check-app $appid

but you should double check if groupfolders is available in v32. app_api, collectives should be fine.

always test on staging! and be sure to backup your data!

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