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

Unable to upload files - 500 Insternal Server Error #69

Open
JoshBayne opened this issue Nov 23, 2022 · 3 comments
Open

Unable to upload files - 500 Insternal Server Error #69

JoshBayne opened this issue Nov 23, 2022 · 3 comments

Comments

@JoshBayne
Copy link

I can view posts and my instance is federated properly, however if I try to change my avatar, background or profile banner, the image will not upload and I receive a 500 server error
Untitled

I've double checked and my uploads folders are properly configured as far as docker is concerned, even put a test file in via the CLI to make sure it showed on both ends.

@JoshBayne
Copy link
Author

I think I solved it. Tell me if I did anything that might break something.

I did some research and found another user having a similar issue and it was a problem with the owner of the directory, so what I did was
docker exec -it --user root pleroma_web sh
and then inside the container I used the commands
chown -R /var
chown -R /tmp
then after a quick ls -l to verify that the command took, I uploaded an avatar and it saved.

Will this cause any issues down the road or am I good to go now?

@nemesio65
Copy link

That should work just fine. I believe the underlying issue is that the docker-compose is setting permissions to UID: 1000 and GID: 1000 but the Dockerfile is still using UID:GID 911:911

@comcloudway
Copy link

I can confirm running chown -R 1000:1000 uploads fixes the image upload problem (only tested profile picture, banner and wallpaper)

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

3 participants