When I export it appears that it worked, but it doesn’t send me anything by email.
Logs:
|2022-02-12T17:08:59.558145413Z: DEBUG|▶ models/Handle de0 Starting to export user data for user 1...|
|---|---|
|2022-02-12T17:08:59.761854531Z: DEBUG|▶ models/Handle e81 Done exporting user data for user 1...|
Vikunja needs to be able to send email. In order to do that, you need to configure a mail server (internally, this is called mailer). Check out the docs about this: Config options | Vikunja
If you have it configured you can verify it works with the vikunja testmail command.
When Vikunja is started, do you see a message like the following in the logs?
Mailer seems to be not configured! Please see the config docs for more details.
Ah. Kind of confusing, this is not very clear in the classic docker run example and when you try to export without the mailer configured, at least one error message should appear. You have to do this to export your data, which to me seems like a basic feature. In my opinion the ideal would be to have the user admin (also because when you access vikunja frontend there is an option to register and I don’t want just anyone to create an account) and he can export the data (on the fly as download), organize the users and grant permissions.
What is your log level? Do you get any meantingful output if you set it to debug? (restart the container afterwards)
The command uses the logs as output mechanism. I suspect the dump is created successfully, but the message is not shown because of the log level it is set to.
I build the version and this bugs seems to be fixed, however when I try to export it returns me:
ERROR handler/Migrate 163 no data file provided
Witch is strange since the zip contains either database and files.
Are you importing via the web ui? The dump from the vikunja dump command can only be used with the vikunja restore command.
The cli command puts everything from all users in a zip file. Usually you want to do this as a backup. The web ui method is primarily for use cases where the user isn’t the admin or wants to migrate their Vikunja data between instances.