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

WSL2 pict-rs IO error: Permission denied #831

Closed
ceeim opened this issue Jun 23, 2020 · 11 comments
Closed

WSL2 pict-rs IO error: Permission denied #831

ceeim opened this issue Jun 23, 2020 · 11 comments

Comments

@ceeim
Copy link
Contributor

ceeim commented Jun 23, 2020

I'm using WSL2 with Docker Desktop and according to the documentation to install it, he gives the error:
image

I was running successfully with pictshare before and I'm not sure which part of the permissions are wrong, how do I fix it? Thank you for being open source.

@asonix
Copy link
Collaborator

asonix commented Jun 23, 2020

What user and group own the pictrs volume folder?

@ceeim
Copy link
Contributor Author

ceeim commented Jun 23, 2020

What user and group own the pictrs volume folder?

I used the Root user for the test environment, everything else is default.

@asonix
Copy link
Collaborator

asonix commented Jun 23, 2020

The pictrs volume folder needs to be owned by 991:991 to work correctly with the container

@dessalines
Copy link
Member

The ansible deploy does this automatically btw, but I think in docker unfortunately it does need a

mkdir -p volumes/pictrs
sudo chown -R 991:991 volumes/pictrs

I'll add that to the docker install instructions.

@ceeim
Copy link
Contributor Author

ceeim commented Jun 26, 2020

@dessalines @asonix
Sorry I didn't double check it, it works fine now, thanks!

@ceeim ceeim closed this as completed Jun 26, 2020
eiknat pushed a commit to eiknat/lemmy that referenced this issue Aug 23, 2020
@kklot
Copy link

kklot commented Jan 11, 2021

The ansible deploy does this automatically btw, but I think in docker unfortunately it does need a

mkdir -p volumes/pictrs
sudo chown -R 991:991 volumes/pictrs

I'll add that to the docker install instructions.

I installed with docker and did this but still have the same errors as the screenshot. I run locally, no changes make to the docker-compose.yml, no nginx running as well. What else could be done to fix this?

@dessalines
Copy link
Member

You followed these instructions? https://lemmy.ml/docs/administration_install_docker.html#docker-installation

You'll need to docker-compose restart.

What error are you getting?

@kklot
Copy link

kklot commented Jan 12, 2021

Yes, I followed that guide, the errors are exactly like this:

image

which means I can run the lemmy-ui fine, but cannot upload images.

@Nutomic
Copy link
Member

Nutomic commented Jan 12, 2021

Try to stop the container (docker-compose down), then make sure the folder permissions are correct as mentioned above, and starting it again.

@kklot
Copy link

kklot commented Jan 13, 2021

Thanks, I tried that and also tried to remove and rebuild all but still getting the same error. This is the folders

cd ~/lemmy
ls -la volumes
drwxr-xr-x   4 user  staff  128  9 Jan 18:03 .
drwxr-xr-x   7 user  staff  224 12 Jan 01:09 ..
drwxr-xr-x   2 991     991     64  9 Jan 17:29 pictrs
drwx------@ 25 user  staff  800 11 Jan 23:58 postgres

@dessalines
Copy link
Member

Might have to do with your postgres folder then? I have no idea what might be messed up with your docker install but mine has root group:

drwxr-xr-x  4   991 lp    4096 Jan  5 12:05 pictrs/
drwx------ 19    70 root  4096 Jan  6 10:42 postgres/

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

5 participants