nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
356 stars 116 forks source link

Nextcloud Office disabled and removed automatically at each restart #3671

Closed tealaforgia closed 6 months ago

tealaforgia commented 6 months ago

Duplicate of this on Nextcloud help

I have a problem with Nextcloud Office. I installed Nextcloud AIO via Docker (v8.2.1) and Nextcloud is updated to version 29.0.0. I installed Nextcloud Office from the app store, but every time I restart the container from AIO or the host system, Nextcloud Office uninstalls. From the logs I see richdocuments disabled; richdocuments 8.4.1 removed.

These are the complete logs:

Connection to nextcloud-aio-database (172.22.0.3) 5432 port [tcp/postgresql] succeeded!
              now              
-------------------------------
 2024-05-08 00:47:58.417427+02
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n '' ']'
+ set +x
Enabling Imagick...
WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.19/main: No such file or directory
WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.19/community: No such file or directory
Applying one-click-instance settings...
System config value one-click-instance set to boolean true
System config value one-click-instance.user-limit set to integer 100
System config value one-click-instance.link set to string https://nextcloud.com/all-in-one/
support already enabled
Adjusting log files...
System config value upgrade.cli-upgrade-link set to string https://github.com/nextcloud/all-in-one/discussions/2726
System config value logfile set to string /var/www/html/data/nextcloud.log
Config value were not updated
System config value updatedirectory set to string /nc-updater
Applying network settings...
System config value allow_local_remote_servers set to boolean true
System config value davstorage.request_timeout set to integer 86400
System config value trusted_domains => 1 set to string ***mydomain***
System config value overwrite.cli.url set to string ***mydomain***
System config value htaccess.RewriteBase set to string /
.htaccess has been updated
System config value dbpersistent set to boolean false
System config value auth.bruteforce.protection.enabled set to boolean true
System config value ratelimit.protection.enabled set to boolean true
System config value files_external_allow_create_new_local set to boolean false
notify_push is up-to-date or no updates could be found
System config value trusted_proxies => 0 set to string 127.0.0.1
System config value trusted_proxies => 1 set to string ::1
System config value trusted_proxies => 10 set to string 172.22.0.1/32
Config value were not updated
richdocuments disabled
richdocuments 8.4.1 removed
+ '[' -z '' ']'
+ TALK_HOST=***mydomain***
+ HPB_PATH=/standalone-signaling/
+ '[' -z '' ']'
+ TURN_DOMAIN=***mydomain***
+ set +x
spreed is up-to-date or no updates could be found
Config value recording_servers of app spreed deleted
System config value enabledPreviewProviders => 0 set to string OC\Preview\Imaginary
System config value preview_imaginary_url set to string http://nextcloud-aio-imaginary:9000
System config value preview_imaginary_key set to string a50a843d23784ab647f847cccc52016d610d91531e0ac200
+ '[' true = true ']'
+ '[' 8081 = 443 ']'
+ '[' 0.0.0.0 = 127.0.0.1 ']'
+ '[' 0.0.0.0 = ::1 ']'
+ set +x
[08-May-2024 00:48:41] NOTICE: fpm is running, pid 362
[08-May-2024 00:48:41] NOTICE: ready to handle connections

This is the output of ./occ config:list richdocuments:

77e3b8eff997:/var/www/html$ php occ config:list richdocuments
{
    "apps": {
        "richdocuments": {
            "use_groups": "",
            "disable_certificate_verification": "",
            "wopi_allowlist": "93.44.152.145,127.0.0.1\/8,192.168.0.0\/16,172.16.0.0\/12,10.0.0.0\/8,fd00::\/8,::1",
            "wopi_url": "https:\/\/***mycollaboraserver***",
            "wopi_callback_url": "",
            "enabled": "yes",
            "external_apps": "",
            "public_wopi_url": "https:\/\/***mycollaboraserver***",
            "installed_version": "8.4.1",
            "types": "prevent_group_restriction"
        }
    }
}
tealaforgia commented 6 months ago

As suggested, the solution is to keep disabled apps adding -e NEXTCLOUD_KEEP_DISABLED_APPS=true to the docker run command of the mastercontainer if the Collabora server is not managed by the Nextcloud AIO interface.