"Export your Vikunja data" doesn't send email, looking for missing file in ' ./files/1' #1368
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#1368
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?
Description
Description : The Export function from Vikunja is not behaving as expected
Steps to reproduce
Actual behavior
Expected behavior
Debugging info
The export files seem to be created correctly in this folder:
Inside
user-export-tmp
, I have multiple files of the format:1_2023-01-24_12-12-51.zip
. They are owned by root:root, while the folders, binary, .yml and .db files are owned by vikunja:vikunja_data, do I have permission issues? If this is the case, I'm still filing this as a bug because Vikunja looks for a file in a folder that doesn't exist.Here is what I have in config.yml
Here are the last lines in events.log
Vikunja Frontend Version
0.20.2
Vikunja API Version
0.20.1
Browser and version
Latest Chrome on Windows, API is self hosted without docker.
Can you reproduce the bug on the Vikunja demo site?
No
Screenshots
No response
This looks like you uploaded a file (some way or the other) and then deleted the file on disk without removing the file entry. You need to remove the file entry with the ID
1
in thefiles
table and the export should work.Correct! I wouldn't have guessed that the Export feature was tired to the Upload attachments feature. And indeed, I hadn't noticed I had wiped out the contents of the
/files
folder by mistake. I restored them from a backup, didn't touch the DB, and things went back to normal.(Note for posterity: The files in
/files
are numbered from 1, they include the backup archives, work fine when created as root:root and 644, and are matching the list in thefiles
table in the DB. The contents of/files/user-export-tmp
seem erased once the archive is created successfully in/files
).Thanks!