atuin
atuin copied to clipboard
Bug Report: atuin sync -f fails with "missing field hosts" error
This is the same as #1440 , which was locked.
Copied from above issue, but I am running into the exact same issue (differences in setup marked):
Summary:
The atuin sync -f command fails with the following error message:
Error: error decoding response body: missing field `hosts` at line 1 column 30
Caused by: missing field `hosts` at line 1 column 30
Location: /build/source/atuin-client/src/api_client.rs:265:21
Steps to Reproduce:
Run atuin sync -f
(or without the -f flag)
Expected Behavior:
The atuin sync -f
command should successfully force the synchronization of the local history with the server.
Environment:
Operating System: Pop!_OS 22.04 LTS Atuin Version: 17.0.1
(Also happens on nixos stable)
The difference in my setup is that I am running the atuin server component on a self-hosted nixos machine, using postgresql as database backend.
I did never delete a/the user, fwiw.
What can I do to debug this issue, once I run into it again? Right now, unfortunately, I cannot reproduce... I am not yet sure when exactly the issue happens...
Could you update to the latest atuin please?
And also let me know which version you are running on the server. It is likely behind.
Ah, I didn't notice that there was a newer release than 17.0.1! Either way though, both server and client run the same version.
But maybe the issue happened when I was developing on the codebase, using latest master as base,... which would then be a version conflict of course (client being newer than 17.2, server being 17.0.1). I'll report back as soon as see the issue again!