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

Error Request failed with status code 500 Internal Server Error #14

Closed
Shardonnay opened this issue Dec 21, 2021 · 2 comments
Closed

Error Request failed with status code 500 Internal Server Error #14

Shardonnay opened this issue Dec 21, 2021 · 2 comments

Comments

@Shardonnay
Copy link

Hello, beforehand I want to thank you for this amazing project !
I'm not sure if this error is really a bug or just a simple permission error.

The problem:
When uploading an attachment or setting a wallpaper I get the following error message: " Error Request failed with status code 500 Internal Server Error". In the docker container log I got the following error message: "ERROR ▶ handler/UploadBackground 1f7 open files/3: permission denied"

My docker compose file looks like the following:
version: '3'

services:
api:
image: vikunja/api
environment:
VIKUNJA_DATABASE_TYPE: sqlite
VIKUNJA_SERVICE_FRONTENDURL: URL
VIKUNJA_SERVICE_ENABLETASKATTACHMENTS: 1
VIKUNJA_SERVICE_ENABLEREGISTRATION: 1
VIKUNJA_SERVICE_ENABLELINKSHARING: 1
VIKUNJA_SERVICE_ENABLETASKCOMMENTS: 1
VIKUNJA_SERVICE_ENABLEEMAILREMINDERS: 1
VIKUNJA_SERVICE_ENABLEUSERDELETION: 1
VIKUNJA_MAILER_ENABLED: 1
VIKUNJA_MAILER_HOST: SERVER
VIKUNJA_MAILER_PORT: 587
VIKUNJA_MAILER_USERNAME: EMAIL
VIKUNJA_MAILER_PASSWORD: PASSWORD
VIKUNJA_RATELIMIT_ENABLED: 0
VIKUNJA_FILES_MAXSIZE: 8000MB
VIKUNJA_SERVICE_ENABLETOTP: 1
VIKUNJA_SERVICE_TIMEZONE: Europe/Berlin
ports:
- 3456:3456
volumes:
- ./files:/app/vikunja/files
restart: unless-stopped
frontend:
image: vikunja/frontend
ports:
- 4242:80
environment:
VIKUNJA_API_URL: URL/api/v1
restart: unless-stopped

@kolaente
Copy link
Member

Hi!

That looks a lot like a permission issue.

Vikunja runs as the user 1000:1000 in the container so that user needs to have access to the mounted files folder. Check out this forum thread about the problem: https://community.vikunja.io/t/permission-error-uploading-attachment/425

@Shardonnay
Copy link
Author

Thanks @kolaente ! I will now close the issue.

vikunja-bot pushed a commit that referenced this issue Feb 8, 2024
Reviewed-on: https://kolaente.dev/vikunja/desktop/pulls/14
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
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