Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot run fsck inside docker #8

Closed
capi1O opened this issue Mar 13, 2019 · 2 comments
Closed

cannot run fsck inside docker #8

capi1O opened this issue Mar 13, 2019 · 2 comments

Comments

@capi1O
Copy link

capi1O commented Mar 13, 2019

docker compose exec -it seafile bash
cd /opt/seafile/6.3.3/
./seaf-fsck.sh --export some-library-id /seafile/export/

seaf-fsck.c(156): Current user (0) is not the user for running seafile server (999). Unable to run fsck.

Trying to use seafile user (999) does not seem possible : su - seafile logs back to root.


seafile image 6.3.3

@foxel foxel closed this as completed in c8a3bf6 Mar 14, 2019
@foxel
Copy link
Owner

foxel commented Mar 14, 2019

Hi.

seafile user has no shell assigned, so you should set -s parameter for su

Also added script wrapper for FSCK the same way it's done for GC.

@capi1O
Copy link
Author

capi1O commented Jun 3, 2019

Thanks @foxel it worked great su -s /bin/sh seafile then seaf-fsck (just had to chown -R seafile:seafile my external drive before switching to seafile user).

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

No branches or pull requests

2 participants