Library share permission not found after recovey on a second server

After the crash of a seafile server I did the recovery on a second server but during the web connection in http when I try to open my library I get an error message Library share permission not found.

The .yml configuration file has been previously configured on server 2 and the seafile-backup folder as well on /opt. The installation of seafile was done via docker.

Voici la fichier de configuration
version: ‘2.0’
image: mariadb:10.11
container_name: seafile-mysql
- MYSQL_ROOT_PASSWORD=xxxxxxxx # Requested, set the root’s password of MySQL service.
- /opt/seafile-mysql/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
- seafile-net

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

image: seafileltd/seafile-mc:latest
container_name: seafile
- “80:80”

- “443:443” # If https is enabled, cancel the comment.

  - /opt/seafile-data:/shared   # Requested, specifies the path to Seafile data persistent store.
  - DB_HOST=db
  - DB_ROOT_PASSWD=xxxxxxxxxx # Requested, the value should be root's password of MySQL service.
  - TIME_ZONE=Etc/UTC  # Optional, default is UTC. Should be uncomment and set to your local time zone.
  - SEAFILE_ADMIN_EMAIL=contact@xxxxxxx # Specifies Seafile admin user, default is ''.
  - SEAFILE_ADMIN_PASSWORD=xxxxxxxxxx     # Specifies Seafile admin password, default is 'asecret'.
  - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
  - SEAFILE_SERVER_HOSTNAME=xxxxxxxxxxxx # Specifies your host name if https is enabled.
  - db
  - memcached
  - seafile-net

Here are the commands entered for the recovery
Docker compose up -d
docker cp /opt/seafile-backup/databases/ccnet_db-2023-11-08_15-38.sql seafile-mysql:/tmp/ccnet_db.sql
docker cp /opt/seafile-backup/databases/seafile_db-2023-11-08_15-38.sql seafile-mysql:/tmp/seafile_db.sql
docker cp /opt/seafile-backup/databases/seahub_db-2023-11-08_15-38.sql seafile-mysql:/tmp/seahub_db.sq
docker exec -it seafile-mysql /bin/sh -c “mysql -uroot -ponCP1eqGu45xd ccnet_db < /tmp/ccnet_db.sql”
docker exec -it seafile-mysql /bin/sh -c “mysql -uroot -ponCP1eqGu45xd seafile_db < /tmp/seafile_db.sql”
docker exec -it seafile-mysql /bin/sh -c “mysql -uroot -ponCP1eqGu45xd seahub_db < /tmp/seahub_db.sql”

cp -R /opt/seafile-backup/data/* /opt/seafile-data/seafile/
However when I use the seafile application everything seems ok

Thx for your help

FYI I got this, too, on first re-establishing the copied data files and database, and then connecting to it via a web page.

However, restarting the server & database, and then re-loading/relogging in to the web interface solved the problem.

My guess is, it has something to do with the way you have to install the server and get it running with no files and only the initial user. Then you stop it and sort of slip the correct data files and database in place.

That must leave the server in a place that is not quite right (some users or permissions or whatever held in memory or cached), but simply re-starting the server gets things all in order again.

I have the same issue. We used rsync to copy all files from HD to SSD drive. Plugged in the new drive. Server works but can’t access the files. Same Library share permission not found message. I restarted, logged out from the web page. Nothing.