[GH-ISSUE #1224] Export On Unstable Does Not Export all Tasks #6337

Closed
opened 2026-04-20 16:55:15 -05:00 by GiteaMirror · 18 comments
Owner

Originally created by @Ducky6944 on GitHub (Aug 3, 2025).
Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1224

Description

When exporting tasks via the web interface the resulting JSON does not contain all tasks. Thus importing tasks into vikunja does not result in a complete restoration of tasks. Projects and various other data seem to be unaffected.

I am happy to provide any logs or other files you might need.

On the demo site the number of tasks seems to be roughly accurate to what is under each project or unorganized.

The only thing I can think of that is of note is I moved many tasks that were not organized into a project.

Vikunja Version

v0.24.1-1698-ddff1cf3

Browser and version

Zen 1.14.9b (Firefox 141.0)

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

Originally created by @Ducky6944 on GitHub (Aug 3, 2025). Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1224 ### Description When exporting tasks via the web interface the resulting JSON does not contain all tasks. Thus importing tasks into vikunja does not result in a complete restoration of tasks. Projects and various other data seem to be unaffected. I am happy to provide any logs or other files you might need. On the demo site the number of tasks seems to be roughly accurate to what is under each project or unorganized. The only thing I can think of that is of note is I moved many tasks that were not organized into a project. ### Vikunja Version v0.24.1-1698-ddff1cf3 ### Browser and version Zen 1.14.9b (Firefox 141.0) ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
GiteaMirror added the area/typesense label 2026-04-20 16:55:16 -05:00
Author
Owner

@kolaente commented on GitHub (Aug 3, 2025):

Are you able to spot a pattern on the missing tasks?

<!-- gh-comment-id:3148662422 --> @kolaente commented on GitHub (Aug 3, 2025): Are you able to spot a pattern on the missing tasks?
Author
Owner

@Ducky6944 commented on GitHub (Aug 4, 2025):

I am not unfortunately. For Instance I have a project labeled "home." I just added a couple tasks using the cmd+k shortcut, I believe it's called quick add magic. In the data.json.

2.id === 3
2.tasks === null
2.positions.length === 150 
2.task_buckets.length === 46 
2.buckets.length === 3

The behavior persists irrespective if I go into the list view and add it to the supplied input or add via the shortcut.

<!-- gh-comment-id:3148857216 --> @Ducky6944 commented on GitHub (Aug 4, 2025): I am not unfortunately. For Instance I have a project labeled "home." I just added a couple tasks using the cmd+k shortcut, I believe it's called quick add magic. In the `data.json`. ```javascript 2.id === 3 2.tasks === null 2.positions.length === 150 2.task_buckets.length === 46 2.buckets.length === 3 ``` The behavior persists irrespective if I go into the list view and add it to the supplied input or add via the shortcut.
Author
Owner

@kolaente commented on GitHub (Aug 4, 2025):

And the same tasks are missing in every export you're doing?

<!-- gh-comment-id:3149260061 --> @kolaente commented on GitHub (Aug 4, 2025): And the same tasks are missing in every export you're doing?
Author
Owner

@Ducky6944 commented on GitHub (Aug 4, 2025):

It appears to be the case. Though It also seems to not export any news tasks in any project that I've got as well.

<!-- gh-comment-id:3150893988 --> @Ducky6944 commented on GitHub (Aug 4, 2025): It appears to be the case. Though It also seems to not export any news tasks in any project that I've got as well.
Author
Owner

@kolaente commented on GitHub (Aug 4, 2025):

Anything special about the tasks which are missing from the export?

And nothing in the logs while the export is created?

<!-- gh-comment-id:3150922578 --> @kolaente commented on GitHub (Aug 4, 2025): Anything special about the tasks which are missing from the export? And nothing in the logs while the export is created?
Author
Owner

@Ducky6944 commented on GitHub (Aug 4, 2025):

Sorry I should have thought to gather this from the beginning.

The only messages referring to the export are listed below. Maybe it's silently failing on task 49 without continuing.

time=2025-08-04T18:40:23.084Z level=DEBUG msg="Starting to export user data for user 1..."
time=2025-08-04T18:40:23.101Z level=DEBUG msg="[User Data Export] Task 49 does not exist for comment 2, omitting"
time=2025-08-04T18:40:23.117Z level=DEBUG msg="Done exporting user data for user 1..."
<!-- gh-comment-id:3151950273 --> @Ducky6944 commented on GitHub (Aug 4, 2025): Sorry I should have thought to gather this from the beginning. The only messages referring to the export are listed below. Maybe it's silently failing on task 49 without continuing. ```logs time=2025-08-04T18:40:23.084Z level=DEBUG msg="Starting to export user data for user 1..." time=2025-08-04T18:40:23.101Z level=DEBUG msg="[User Data Export] Task 49 does not exist for comment 2, omitting" time=2025-08-04T18:40:23.117Z level=DEBUG msg="Done exporting user data for user 1..." ```
Author
Owner

@kolaente commented on GitHub (Aug 4, 2025):

Anything special about task 49?

<!-- gh-comment-id:3151959390 --> @kolaente commented on GitHub (Aug 4, 2025): Anything special about task 49?
Author
Owner

@Ducky6944 commented on GitHub (Aug 4, 2025):

Not particularly. Assuming https://{vikunja}/tasks/49 is the correct task. It's #25 in a particular project I have. It's probably the only task I have that contains a comment, which I used to just keep a trail of interactions. It's got a reminder, description, and a comment. The comment is plain text as is everything else.

Edit: Additionally it's a single comment.

Edit: Unable to reproduce on your Demo Instance. If you'd like I could try deleting that task to see if it exports.

<!-- gh-comment-id:3152107150 --> @Ducky6944 commented on GitHub (Aug 4, 2025): Not particularly. Assuming `https://{vikunja}/tasks/49` is the correct task. It's #25 in a particular project I have. It's probably the only task I have that contains a comment, which I used to just keep a trail of interactions. It's got a `reminder`, `description`, and a `comment`. The comment is plain text as is everything else. Edit: Additionally it's a single comment. Edit: Unable to reproduce on your Demo Instance. If you'd like I could try deleting that task to see if it exports.
Author
Owner

@kolaente commented on GitHub (Aug 5, 2025):

If you could delete it to see if it exports that would be great. It might be the comment, so maybe try deleting that first?

In any case, make a backup beforehand.

<!-- gh-comment-id:3156683503 --> @kolaente commented on GitHub (Aug 5, 2025): If you could delete it to see if it exports that would be great. It might be the comment, so maybe try deleting that first? In any case, make a backup beforehand.
Author
Owner

@Ducky6944 commented on GitHub (Aug 6, 2025):

Unfortunately deleting the comment or the task did not work.

logs:

vikunja  | time=2025-08-06T02:02:10.829Z level=DEBUG msg="Starting to export user data for user 1..."
vikunja  | time=2025-08-06T02:02:10.851Z level=DEBUG msg="Done exporting user data for user 1..."
<!-- gh-comment-id:3157171467 --> @Ducky6944 commented on GitHub (Aug 6, 2025): Unfortunately deleting the comment or the task did not work. logs: ```logs vikunja | time=2025-08-06T02:02:10.829Z level=DEBUG msg="Starting to export user data for user 1..." vikunja | time=2025-08-06T02:02:10.851Z level=DEBUG msg="Done exporting user data for user 1..." ```
Author
Owner

@kolaente commented on GitHub (Aug 6, 2025):

Do all missing tasks belong to the same project? Do you have at least one task from each project that you expect to be exported?

<!-- gh-comment-id:3160624634 --> @kolaente commented on GitHub (Aug 6, 2025): Do all missing tasks belong to the same project? Do you have at least one task from each project that you expect to be exported?
Author
Owner

@Ducky6944 commented on GitHub (Aug 11, 2025):

All missing tasks do not belong to the same project. There are tasks missing from all projects.

<!-- gh-comment-id:3173080258 --> @Ducky6944 commented on GitHub (Aug 11, 2025): All missing tasks do not belong to the same project. There are tasks missing from all projects.
Author
Owner

@kolaente commented on GitHub (Sep 1, 2025):

Are you using typesense?

<!-- gh-comment-id:3243250974 --> @kolaente commented on GitHub (Sep 1, 2025): Are you using typesense?
Author
Owner

@Ducky6944 commented on GitHub (Sep 2, 2025):

I am using typsense.

<!-- gh-comment-id:3243488201 --> @Ducky6944 commented on GitHub (Sep 2, 2025): I am using typsense.
Author
Owner

@kolaente commented on GitHub (Sep 2, 2025):

Does it work as expected if you reindex (vikunja reindex via the CLI) or disable Typesense?

<!-- gh-comment-id:3244050801 --> @kolaente commented on GitHub (Sep 2, 2025): Does it work as expected if you reindex (`vikunja reindex` via the CLI) or disable Typesense?
Author
Owner

@Ducky6944 commented on GitHub (Sep 2, 2025):

vikunja index did not work, but disabling typesense did.

<!-- gh-comment-id:3245140897 --> @Ducky6944 commented on GitHub (Sep 2, 2025): `vikunja index` did not work, but disabling typesense did.
Author
Owner

@kolaente commented on GitHub (Sep 2, 2025):

https://github.com/go-vikunja/vikunja/pull/1385 resolves this by bypassing Typesense for the user data export. Please check with the next unstable build (should be ready for deployment in ~30min, also on try).

<!-- gh-comment-id:3245437306 --> @kolaente commented on GitHub (Sep 2, 2025): https://github.com/go-vikunja/vikunja/pull/1385 resolves this by bypassing Typesense for the user data export. Please check with the next unstable build (should be ready for deployment in ~30min, also on [try](https://try.vikunja.io)).
Author
Owner

@Ducky6944 commented on GitHub (Sep 2, 2025):

Resolved! Great work and thank you!

<!-- gh-comment-id:3245709814 --> @Ducky6944 commented on GitHub (Sep 2, 2025): Resolved! Great work and thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#6337