Write Read Permissions Docker Synology installation

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):
    • 32.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian with Docker
  • Web server and version (e.g, Apache 2.4.25):
    • See YAML
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx proxy manager (on another jumpserver)

Summary of the issue you are facing:

I have installed Nextcloud with Docker-Compose on my Debian ā€œDockerrunnerā€ VM.

This is my Portainer-Stack:

version: '2'
services:
  mariadb:
    image: mariadb
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
    ports:
      - 9022:3306
    volumes:
      - /root/nextcloud/mariadb:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=PASSWORD
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=root
  nextcloud:
    image: nextcloud
    restart: always
    ports:
      - 8040:80
    links:
      - mariadb:mysql
    volumes:
      - nextcloud-html:/var/www/html 
      - nextcloud-apps:/var/www/html/custom_apps 
      - nextcloud-config:/var/www/html/config 
      - nextcloud-data:/var/www/html/data 
    environment:
      - MYSQL_PASSWORD=PASSWORD
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=root
      - MYSQL_HOST=mariadb
volumes:
  nextcloud-data:
    external: true
  nextcloud-html:
    external: true
  nextcloud-config:
    external: true
  nextcloud-apps:
    external: true

As you can see my volumes are external, as i have most of the time all docker volumes on my NAS. This are mounted via the ā€œvolumesā€ tab in Portainer.

This Docker VM is available via VPN ←→ to my Jumpserver (Debian Server hosted in a data center) and on this debian server there is an nginx proxy manager running doing my https reverse proxy and domain.

I started everything up and i installed the app ā€œexternal data storageā€ and mounted my SMB share to my files in nextcloud - this is working great and i can add and remove folders and files.

But i canĀ“t delete the ā€œstandardā€ folders and files created by the installation → on my Volume Data → on my Synology NAS (remote mounted via volumes in Portainer).

I can delete the files on the NAS directly and it will took some time and they disappear on nextcloud - or i can remove them then. But i think there are some write / read permission errors on this side.

Can you help me to fix this? I“m new to nextcloud. If you need more information i can search for them. :slight_smile:

Also my SMB Share External Storage is not visible in the Nextcloud iOS App - Do i have to do more stuff on this side? In the web UI i can see them.

Thanks for your help!