Docker: Apps calendar and contacts are disabled on every update

Created on 2 Mar 2019  路  11Comments  路  Source: nextcloud/docker

I run my nextcloud container update as follows:

  1. Bump version in docker-compose.yml
  2. Run docker-compose up -d
  3. Observe logs docker logs nextcloud -f

On every container update, I see the following log message:

The following apps have been disabled:
 calendar
 contacts

Afterwards, I always have to execute the following commands:

docker exec -u www-data -it nextcloud php occ app:install contacts
docker exec -u www-data -it nextcloud php occ app:install calendar

Questions:

  • Why are these apps always disabled?
  • Is that the expected behavior?

All 11 comments

Hello
I have the same experiences with every update
Even with an update within a main branch,
like now from 15.0.2.0 to 15.0.5.3.
Most apps are then disabled.

cloud_test-nextcloud-test | Initializing finished
cloud_test-nextcloud-test | Nextcloud or one of the apps require upgrade - only a limited number of commands are available
cloud_test-nextcloud-test | You may use your browser or the occ upgrade command to do the upgrade
cloud_test-nextcloud-test | Set log level to debug
cloud_test-nextcloud-test | Turned on maintenance mode
cloud_test-nextcloud-test | Updating database schema
cloud_test-nextcloud-test | Updated database
cloud_test-nextcloud-test | Disabled incompatible app: apporder
cloud_test-nextcloud-test | Disabled incompatible app: audioplayer
cloud_test-nextcloud-test | Disabled incompatible app: calendar
cloud_test-nextcloud-test | Disabled incompatible app: contacts
cloud_test-nextcloud-test | Disabled incompatible app: deck
cloud_test-nextcloud-test | Disabled incompatible app: external
cloud_test-nextcloud-test | Disabled incompatible app: files_accesscontrol
cloud_test-nextcloud-test | Disabled incompatible app: files_rightclick
cloud_test-nextcloud-test | Disabled incompatible app: groupfolders
cloud_test-nextcloud-test | Disabled incompatible app: mail
cloud_test-nextcloud-test | Disabled incompatible app: music
cloud_test-nextcloud-test | Disabled incompatible app: news
cloud_test-nextcloud-test | Disabled incompatible app: notes
cloud_test-nextcloud-test | Disabled incompatible app: passwords
cloud_test-nextcloud-test | Disabled incompatible app: qownnotesapi
cloud_test-nextcloud-test | Disabled incompatible app: radio
cloud_test-nextcloud-test | Disabled incompatible app: richdocuments
cloud_test-nextcloud-test | Disabled incompatible app: scanner
cloud_test-nextcloud-test | Disabled incompatible app: sharerenamer
cloud_test-nextcloud-test | Disabled incompatible app: tasks
cloud_test-nextcloud-test | Disabled incompatible app: unsplash
cloud_test-nextcloud-test | Disabled incompatible app: weather
cloud_test-nextcloud-test | Checking for update of app accessibility in appstore
cloud_test-nextcloud-test | Checked for update of app "accessibility" in appstore 
cloud_test-nextcloud-test | Checking for update of app activity in appstore
cloud_test-nextcloud-test | Checked for update of app "activity" in appstore 
cloud_test-nextcloud-test | Checking for update of app cloud_federation_api in appstore
cloud_test-nextcloud-test | Checked for update of app "cloud_federation_api" in appstore 
cloud_test-nextcloud-test | Checking for update of app comments in appstore
cloud_test-nextcloud-test | Checked for update of app "comments" in appstore 
cloud_test-nextcloud-test | Checking for update of app dav in appstore
cloud_test-nextcloud-test | Checked for update of app "dav" in appstore 
cloud_test-nextcloud-test | Checking for update of app federatedfilesharing in appstore
cloud_test-nextcloud-test | Checked for update of app "federatedfilesharing" in appstore 
cloud_test-nextcloud-test | Checking for update of app federation in appstore
cloud_test-nextcloud-test | Checked for update of app "federation" in appstore 
cloud_test-nextcloud-test | Checking for update of app files in appstore
cloud_test-nextcloud-test | Checked for update of app "files" in appstore 
cloud_test-nextcloud-test | Checking for update of app files_external in appstore
cloud_test-nextcloud-test | Checked for update of app "files_external" in appstore 
cloud_test-nextcloud-test | Checking for update of app files_pdfviewer in appstore
cloud_test-nextcloud-test | Checked for update of app "files_pdfviewer" in appstore 
cloud_test-nextcloud-test | Checking for update of app files_sharing in appstore
cloud_test-nextcloud-test | Checked for update of app "files_sharing" in appstore 
cloud_test-nextcloud-test | Checking for update of app files_texteditor in appstore
cloud_test-nextcloud-test | Checked for update of app "files_texteditor" in appstore 
cloud_test-nextcloud-test | Checking for update of app files_trashbin in appstore
cloud_test-nextcloud-test | Checked for update of app "files_trashbin" in appstore 
cloud_test-nextcloud-test | Checking for update of app files_versions in appstore
cloud_test-nextcloud-test | Checked for update of app "files_versions" in appstore 
cloud_test-nextcloud-test | Checking for update of app files_videoplayer in appstore
cloud_test-nextcloud-test | Checked for update of app "files_videoplayer" in appstore 
cloud_test-nextcloud-test | Checking for update of app firstrunwizard in appstore
cloud_test-nextcloud-test | Checked for update of app "firstrunwizard" in appstore 
cloud_test-nextcloud-test | Checking for update of app gallery in appstore
cloud_test-nextcloud-test | Checked for update of app "gallery" in appstore 
cloud_test-nextcloud-test | Checking for update of app logreader in appstore
cloud_test-nextcloud-test | Checked for update of app "logreader" in appstore 
cloud_test-nextcloud-test | Checking for update of app lookup_server_connector in appstore
cloud_test-nextcloud-test | Checked for update of app "lookup_server_connector" in appstore 
cloud_test-nextcloud-test | Checking for update of app nextcloud_announcements in appstore
cloud_test-nextcloud-test | Checked for update of app "nextcloud_announcements" in appstore 
cloud_test-nextcloud-test | Checking for update of app notifications in appstore
cloud_test-nextcloud-test | Checked for update of app "notifications" in appstore 
cloud_test-nextcloud-test | Checking for update of app oauth2 in appstore
cloud_test-nextcloud-test | Checked for update of app "oauth2" in appstore 
cloud_test-nextcloud-test | Checking for update of app password_policy in appstore
cloud_test-nextcloud-test | Checked for update of app "password_policy" in appstore 
cloud_test-nextcloud-test | Checking for update of app provisioning_api in appstore
cloud_test-nextcloud-test | Checked for update of app "provisioning_api" in appstore 
cloud_test-nextcloud-test | Checking for update of app serverinfo in appstore
cloud_test-nextcloud-test | Checked for update of app "serverinfo" in appstore 
cloud_test-nextcloud-test | Checking for update of app sharebymail in appstore
cloud_test-nextcloud-test | Checked for update of app "sharebymail" in appstore 
cloud_test-nextcloud-test | Checking for update of app support in appstore
cloud_test-nextcloud-test | Checked for update of app "support" in appstore 
cloud_test-nextcloud-test | Checking for update of app survey_client in appstore
cloud_test-nextcloud-test | Checked for update of app "survey_client" in appstore 
cloud_test-nextcloud-test | Checking for update of app systemtags in appstore
cloud_test-nextcloud-test | Checked for update of app "systemtags" in appstore 
cloud_test-nextcloud-test | Checking for update of app theming in appstore
cloud_test-nextcloud-test | Checked for update of app "theming" in appstore 
cloud_test-nextcloud-test | Checking for update of app twofactor_backupcodes in appstore
cloud_test-nextcloud-test | Checked for update of app "twofactor_backupcodes" in appstore 
cloud_test-nextcloud-test | Checking for update of app updatenotification in appstore
cloud_test-nextcloud-test | Checked for update of app "updatenotification" in appstore 
cloud_test-nextcloud-test | Checking for update of app workflowengine in appstore
cloud_test-nextcloud-test | Checked for update of app "workflowengine" in appstore
  • What is the right way to update a Docker installation?

I'm also struggling with the lack of clear information regarding this issue. It defeats the purpose of having a docker image and not providing clear information about this. Just having clear information, even without some kind of fix, will be of great help!

you have probably somehow removed the default apps_paths config. If apps_paths is not configured it will by default install apps into the apps directory which get overwritten on each update. Instead the apps should be installed into the custom_apps directory which gets not modified by updates.

Your answer is wrong. I have the following line in my config:

  'datadirectory' => '/var/www/html/data',

This folder is mounted in my docker-compose.yml. This folder contains the default apps folder, where occ app:install installs all apps.

apps are not installed into the datadirectory, is there a apps_paths config option in your config? And if so, what is it set to?

My docker-compose.yml looks as follows:

    volumes:
      - /docker/data/nextcloud/data/:/var/www/html/data/
      - /docker/data/nextcloud/apps/:/var/www/html/apps/

So, you're right. All apps are installed into the apps folder.

My config does not contain a apps_paths. Is that really required, when i mount the default apps-folder, where occ installs the apps? Probably I need to read the documentation again to understand the difference.

yes it is required. Everything in /var/www/html/apps/ gets overwritten by the update script. This is why the custom_apps folder exists.

If I use custom_apps, which folder is occ app:install using then?

occ app:install uses whatever is configured in apps_paths.
If you use the config that comes with this image, occ app:install would install into the custom_apps directory because it's the only writable app directory.

occ app:install uses whatever is configured in apps_paths.
If you use the config that comes with this image, occ app:install would install into the custom_apps directory because it's the only writable app directory.

Does this also mean that custom_apps will not be disabled after an update?

yes apps that are installed into the custom_apps directory will still be installed after the update.
And the should generally stay activated. In some situation they might get deactivated, for example if you upgrade to the next mayor nextcloud version that is not yet supported by an app.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pierreozoux picture pierreozoux  路  3Comments

vancky picture vancky  路  3Comments

christianvw picture christianvw  路  3Comments

all-the-good-ones-are-gone picture all-the-good-ones-are-gone  路  3Comments

pr4xx picture pr4xx  路  4Comments