Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Migration from seafile to docker seafile, can't run seaf fsck #13

Open
kopax opened this issue Oct 11, 2015 · 3 comments
Open

Migration from seafile to docker seafile, can't run seaf fsck #13

kopax opened this issue Oct 11, 2015 · 3 comments

Comments

@kopax
Copy link

kopax commented Oct 11, 2015

Hi.
I was using seafile in https behind a nginx proxy with fastcgi.
For the moment I have installed your image and run the installation.
I link through docker compose my previous data directory.
I also added a mariadb container and restore my previous database.

I have modified my nginx proxy to redirect to the new docker seafile host.

There are some files I can't watch in web ui, the client is connected.

I am running the check to see if db is corrupted as discrebed in seafile doc

root@seafile:/opt/seafile/seafile-server-latest# ./seaf-fsck.sh 

Starting seaf-fsck, please wait ...

[10/11/15 13:59:07] seaf-fsck.c(155): Current user (0) is not the user for running seafile server (1000). Unable to run fsck.
seaf-fsck run done

Done.
@camory
Copy link

camory commented Jun 16, 2016

I get the same issue. I have lost some libraries. In the admin the libraries are still there but with the name None. I wanted to check the data integrity but I got the same error message when running seaf-fsck.sh with the root user

@DorianVasco
Copy link

DorianVasco commented Oct 18, 2016

Old thread, but I found a work around: you have to chown the seafile-data/ directory to root. Thaen seaf-fsck will be executable as root, too.

@raytrax
Copy link

raytrax commented Dec 9, 2016

yep old thread, but u must run fsck with the user who owns the installation. You can check it with a "ls -l" and switch to this user "su username" and run fsck ;-)

[Close the thread]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants