buxx / buxx/trsync

Bug: trsync crashes with "UnexpectedError"

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

Description

Hi,

I ran trsync v0.2.1 "manually" with the following command:

```
trsync ~/Tracim/spacename/ tracim.mydomain.fr 9999 myusername
```

And it immediately crashed with the following error:

```
[2024-10-03T20:53:16Z INFO trsync::operation::operator] Proceed event : Remote(Created(ContentId(1520)))
[2024-10-03T20:53:16Z ERROR trsync::run2] Operate error : Operator error: Missing parent error: Unable to operate on following changes (missing parents): ☁🆕 some-dir/some-file.txt
Error: UnexpectedError("Operator error: Missing parent error: Unable to operate on following changes (missing parents): ☁🆕 some-dir/some-file.txt: Missing parent
error: Unable to operate on following changes (missing parents): ☁🆕 some-dir/some-file.txt")
```

On the server side, looking at the apache logs, it matches the following logs:
```
XX.XX.XX.XX - - [03/Oct/2024:20:53:14 +0000] "GET /api/auth/whoami HTTP/1.1" 200 5189 "-" "-"
XX.XX.XX.XX - - [03/Oct/2024:20:53:14 +0000] "GET /api/workspaces/99/contents HTTP/1.1" 200 36413 "-" "-"
XX.XX.XX.XX - - [03/Oct/2024:20:53:15 +0000] "GET /api/workspaces/99/contents/1520 HTTP/1.1" 302 5117 "-" "-"
XX.XX.XX.XX - - [03/Oct/2024:20:53:16 +0000] "GET /api/workspaces/99/files/1520 HTTP/1.1" 200 1366 "https://tracim.mydomain.fr/api/workspaces/99/contents/1520" "-"
XX.XX.XX.XX - - [03/Oct/2024:20:53:16 +0000] "GET /api/workspaces/99/contents/1520 HTTP/1.1" 302 504 "-" "-"
XX.XX.XX.XX - - [03/Oct/2024:20:53:16 +0000] "GET /api/workspaces/99/files/1520 HTTP/1.1" 200 1366 "https://tracim.mydomain.fr/api/workspaces/99/contents/1520" "-"
```

What I think I did:

1. synchronize this file with trysnc 0.2.0
2. stopped trync
3. deleted the file on my computer
4. ran trsync 0.2.1 (the above error and logs)

Do not hesitate to tell me if I can provide more information.

Thanks,
Yvan

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.