Bug Report: Tasks Not Indexed Immediately After Creation after recently upgrading to Vikunja (0.24-6)
Environment:
- Vikunja Frontend: Installed via
apt
- Version: Debian build
0.24-6
- Deb Package Hash:
4dc42cdd301d3b94d57de85fa817d54125d1b147
- Platform: Web frontend and mobile client
Issue Description
Newly created tasks are not immediately indexed or accessible to other clients (shared projects, mobile apps) unless a manual index operation (vikunja index
) is performed on the CLI. This issue affects both the web frontend and mobile clients, regardless of the originating client.
Reproduction Steps
- Create a new task in any folder using the web frontend.
- Task does not appear in the mobile client.
- Task is only accessible from the originating web frontend.
- Create a new task using a mobile client.
- Task appears in the web frontend.
- Task does not appear in the mobile client after creation.
- Shared projects are affected similarly—new tasks do not propagate immediately.
- Running
vikunja index
manually resolves the issue, making the tasks accessible.
Observed Errors
Errors in vikunja-standard.log
suggest indexing issues related to kanban_position
and positions.view_X
fields.
2025-02-22T23:04:32-08:00: ERROR 3fa0 Errors during index:
[error=Field kanban_position
has been declared in the schema, but is not found in the document.,
document={“id”:“368”,“title”:“test for mobile app integration”,“positions”:{“view_105”:98304,“view_106”:98304,“view_107”:98304,“view_108”:98304},“buckets”:[40]}]
2025-02-22T23:05:20-08:00: WARNING 4027 Unable to fetch tasks from Typesense,
error was ‘status: 404 response: {“message”: “Could not find a field named positions.view_21
in the schema for sorting.”}’.
Falling back to db.
2025-02-22T23:05:24-08:00: ERROR 4073 Errors during index:
[error=Field kanban_position
has been declared in the schema, but is not found in the document.,
document={“id”:“369”,“title”:“testing for web page integration”,“positions”:{“view_21”:524288,“view_22”:524288,“view_23”:524288,“view_24”:524288},“buckets”:[10]}]
Manually running vikunja index
results in successful indexing:
2025-02-22T23:06:29-08:00: INFO 002 Running migrations…
2025-02-22T23:06:29-08:00: INFO 06a Ran all migrations successfully.
2025-02-22T23:06:29-08:00: INFO 06b Indexing all tasks… This may take a while.
2025-02-22T23:06:30-08:00: INFO 5a9 Done!