Error setting up docker install

I am trying to use the docker compose method to install seafile in a VM.

These are the logs from docker compose logs -f

ataching to seafile, seafile-memcached, seafile-mysql
seafile-mysql      | 2023-06-14 06:26:00+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.14+maria~ubu2004 started.
seafile-mysql      | 2023-06-14 06:26:00+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
seafile-mysql      | 2023-06-14 06:26:00+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.14+maria~ubu2004 started.
seafile            | *** Running /etc/my_init.d/01_create_data_links.sh...
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/bootstrap.log': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/btmp': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/wtmp': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/journal': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/private': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/syslog': Operation not permitted
seafile-mysql      | 2023-06-14 06:26:00+00:00 [Note] [Entrypoint]: Initializing database files
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/faillog': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/lastlog': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/nginx/access.log': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/nginx/error.log': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/nginx': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/alternatives.log': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/apt/eipp.log.xz': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/apt/history.log': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/apt/term.log': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/apt': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log/dpkg.log': Operation not permitted
seafile            | mv: failed to preserve ownership for '/shared/logs/var-log': Operation not permitted
seafile            | *** Booting runit daemon...
seafile            | *** Runit started as PID 16
seafile            | *** Running /scripts/enterpoint.sh...
seafile            | 2023-06-14 11:56:01 Nginx ready
seafile            | 2023-06-14 11:56:01 This is an idle script (infinite loop) to keep container running.
seafile            | mv: failed to preserve ownership for '/shared/nginx/conf/seafile.nginx.conf': Operation not permitted
seafile-mysql      |
seafile-mysql      |
seafile-mysql      | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
seafile-mysql      | To do so, start the server, then issue the following command:
seafile-mysql      |
seafile-mysql      | '/usr/bin/mariadb-secure-installation'
seafile-mysql      |
seafile-mysql      | which will also give you the option of removing the test
seafile-mysql      | databases and anonymous user created by default.  This is
seafile-mysql      | strongly recommended for production servers.
seafile-mysql      |
seafile-mysql      | See the MariaDB Knowledgebase at https://mariadb.com/kb
seafile-mysql      |
seafile-mysql      | Please report any problems at https://mariadb.org/jira
seafile-mysql      |
seafile-mysql      | The latest information about MariaDB is available at https://mariadb.org/.
seafile-mysql      |
seafile-mysql      | Consider joining MariaDB's strong and vibrant community:
seafile-mysql      | https://mariadb.org/get-involved/
seafile-mysql      |
seafile-mysql      | 2023-06-14 06:26:03+00:00 [Note] [Entrypoint]: Database files initialized
seafile-mysql      | 2023-06-14 06:26:03+00:00 [Note] [Entrypoint]: Starting temporary server
seafile-mysql      | 2023-06-14 06:26:03+00:00 [Note] [Entrypoint]: Waiting for server startup
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] Starting MariaDB 10.6.14-MariaDB-1:10.6.14+maria~ubu2004 source revision c93754d45e5d9379e3e23d7ada1d5f21d2711f66 as process 89
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: Number of pools: 1
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: Using generic crc32 instructions
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: Using Linux native AIO
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: Completed initialization of buffer pool
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: 128 rollback segments are active.
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: Creating shared tablespace for temporary tables
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] InnoDB: 10.6.14 started; log sequence number 42120; transaction id 14
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] Plugin 'FEEDBACK' is disabled.
seafile-mysql      | 2023-06-14  6:26:03 0 [Warning] 'user' entry 'root@15905f624311' ignored in --skip-name-resolve mode.
seafile-mysql      | 2023-06-14  6:26:03 0 [Warning] 'proxies_priv' entry '@% root@15905f624311' ignored in --skip-name-resolve mode.
seafile-mysql      | 2023-06-14  6:26:03 0 [Note] mariadbd: ready for connections.
seafile-mysql      | Version: '10.6.14-MariaDB-1:10.6.14+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
seafile-mysql      | 2023-06-14 06:26:06+00:00 [Note] [Entrypoint]: Temporary server started.
seafile-mysql      | 2023-06-14 06:27:30+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)
seafile-mysql      |
seafile-mysql      | 2023-06-14 06:27:30+00:00 [Note] [Entrypoint]: Stopping temporary server
seafile-mysql      | 2023-06-14  6:27:30 0 [Note] mariadbd (initiated by: unknown): Normal shutdown
seafile-mysql      | 2023-06-14  6:27:30 0 [Note] InnoDB: FTS optimize thread exiting.
seafile-mysql      | 2023-06-14  6:27:30 0 [Note] InnoDB: Starting shutdown...
seafile-mysql      | 2023-06-14  6:27:30 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
seafile-mysql      | 2023-06-14  6:27:30 0 [Note] InnoDB: Buffer pool(s) dump completed at 230614  6:27:30
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Shutdown completed; log sequence number 42132; transaction id 15
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] mariadbd: Shutdown complete
seafile-mysql      |
seafile-mysql      | 2023-06-14 06:27:31+00:00 [Note] [Entrypoint]: Temporary server stopped
seafile-mysql      |
seafile-mysql      | 2023-06-14 06:27:31+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up.
seafile-mysql      |
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] Starting MariaDB 10.6.14-MariaDB-1:10.6.14+maria~ubu2004 source revision c93754d45e5d9379e3e23d7ada1d5f21d2711f66 as process 1
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Number of pools: 1
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Using generic crc32 instructions
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Using Linux native AIO
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Completed initialization of buffer pool
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: 128 rollback segments are active.
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Creating shared tablespace for temporary tables
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: 10.6.14 started; log sequence number 42132; transaction id 14
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] Plugin 'FEEDBACK' is disabled.
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] InnoDB: Buffer pool(s) load completed at 230614  6:27:31
seafile-mysql      | 2023-06-14  6:27:31 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] Server socket created on IP: '0.0.0.0'.
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] Server socket created on IP: '::'.
seafile-mysql      | 2023-06-14  6:27:31 0 [Note] mariadbd: ready for connections.
seafile-mysql      | Version: '10.6.14-MariaDB-1:10.6.14+maria~ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
seafile-mysql      | 2023-06-14  6:27:32 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'root' host: '172.27.0.4' (Got an error reading communication packets)
seafile            | Checking python on this machine ...
seafile            |
seafile-mysql      | 2023-06-14  6:27:32 5 [Warning] Aborted connection 5 to db: 'ccnet_db' user: 'seafile' host: '172.27.0.4' (Got an error reading communication packets)
seafile-mysql      | 2023-06-14  6:27:33 6 [Warning] Aborted connection 6 to db: 'seafile_db' user: 'seafile' host: '172.27.0.4' (Got an error reading communication packets)
seafile-mysql      | 2023-06-14  6:27:35 7 [Warning] Aborted connection 7 to db: 'seahub_db' user: 'seafile' host: '172.27.0.4' (Got an error reading communication packets)
seafile            |
seafile            | verifying password of user root ...  done
seafile            |
seafile            | ---------------------------------
seafile            | This is your configuration
seafile            | ---------------------------------
seafile            |
seafile            |     server name:            seafile
seafile            |     server ip/domain:       seafile.example.com
seafile            |
seafile            |     seafile data dir:       /opt/seafile/seafile-data
seafile            |     fileserver port:        8082
seafile            |
seafile            |     database:               create new
seafile            |     ccnet database:         ccnet_db
seafile            |     seafile database:       seafile_db
seafile            |     seahub database:        seahub_db
seafile            |     database user:          seafile
seafile            |
seafile            |
seafile            | Generating ccnet configuration ...
seafile            |
seafile            | Generating seafile configuration ...
seafile            |
seafile            | done
seafile            | Generating seahub configuration ...
seafile            |
seafile            | ----------------------------------------
seafile            | Now creating ccnet database tables ...
seafile            |
seafile            | ----------------------------------------
seafile            | ----------------------------------------
seafile            | Now creating seafile database tables ...
seafile            |
seafile            | ----------------------------------------
seafile            | ----------------------------------------
seafile            | Now creating seahub database tables ...
seafile            |
seafile            | ----------------------------------------
seafile            |
seafile            | creating seafile-server-latest symbolic link ...  done
seafile            |
seafile            |
seafile            |
seafile            |
seafile            | -----------------------------------------------------------------
seafile            | Your seafile server configuration has been finished successfully.
seafile            | -----------------------------------------------------------------
seafile            |
seafile            | run seafile server:     ./seafile.sh { start | stop | restart }
seafile            | run seahub  server:     ./seahub.sh  { start <port> | stop | restart <port> }
seafile            |
seafile            | -----------------------------------------------------------------
seafile            | If you are behind a firewall, remember to allow input/output of these tcp ports:
seafile            | -----------------------------------------------------------------
seafile            |
seafile            | port of seafile fileserver:   8082
seafile            | port of seahub:               8000
seafile            |
seafile            | When problems occur, Refer to
seafile            |
seafile            |         https://download.seafile.com/published/seafile-manual/home.md
seafile            |
seafile            | for information.
seafile            |
seafile            |
seafile-mysql      | 2023-06-14  6:27:35 4 [Warning] Aborted connection 4 to db: 'unconnected' user: 'root' host: '172.27.0.4' (Got an error reading communication packets)
seafile            |
seafile            | Error: the user running the script ("root") is not the owner of "/shared/seafile/seafile-data" folder, you should use the user "UNKNOWN" to run the script.
seafile            | [2023-06-14 11:57:32] Now running setup-seafile-mysql.py in auto mode.
seafile            | [2023-06-14 11:57:36] Updating version stamp
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile            | Traceback (most recent call last):
seafile            |   File "/scripts/start.py", line 95, in <module>
seafile            |     main()
seafile            |   File "/scripts/start.py", line 80, in main
seafile            |     call('{} start'.format(get_script('seafile.sh')))
seafile            |   File "/scripts/utils.py", line 70, in call
seafile            |     return subprocess.check_call(*a, **kw)
seafile            |   File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
seafile            |     raise CalledProcessError(retcode, cmd)
seafile            | subprocess.CalledProcessError: Command '/opt/seafile/seafile-server-10.0.1/seafile.sh start' returned non-zero exit status 255.

And this is my docker-compose.yml file,

version: '2.0'
services:
  db:
    image: mariadb:10.6
    container_name: seafile-mysql
    environment:
      - MYSQL_ROOT_PASSWORD=MY_PASSWORD  # Requested, set the root's password of MySQL service.
      - MYSQL_LOG_CONSOLE=true
    volumes:
#     - ./appdata/seafile/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
      - dbdata:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
    networks:
      - seafile-net

  memcached:
    image: memcached:1.6.18
    container_name: seafile-memcached
    entrypoint: memcached -m 256
    networks:
      - seafile-net

  seafile:
    image: seafileltd/seafile-mc:latest
    container_name: seafile
    ports:
      - "80:80"
#     - "443:443"  # If https is enabled, cancel the comment.
    volumes:
      - /mnt/data:/shared   # Requested, specifies the path to Seafile data persistent store.
    environment:
      - PGID=100
      - PUID=1000
      - DB_HOST=db
      - DB_ROOT_PASSWD=MY_PASSWORD  # Requested, the value shuold be root's password of MySQL service.
      - TIME_ZONE=MY_TIMEZONE  # Optional, default is UTC. Should be uncomment and set to your local time zone.
#     - SEAFILE_ADMIN_EMAIL=me@example.com # Specifies Seafile admin user, default is 'me@example.com'.
#     - SEAFILE_ADMIN_PASSWORD=asecret     # Specifies Seafile admin password, default is 'asecret'.
#     - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
#     - SEAFILE_SERVER_HOSTNAME=docs.seafile.com # Specifies your host name if https is enabled.
    depends_on:
      - db
      - memcached
    networks:
      - seafile-net

networks:
  seafile-net:

volumes:
  dbdata:

the storage for db is local in the VM only using docker volume and storage for seafile container i.e /mnt/data/ is a nfs share with all_squash, anongid=100, anonuid=1000, rw options set.

I use a couple of other services like this only (with a nfs share) and they seem to work fine.

Still after 3 months it doesn’t work. And I got 0 replies.

Looks like an ownership issue to me.

Stop the deployment (if it is running at all), remove everything in /mnt/data/, remove the PGID and PUID env variables and restart. With this you will lose everything and start with a fresh install of seafile. If there is already data in /mnt/data that you need to keep, you need to set the chown manually.

I have tried removing everything in /mnt/data, also tried removing PGID and PUID. I have tried giving access to everyone from my NAS to the NFS share I’m using inside the Seafile VM (so basically the share has permission for anyone to access along with all_squash, anonuid=1000, anongid=1000, rw options set). I have also tried removing a permission and checking again one by one.

I have even re-installed OS (changed to Debian from Ubuntu as well).

No matter what I do its the same issue.

can you share the exportfs and fstab options?

Sure, I use OpenMediaVault for my NAS solution running inside a VM on my Proxmox server.

Here are the screenshots from OpenMediaVault showing the options for the seafile share and NFS option as well,

The user promox has uid and gid of 1000 in the below screenshots,

Here is the permissions for the seafile share,

Here is the ACL for the seafile share,

Here is the NFS options when exporting the seafile share,

And inside the Seafile VM I put this line in the fstab to mount the share,

10.10.10.231:/export/seafile  /mnt/data  nfs     rw,soft,intr,noatime,timeo=100,rsize=32768,wsize=32768 0 2

I use the same options for creating the share, ACL and NFS export options for pretty much all other shares I have and also use the same fstab line above to mount those shares in their respective VM’s.

BTW I already mentioned it before, but I have tried setting others in the ACL to Read/Write/Execute along with other stuff, didn’t help.

Sorry for the multiple posts, it won’t let me add multiple images in one post, tried links won’t let me add those either.

When I used proxmox to share NFS it always worked with these options: subtree_check,insecure,all_squash,anonuid=0,anongid=0,no_acl

My guess is that the no_acl is doing its magic.
The client fstab looks alright to me.

No luck, pretty much the same error still.

BTW, According to this link, https://manpages.debian.org/bookworm/nfs-kernel-server/exports.5.en.html

there is no no_acl export option, or at least there is not one present on this manpage.

But, according to this link https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/s1-nfs-client-config-options

there is a mount option called noacl.

No luck with this as well.

Seems like I have the same problem:

❯ docker-compose logs
seafile  | *** Running /etc/my_init.d/01_create_data_links.sh...
seafile  | *** Booting runit daemon...
seafile  | *** Runit started as PID 16
seafile  | *** Running /scripts/enterpoint.sh...
seafile  | 2023-10-23 14:22:21 Nginx ready
seafile  | 2023-10-23 14:22:21 This is an idle script (infinite loop) to keep container running.
seafile  | Certificate will not expire
seafile  | Checking python on this machine ...
seafile  |
seafile  |
seafile  | verifying password of user root ...  done
seafile  |
seafile  | verifying password of user seafile ...
seafile  | Failed to connect to mysql server using user "seafile" and password "***": Access denied for user 'seafile'@'172.18.0.4' (using password: YES)
seafile  |
seafile  | waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' ([Errno 111] Connection refused)")
seafile  | [2023-10-23 14:22:21] Preparing for letsencrypt ...
seafile  | [2023-10-23 14:22:21] Found existing cert file /shared/ssl/bryksin.ddns.net.crt
seafile  | [2023-10-23 14:22:21] Skip letsencrypt verification since we have a valid certificate
seafile  | [2023-10-23 14:22:23] Now running setup-seafile-mysql.py in auto mode.
seafile  | Traceback (most recent call last):
seafile  |   File "/scripts/start.py", line 95, in <module>
seafile  |     main()
seafile  |   File "/scripts/start.py", line 59, in main
seafile  |     init_seafile_server()
seafile  |   File "/scripts/bootstrap.py", line 167, in init_seafile_server
seafile  |     call('{} auto -n seafile'.format(setup_script), env=env)
seafile  |   File "/scripts/utils.py", line 70, in call
seafile  |     return subprocess.check_call(*a, **kw)
seafile  |   File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
seafile  |     raise CalledProcessError(retcode, cmd)
seafile  | subprocess.CalledProcessError: Command '/opt/seafile/seafile-server-10.0.1/setup-seafile-mysql.sh auto -n seafile' returned non-zero exit status 255.
seafile-mysql  | 2023-10-23 14:22:21+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.5+maria~ubu2204 started.
seafile-mysql  | 2023-10-23 14:22:21+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
seafile-mysql  | 2023-10-23 14:22:21+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.5+maria~ubu2204 started.
seafile-mysql  | 2023-10-23 14:22:22+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
seafile-mysql  | 2023-10-23 14:22:22 0 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] Starting MariaDB 10.11.5-MariaDB-1:10.11.5+maria~ubu2204 source revision 7875294b6b74b53dd3aaa723e6cc103d2bb47b2c as process 1
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: Number of transaction pools: 1
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: Using liburing
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: Completed initialization of buffer pool
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: End of log at LSN=871389
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: 128 rollback segments are active.
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: log sequence number 871389; transaction id 743
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] Plugin 'FEEDBACK' is disabled.
seafile-mysql  | 2023-10-23 14:22:22 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] Server socket created on IP: '0.0.0.0'.
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] Server socket created on IP: '::'.
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] mariadbd: ready for connections.
seafile-mysql  | Version: '10.11.5-MariaDB-1:10.11.5+maria~ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
seafile-mysql  | 2023-10-23 14:22:22 0 [Note] InnoDB: Buffer pool(s) load completed at 231023 14:22:22
seafile-mysql  | 2023-10-23 14:22:23 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'root' host: '172.18.0.4' (Got an error reading communication packets)
seafile-mysql  | 2023-10-23 14:22:24 5 [Warning] Access denied for user 'seafile'@'172.18.0.4' (using password: YES)
seafile-mysql  | 2023-10-23 14:22:24 4 [Warning] Aborted connection 4 to db: 'unconnected' user: 'root' host: '172.18.0.4' (Got an error reading communication packets)

To solve this I deleted everything in /seafile/shared/
Deleted all containers, prune everything, still no luck

Got even into the letsencrypt ban for several days for so many attempts of the same domain…

Any idea how to fix/rest everything ?

I ended up giving the VM some extra storage space 25G and using local storage of the VM it self for now.

Hi Apoorv,

Just to confirm, are you trying to run a docker container within an already virtualised environment (OMV) or are you trying to run the Seafile Installation in a docker container under Proxmox?

I am trying to run Seafile using docker inside a VM on my Proxmox server. OMV is also running in a VM on Proxmox as well.

Basically I run all services inside their own VM.

Have you tried running just a standard Ubuntu/Debian installation then using the repository script to handle it that way?

That’s the way I’ve set mine up and it works smoothly (I’m using TrueNAS Scale as I’m planning on setting up multiple physical servers)

I have not. Are you talking about these, https://github.com/haiwen/seafile-server-installer?

That’s the ones.

I personally run Ubuntu 22.04LTS with Seafile 11.0.1 (using the 11.0 script)

On the fresh installation:

  • sudo passwd root
    (Set password)
  • sudo su root
  • cd /root
  • wget (raw GitHub link)
  • bash seafile……

Then once it’s completed you should be able to just open a browser on any device and connect to it :smiley:

How/Where do I specify the data directory (i.e my NFS share) using this method?

Hi Apoorv,

My apologies for the delay (been MIA for a while!).

I believe this would be specified within the data folder, but you could possibly use a shortcut to re-direct this (I haven’t looked through any config at this moment but I’ll go through and let you know!)