-
Notifications
You must be signed in to change notification settings - Fork 95
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
Cryptic error message if accounts.lock is locked #6636
Comments
issue on desktop repo for reference: deltachat/deltachat-desktop#4748 |
I invested this a bit and only the last part (after Fatal Error) is changeable in core/deltachat-rpc-server. The cryptic part originates (as @WofWca already pointed out in the desktop issue) from deltachat-desktop in this line https://github.com/deltachat/deltachat-desktop/blob/c0fdab6aa09dc640549d601077e3f44436fdcfc0/packages/target-electron/src/deltachat/stdio_server.ts#L96. So to solve this in core only the second proposal is a viable option. |
When this happens, it is actually good that Delta Chat stops. If you forcefully unlock it while existing core is still running, both From @hpk42 in desktop chat:
|
I made a PR that makes the core side of this look nicer: #6695 I'll create an issue in Desktop for the rest. |
Everything that's actionable for now has been done. |
How this happened to me:
Due to
some bugdeltachat/deltachat-desktop#4748, DC Desktop crashed but theaccounts.lock
stayed locked.How DC Desktop crashed
I don't remember exactly what I did, but it was something along these lines:
But when I try to reproduce this, everything works fine.
Steps to reproduce:
flock /home/.../DeltaChat/accounts/accounts.lock --command "sleep 1000"
Actual behavior:
Expected behavior:
A nice error message should be shown.
Possible solutions:
accounts.lock
(this would also get us rid of one dependency,fd-lock
) (seecreate_lock_task()
inaccounts.rs
)The text was updated successfully, but these errors were encountered: