Skip to content

Bug: trsync crashes with "UnexpectedError" #83

@yvan-algoo

Description

@yvan-algoo

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions