buxx / buxx/trsync

Bug: trsync_manager crashes when doing a permanent delete

Open
#85 1 comment 0 reactions 1 assignee Claimed by @buxx View on GitHub
Dominant language
Rust
Stars
15
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Hi,

When I do a "permanent delete" (introduced in Tracim 4.9.0) from the web interface, `trsync_manager` crashes with the following messages:

```
[2024-10-17T20:24:33Z INFO trsync::remote::watcher] remote event : content.deleted.html-document (14642)
[2024-10-17T20:24:33Z INFO trsync::run2] Proceed event Remote(Deleted(ContentId(14642)))
[2024-10-17T20:24:33Z INFO trsync::remote::watcher] remote event : content.deleted.html-document (14642)
[2024-10-17T20:24:33Z INFO trsync::run2] [my.tracim.fr::682] Set activity to ☁❌ ?
[2024-10-17T20:24:33Z INFO trsync::operation::operator] Proceed event : Remote(Deleted(ContentId(14642)))
[2024-10-17T20:24:33Z INFO trsync::run2] [my.tracim.fr::682] Set activity to En veille
[2024-10-17T20:24:33Z INFO trsync::run2] Proceed event Remote(Deleted(ContentId(14642)))
[2024-10-17T20:24:33Z INFO trsync::run2] [my.tracim.fr::682] Set activity to ☁❌ ?
[2024-10-17T20:24:33Z INFO trsync::operation::operator] Proceed event : Remote(Deleted(ContentId(14642)))
[2024-10-17T20:24:33Z ERROR trsync::run2] Operate error : Operator error: Executor error: Unexpected error: Expect content 14642
[2024-10-17T20:24:33Z INFO trsync::run2] [my.tracim.fr::682] Set activity to Erreur
```

To be precise, It does not really crashes (because the process stays running), but it can not sync anything until being restarted.

It does not happen when I do a "classical delete" from the web interface:

```
[2024-10-17T20:32:58Z INFO trsync::remote::watcher] remote event : content.deleted.file (143299)
[2024-10-17T20:32:58Z INFO trsync::run2] Proceed event Remote(Deleted(ContentId(143299)))
[2024-10-17T20:32:59Z INFO trsync::run2] [my.tracim.fr::682] Set activity to ☁❌ my_file-deleted-2024-10-17T20.32.58.657309.ods
[2024-10-17T20:32:59Z INFO trsync::operation::operator] Proceed event : Remote(Deleted(ContentId(143299)))
[2024-10-17T20:32:59Z INFO trsync::run2] [my.tracim.fr::682] Set activity to En veille
[2024-10-17T20:33:00Z INFO trsync::run2] Proceed event Local(DiskEventWrap("test.ods", Deleted("test.ods")))
[2024-10-17T20:33:00Z INFO trsync::run2] [my.tracim.fr::682] Set activity to 🖴❌ test.ods
[2024-10-17T20:33:00Z INFO trsync::operation::operator] Ignore event (planned ignore) : Local(DiskEventWrap("test.ods", Deleted("test.ods")))
[2024-10-17T20:33:00Z INFO trsync::run2] [algoo.tracim.fr::682] Set activity to En veille
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.