Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

bug: directory content not uploaded to Tracim server

Aperta
#82 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@buxx ci sta già lavorando.

Dal 24/9/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Hi again Bux :-),

I ran trsync manually with a simple command:

./trsync ~/Tracim/ <Tracim FQDN> <space ID> <username>

I then moved from the trsync client a directory called docs-tech to ~/Tracim. When looking on the Tracim server, the directory has indeed been created but not its content (a few text files). Here is the log of trsync:

[2024-09-23T18:55:10Z INFO  trsync::run2] Proceed event Local(DiskEventWrap("docs-tech", Created("docs-tech")))
[2024-09-23T18:55:10Z INFO  trsync::operation::operator] Proceed event : Local(DiskEventWrap("docs-tech", Created("docs-tech")))
[2024-09-23T18:55:11Z INFO  trsync::remote::watcher] remote event : content.created.folder (159504)
[2024-09-23T18:55:11Z INFO  trsync::run2] Proceed event Remote(Created(ContentId(159504)))
[2024-09-23T18:55:11Z INFO  trsync::operation::operator] Ignore event (planned ignore) : Remote(Created(ContentId(159504)))

Process was still running but printed nothing after this line.

Here are the corresponding apache log on the server:

172.18.0.1 - - [23/Sep/2024:18:55:11 +0000] "POST /api/workspaces/682/contents HTTP/1.1" 200 1143 "-" "-"
172.18.0.1 - - [23/Sep/2024:18:55:11 +0000] "GET /api/workspaces/682/contents/159504 HTTP/1.1" 302 486 "-" "-"
172.18.0.1 - - [23/Sep/2024:18:55:11 +0000] "GET /api/workspaces/682/folders/159504 HTTP/1.1" 200 1201 "https://server_fqdn/api/workspaces/682/contents/159504" "-"
172.18.0.1 - - [23/Sep/2024:18:55:11 +0000] "GET /ui/login HTTP/1.1" 200 11083 "-" "Go-http-client/1.1"
172.18.0.1 - - [23/Sep/2024:18:55:11 +0000] "GET /api/workspaces/682/contents/159504 HTTP/1.1" 302 487 "-" "-"
172.18.0.1 - - [23/Sep/2024:18:55:11 +0000] "GET /api/workspaces/682/folders/159504 HTTP/1.1" 200 1201 "https://server_fqdn/api/workspaces/682/contents/159504" "-"

I then stopped and restarted trsync with the same command: files were uploaded immediately. In trsync logs, the following lines appear for each file:

[2024-09-23T19:06:14Z INFO  trsync::operation::operator] Proceed event : Local(DiskEventWrap("docs-tech/foo.md", Created("docs-tech/foo.md")))                                       
[2024-09-23T19:06:15Z INFO  trsync::remote::watcher] remote event : content.created.file (159508)                                                                                        [2024-09-23T19:06:15Z INFO  trsync::remote::watcher] remote event : content.modified.file (159508)                                                                                       
[2024-09-23T19:06:15Z INFO  trsync::remote::watcher] remote event : content.modified.file (159508)
[2024-09-23T19:06:33Z INFO  trsync::run2] Proceed event Remote(Created(ContentId(159508)))                                                                                               
[2024-09-23T19:06:33Z INFO  trsync::operation::operator] Ignore event (planned ignore) : Remote(Created(ContentId(159508)))                                                              [2024-09-23T19:06:33Z INFO  trsync::run2] Proceed event Remote(Updated(ContentId(159508)))                                                                                               
[2024-09-23T19:06:34Z INFO  trsync::operation::operator] Ignore event (planned ignore) : Remote(Updated(ContentId(159508)))                                                              [2024-09-23T19:06:34Z INFO  trsync::run2] Proceed event Remote(Updated(ContentId(159508)))                                                                                               
[2024-09-23T19:06:34Z INFO  trsync::operation::operator] Proceed event : Remote(Updated(ContentId(159508)))

./trsync --version: basic 0.3.2

Thanks,
Yvan

Lingua principale
Rust
Stelle
15
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di buxx/trsync

Tutte le issue di buxx/trsync

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.