havardgulldahl / jottalib

A library to access files stored at jottacloud.com.
GNU General Public License v3.0
83 stars 19 forks source link

jotta-scanner doesn't upload files. Complain about incomplete files. #136

Closed Foxboron closed 7 years ago

Foxboron commented 7 years ago

Hello!

jotta-scanner does not upload my files. After the initial upload, nothing shows up in jotta, and the scanner reports no errors. When i do a second scan, the debug logs says the file is incompletely uploaded.

Directory structure

λ fox@hackbook jotta » tree
.
├── jottacloudclient.log
└── test
    ├── ndt
    │   ├── DSC02279.JPG
    │   ├── DSC02280.JPG
    │   ├── DSC02281.JPG
    │   ├── DSC02282.JPG
    │   ├── DSC02283.JPG
    │   ├── DSC02284.JPG
    │   ├── DSC02285.JPG
    │   ├── DSC02286.JPG
    │   ├── DSC02287.JPG
    │   ├── DSC02288.JPG
    │   ├── DSC02289.JPG
    │   ├── DSC02290.JPG
    │   ├── DSC02291.JPG
    │   ├── DSC02292.JPG
    │   └── DSC02293.JPG
    └── something.txt

2 directories, 17 files
λ fox@hackbook jotta » jotta-scanner test /Jotta/Sync -l debug # Initial upload
λ fox@hackbook jotta » jotta-scanner test /Jotta/Sync -l debug # Second attempt

Section of relevant logs:

DEBUG:requests.packages.urllib3.connectionpool:https://www.jottacloud.com:443 "GET /jfs/foxboron/Jotta/Sync/test/ndt/DSC02286.JPG HTTP/1.1" 200 None
DEBUG:jottalib.jottacloud:get xattr hash for test/ndt/DSC02286.JPG
INFO:jottalib.jottacloud:xattr not found. Installing it will speed up hash comparison: pip install xattr
DEBUG:jottalib.jottacloud:Local file test/ndt/DSC02286.JPG is incompletely uploaded, continue
DEBUG:jottalib.JFS:Resuming /Jotta/Sync/test/ndt/DSC02286.JPG from offset 26
DEBUG:jottalib.JFS:posting content (len 5308416, hash 4ef4a2d2dcc34a9a41a4907ca8d5218a) to url u'/Jotta/Sync/test/ndt/DSC02286.JPG'
DEBUG:jottalib.JFS:posting content (len ?) to url https://www.jottacloud.com/jfs/foxboron/Jotta/Sync/test/ndt/DSC02286.JPG
Foxboron commented 7 years ago

Local error from the package file i wrote :/