hoellen / dockerfiles

Dockerfiles
https://hub.docker.com/u/hoellen
Creative Commons Zero v1.0 Universal
37 stars 17 forks source link

Nextcloud Update - Lost App #27

Closed Moimemeici closed 5 years ago

Moimemeici commented 5 years ago

Hello and sorry for my english. But, i have an problem. When i update the docker, i need reinstall all app. It's normal ? Best regards

hoellen commented 5 years ago

No this is not normal. Can you please give some more information (e.g. docker-compose files, Nextcloud config, logs, etc.) about your installation. I believe you are missing the second app directory in your config.

Moimemeici commented 5 years ago

i have 2 instances one with :

    volumes:
      - /cloud/data:/data
      - /cloud/config/config_xxx:/config
      - /cloud/apps:/apps2
      - /cloud/themes_xxx:/nextcloud/themes

and other


    volumes:
      - /cloud/data_test:/data
      - /cloud/config/config_test:/config
      - /cloud/apps_test:/apps2
      - /cloud/themes_test:/nextcloud/themes

First not good but second is good

Moimemeici commented 5 years ago

i have 2 instances one with :

  nextcloud-XXX:
    image: hoellen/nextcloud:latest
    container_name: nextcloud-XXX
    restart: always
    environment:
      - UID=991
      - GID=991
      - UPLOAD_MAX_SIZE=10G
      - APC_SHM_SIZE=128M
      - OPCACHE_MEM_SIZE=128
      - REDIS_MAX_MEMORY=64mb
      - CRON_PERIOD=15m
      - TZ=Europe/Paris
      - DB_TYPE=mysql
      - DB_NAME=XXXXXXXXXXXX
      - DB_USER=XXXXXXXXXXXX
      - DB_PASSWORD=XXXXXXXXXXXXXXXXXX
      - DB_HOST=mariadb-XXX
    volumes:
      - /cloud/data:/data
      - /cloud/config/config_XXX:/config
      - /cloud/apps:/apps2
      - /cloud/themes_XXX:/nextcloud/themes
    depends_on:
      - mariadb-XXX
      - solr
      - redis

and other

  nextcloud-test:
    image: hoellen/nextcloud:latest
    container_name: nextcloud-test
    restart: always
    environment:
      - UID=991
      - GID=991
      - UPLOAD_MAX_SIZE=10G
      - APC_SHM_SIZE=128M
      - OPCACHE_MEM_SIZE=128
      - REDIS_MAX_MEMORY=64mb
      - CRON_PERIOD=15m
      - TZ=Europe/Paris
      - DB_TYPE=mysql
      - DB_NAME=XXXXXXXXXXXX
      - DB_USER=XXXXXXXXXXXX
      - DB_PASSWORD=XXXXXXXXXXXX
      - DB_HOST=mariadb-test
    volumes:
      - /cloud/data_test:/data
      - /cloud/config/config_test:/config
      - /cloud/apps_test:/apps2
      - /cloud/themes_test:/nextcloud/themes
    depends_on:
      - mariadb-test
      - solr
      - redis

First not good but second is good

Moimemeici commented 5 years ago

on container with this command: docker exec -it nextcloud-xxx /bin/sh Apps directly installed on /nextcloud/apps not on /apps2

Moimemeici commented 5 years ago

on container with this command: docker exec -it nextcloud-xxx /bin/sh Apps directly installed on /nextcloud/apps not on /apps2

hoellen commented 5 years ago

Do you have the following in your Nextcloud config? (config/config.php):

[...]
'apps_paths' =>
array (
  0 =>
  array (
    'path' => '/apps',
    'url' => '/apps',
    'writable' => false,
  ),
  1 =>
array (
    'path' => '/apps2',
    'url' => '/apps2',
    'writable' => true,
  ),
),
[...]

That part is responsible to tell Nextcloud to use the /apps2 directory.