Cannot export user data from local account in Docker instance #1007
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1007
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version: 0.18.1 (:latest on Docker Hub)
Platform: CentOS 8 latest
API and Frontend run in Docker
Contents of
api/v1/info
:When exporting my data from my local account in a docker instance, I get the following lines in console from the API container:
This seems like a bug, but if there's something I can do to fix this myself, please let me know.
Does the user running vikunja have access to the files folder?
Oops. Clicked the wrong button. I hate phoneposting. I'll check and get back with you.
I removed the
files
directory and allowed Vikunja to recreate it by itself again to be sure, so it definitely should have access to it.Here's the
volumes
section of mydocker-compose.yml
:Does anything seem obviously incorrect?
I did some more digging and discovered that the internal
vikunja
user in the container cannot create dirs infiles
. I have no clue why that is by default; still feels like a bug. That said, I fixed the issue myself by logging in to the container as root,chown
ingfiles
to thevikunja
user, then doing the export again.Maybe that was an issue with the user running Vikunja not having the rights to create file in that directory. By default that's 1000:1000 but you can change that. If you don't specify it when starting a comtainer, I think docker will create all mounts as the root user which then will lead to permission errors if you don't correct it afterwards.
Closing as resolved, feel free to reopen if you have any other issues.