Skip to content

Shutting off machine at the wrong time results DeltaChat being stuck in various conditions, most commonly loops of "Not moving the message XYZ that we have seen before." #6915

@ell1e

Description

@ell1e

(based on issue deltachat/deltachat-desktop#4842 )

Sometimes, DeltaChat Desktop no longer syncs on one of my devices. This seems to be potentially a core bug. The UI sometimes will say "Updating..." for a while, but the messages shown in the main contact list never update and they're stuck roughly 10 days in the past, and no new messages are showing. Any individual chat won't load, it just say "Select a chat or create a new chat" and nothing ever happens.

Here's how the main contact list looks like while stuck:

During investigations, I obtained a --devmode terminal output log file which shows the following error: 7.2s �[1;33m[w]�[0m�[0;37mcore/event�[0m: 2 src/scheduler.rs:731: Failed fetch_idle: fetch_move_delete: fetch_new_messages: database disk image is malformed: Error code 11: The database disk image is malformed

  • Operating System (Linux/Mac/Windows/iOS/Android): Linux
  • Core Version: v1.156.2, v1.159.4
  • Client Version: 1.54.2, 1.58.2

Expected behavior

Shutting down the device at an unfortunate time won't leave Delta Chat unable to sync after the device starts up again.

Actual behavior

Shutting down the device at an unfortunate time apparently will leave Delta Chat unable to sync after the device starts up again.

Steps to reproduce the problem

  1. Use Delta Chat
  2. Hard shut off your device with power loss at just the wrong moment
  3. I use btrfs. This means any sort of checksum failure due to filesystem corruption should lead to an I/O error on open()/fopen() and not allow any reading in the file, and I think there should also be a dmesg message. Since that didn't happen, I don't think a filesystem corruption is the likely cause here (although I did have that on the PinePhone in the past, likely due to how unreliable SD cards are, so I thought I would point that out to be completely transparent).

Screenshots

see above

Logs

see above

Metadata

Metadata

Assignees

Labels

bugSomething is not working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions