-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty Encryption Key Error in Docspell Addon Authentication #2868
Comments
@eikek I know you are very busy. But it would be great to have your vision on this issue. This is the main reason for my Docspell instance not running reliably. Do you know why the rest server might be unregistering? |
Hi @tiborrr sorry this one got lost on my side, thanks for pinging. I haven't had time to investigate. It is very strange that the rest-server entry is removed, this should only happen once it shuts down. Do I understand correctly: this is about an addon that likes to run But the main problem is, that the enrty is missing in the table. I think one clue is that there are multiple joex instances. Maybe some query is messed up in this case. I can't see this issue on my instance, where I only have one joex. Needs more investigation. :-| |
My custom (pure) addon does only one thing and that is update a custom field. Do you know at what point in the code the restserver can get removed from the node table? |
It is setup so that on startup the row is inserted and removed when the server shuts down:
I can't see any other use of the |
With a little bit help from some AI I have managed to found the cause of this bug:
Description
When running Docspell with multiple JOEX nodes, authentication failures occur because the REST server node is missing from the
node
table in the database. This causes JOEX nodes to attempt token signing with an empty server secret, resulting in the following error:Current Behavior
docspell.server.auth.server-secret
node
tableDatabase State
The
node
table only contains JOEX entries, missing the REST server:Expected Behavior
REST server should maintain its registration in the
node
tablePotential Investigation Points
Environment
server-secret
Additional Notes
This could be a race condition or timing issue where the REST server entry is being removed unexpectedly. The error handling could also be improved to fail fast with a clear error message when no server secret is available, rather than proceeding with an empty key.
The text was updated successfully, but these errors were encountered: