-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jotta-scanner fail to upload file #138
Comments
Same here.
|
Seems to be relevant, this is my requests info: eisl@EISL01 ~ $ pip show requests |
If you downgrade to requests 2.12.0 it should work again. |
Still fail with requests 2.12.0 eisl@EISL01 ~ $ pip show requests eisl@EISL01 ~ $ ls -l /home/eisl/Documents eisl@EISL01 ~ $ jotta-scanner /home/eisl/Documents /Jotta/Archive/EISL01 eisl@EISL01 ~ $ ls -l /home/eisl/jottafs/Jotta/Archive/EISL01/Documents |
I also tried downgrading |
I have same issue too. jotta-upload and jotta-fuse is also affected. I inspected the files status reported by jotta api and all uploaded files have |
I too have this problem. Seems the files are there somewhere (lost in space), because running jotta-scanner multiple times it starts to compare existing files. So somehow jotta-scanner finds the previously uploaded files, but https://www.jottacloud.com does not. The folder structure gets created, but no files are visible on the web site.
|
I have the same problem too: |
We have found that at least these versions and combinations of libs are working together with jottalib. We have not had time to update one and one an check which is breaking it yet.
|
I tried using the versions listed above, but no luck. I have some other additional packages installed, not sure if that should make any difference: |
Try downgrading to requests 2.10.0.
|
Ok. I have now tested a bit more. |
PC folder content:
eisl@EISL01 ~ $ ls -l /home/eisl/Documents
total 8
drwx------ 2 eisl eisl 4096 Sep 22 11:32 NoMachine
-rw-r--r-- 1 eisl eisl 34 Jan 4 13:52 Test.txt
Run jotta-scanner
eisl@EISL01 ~ $ jotta-scanner /home/eisl/Documents /Jotta/Archive/EISL01
Entering dir: /home/eisl/Documents
uploading 1 new files: [●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●] 1/1 - 00:00:01
Network upload speed 33.543B/sec
Entering dir: /home/eisl/Documents/NoMachine
Finished syncing 1 files to JottaCloud, no errors. yay!
Web Client show empty Docments folder
Folder checked as mounted using jotta-fuse, showing 0 size file
eisl@EISL01 ~ $ ls -l /home/eisl/jottafs/Jotta/Archive/EISL01/Documents
total 0
-rw-r--r-- 0 eisl eisl 0 Jan 5 14:26 Test.txt
Removes the Documents folder using the Web Interface.
eisl@EISL01 ~ $ ls -l /home/eisl/jottafs/Jotta/Archive/EISL01
total 0
Running with debug on
eisl@EISL01 ~ $ jotta-scanner -l debug /home/eisl/Documents /Jotta/Archive/EISL01
DEBUG:jottalib.JFS:getting url: 'https://www.jottacloud.com/jfs/eigil.sletbak@gmail.com', extra_headers=None, params=None
DEBUG:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): www.jottacloud.com
send: 'GET /jfs/eigil.sletbak@gmail.com HTTP/1.1\r\nHost: www.jottacloud.com\r\nAccept-Encoding: identity\r\nX-JottaAPIVersion: 2.2\r\nUser-Agent: jottalib 0.5.1 (https://github.com/havardgulldahl/jottalib)\r\nAuthorization: Basic XXXX\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Thu, 05 Jan 2017 13:28:55 GMT
header: X-ID: 400889492780
header: Content-Type: text/xml
header: Transfer-Encoding: chunked
header: Server: Jetty(8.1.21.v20160908)
header: Strict-Transport-Security: max-age= 31536000
DEBUG:requests.packages.urllib3.connectionpool:https://www.jottacloud.com:443 "GET /jfs/eigil.sletbak@gmail.com HTTP/1.1" 200 None
INFO:root:args: topdir u'/home/eisl/Documents', jottapath u'/Jotta/Archive/EISL01'
DEBUG:jottalib.jottacloud:_encode_filename_to_filesystem(u'/home/eisl/Documents')
DEBUG:jottalib.jottacloud:_encode_filename_to_filesystem('/home/eisl/Documents')
DEBUG:jottalib.jottacloud:_decode_filename_to_unicode('/home/eisl/Documents')
DEBUG:jottalib.jottacloud:compare walk: u'/home/eisl/Documents' -> 1 files
DEBUG:jottalib.jottacloud:_decode_filename_to_unicode('Test.txt')
DEBUG:jottalib.jottacloud:_decode_filename_to_unicode('NoMachine')
DEBUG:jottalib.jottacloud:get_jottapath u'/home/eisl/Documents' u'/home/eisl/Documents' u'/Jotta/Archive/EISL01'
DEBUG:jottalib.jottacloud:_decode_filename_to_unicode(u'/Jotta/Archive/EISL01/Documents')
DEBUG:jottalib.jottacloud:compare jottapath: u'/Jotta/Archive/EISL01/Documents'
DEBUG:jottalib.jottacloud:filelist u'/Jotta/Archive/EISL01/Documents'
DEBUG:jottalib.JFS:getting url: 'https://www.jottacloud.com/jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents', extra_headers=None, params=None
send: 'GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents HTTP/1.1\r\nHost: www.jottacloud.com\r\nAccept-Encoding: identity\r\nX-JottaAPIVersion: 2.2\r\nUser-Agent: jottalib 0.5.1 (https://github.com/havardgulldahl/jottalib)\r\nAuthorization: Basic XXXX\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Thu, 05 Jan 2017 13:28:56 GMT
header: Accept-Ranges: bytes
header: X-ID: 120555229075
header: Content-Type: text/xml
header: Transfer-Encoding: chunked
header: Server: Jetty(8.1.21.v20160908)
header: Strict-Transport-Security: max-age= 31536000
DEBUG:requests.packages.urllib3.connectionpool:https://www.jottacloud.com:443 "GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents HTTP/1.1" 200 None
DEBUG:jottalib.JFS:path: u'/Jotta/Archive/EISL01' + u'Documents'
INFO:jottalib.JFS:syncing u'/Jotta/Archive/EISL01/Documents'
DEBUG:jottalib.JFS:path: u'/Jotta/Archive/EISL01' + u'Documents'
DEBUG:jottalib.JFS:getting url: 'https://www.jottacloud.com/jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents', extra_headers=None, params=None
send: 'GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents HTTP/1.1\r\nHost: www.jottacloud.com\r\nAccept-Encoding: identity\r\nX-JottaAPIVersion: 2.2\r\nUser-Agent: jottalib 0.5.1 (https://github.com/havardgulldahl/jottalib)\r\nAuthorization: Basic XXXX\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Thu, 05 Jan 2017 13:28:56 GMT
header: Accept-Ranges: bytes
header: X-ID: 921222432945
header: Content-Type: text/xml
header: Transfer-Encoding: chunked
header: Server: Jetty(8.1.21.v20160908)
header: Strict-Transport-Security: max-age= 31536000
DEBUG:requests.packages.urllib3.connectionpool:https://www.jottacloud.com:443 "GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents HTTP/1.1" 200 None
DEBUG:jottalib.JFS:path: u'/Jotta/Archive/EISL01' + u'Documents'
DEBUG:jottalib.JFS:path: u'/Jotta/Archive/EISL01' + u'Documents'
DEBUG:jottalib.JFS:path: u'/Jotta/Archive/EISL01' + u'Documents'
DEBUG:root:folderlist u'/Jotta/Archive/EISL01/Documents'
DEBUG:jottalib.JFS:getting url: 'https://www.jottacloud.com/jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents', extra_headers=None, params=None
send: 'GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents HTTP/1.1\r\nHost: www.jottacloud.com\r\nAccept-Encoding: identity\r\nX-JottaAPIVersion: 2.2\r\nUser-Agent: jottalib 0.5.1 (https://github.com/havardgulldahl/jottalib)\r\nAuthorization: Basic XXXX\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Thu, 05 Jan 2017 13:28:56 GMT
header: Accept-Ranges: bytes
header: X-ID: 460642854897
header: Content-Type: text/xml
header: Transfer-Encoding: chunked
header: Server: Jetty(8.1.21.v20160908)
header: Strict-Transport-Security: max-age= 31536000
DEBUG:requests.packages.urllib3.connectionpool:https://www.jottacloud.com:443 "GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents HTTP/1.1" 200 None
DEBUG:jottalib.JFS:path: u'/Jotta/Archive/EISL01' + u'Documents'
INFO:jottalib.JFS:syncing u'/Jotta/Archive/EISL01/Documents'
DEBUG:jottalib.JFS:path: u'/Jotta/Archive/EISL01' + u'Documents'
DEBUG:jottalib.JFS:getting url: 'https://www.jottacloud.com/jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents', extra_headers=None, params=None
send: 'GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents HTTP/1.1\r\nHost: www.jottacloud.com\r\nAccept-Encoding: identity\r\nX-JottaAPIVersion: 2.2\r\nUser-Agent: jottalib 0.5.1 (https://github.com/havardgulldahl/jottalib)\r\nAuthorization: Basic XXXX\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Thu, 05 Jan 2017 13:28:56 GMT
header: Accept-Ranges: bytes
header: X-ID: 694074858768
header: Content-Type: text/xml
header: Transfer-Encoding: chunked
header: Server: Jetty(8.1.21.v20160908)
header: Strict-Transport-Security: max-age= 31536000
DEBUG:requests.packages.urllib3.connectionpool:https://www.jottacloud.com:443 "GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents HTTP/1.1" 200 None
DEBUG:jottalib.jottacloud:--cloudfiles: set([])
DEBUG:jottalib.jottacloud:--localfiles: set(['Test.txt'])
DEBUG:jottalib.jottacloud:--cloudfolders: set([])
DEBUG:jottalib.jottacloud:Create SyncFile from 'Test.txt'
DEBUG:jottalib.jottacloud:_encode_filename_to_filesystem('Test.txt')
DEBUG:jottalib.jottacloud:Got encoded filename 'Test.txt', joining with dirpath '/home/eisl/Documents'
DEBUG:jottalib.jottacloud:_encode_filename_to_filesystem('Test.txt')
DEBUG:jottalib.jottacloud:_decode_filename_to_unicode(u'/Jotta/Archive/EISL01/Documents')
DEBUG:jottalib.jottacloud:_decode_filename_to_unicode('Test.txt')
Entering dir: /home/eisl/Documents
DEBUG:jottalib.scanner:uploading new file: SyncFile(localpath='/home/eisl/Documents/Test.txt', jottapath=u'/Jotta/Archive/EISL01/Documents/Test.txt')
DEBUG:jottalib.scanner:running <function new at 0x7f7d55467230> with args ('/home/eisl/Documents/Test.txt', u'/Jotta/Archive/EISL01/Documents/Test.txt', <jottalib.JFS.JFS object at 0x7f7d55486d50>)
DEBUG:jottalib.JFS:posting content (len 34, hash a8b3b313e7685d4c400c0816f3b4c8f4) to url u'/Jotta/Archive/EISL01/Documents/Test.txt'
DEBUG:jottalib.JFS:posting content (len ?) to url https://www.jottacloud.com/jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents/Test.txt
send: 'POST /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents/Test.txt?cphash=a8b3b313e7685d4c400c0816f3b4c8f4 HTTP/1.1\r\nHost: www.jottacloud.com\r\nAccept-Encoding: identity\r\nX-JottaAPIVersion: 2.2\r\nUser-Agent: jottalib 0.5.1 (https://github.com/havardgulldahl/jottalib)\r\njx_lisence: \r\nJMd5: a8b3b313e7685d4c400c0816f3b4c8f4\r\nJModified: 2017-01-04T13:52:49.311838\r\nJSize: 34\r\nX-Jfs-DeviceName: Jotta\r\nJCreated: 2017-01-04T13:52:49.311838\r\ncontent-type: multipart/form-data; boundary=932bcbb48e2d421994d6b8d4ae39c9f9\r\njx_csid: \r\nContent-Length: 602\r\nAuthorization: Basic XXXX\r\n\r\n'
send: <MultipartEncoder: {'created': ('', '2017-01-04T13:52:49.311838'), 'modified': ('', '2017-01-04T13:52:49.311838'), 'file': (u'Test.txt', <open file '/home/eisl/Documents/Test.txt', mode 'r' at 0x7f7d5546b0c0>, 'application/octet-stream'), 'md5': ('', 'a8b3b313e7685d4c400c0816f3b4c8f4')}>
sendIng a read()able
reply: 'HTTP/1.1 201 Created\r\n'
header: Date: Thu, 05 Jan 2017 13:28:56 GMT
header: X-ID: 525790647848
header: Content-Type: text/xml
header: Transfer-Encoding: chunked
header: Server: Jetty(8.1.21.v20160908)
header: Strict-Transport-Security: max-age= 31536000
DEBUG:requests.packages.urllib3.connectionpool:https://www.jottacloud.com:443 "POST /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents/Test.txt?cphash=a8b3b313e7685d4c400c0816f3b4c8f4 HTTP/1.1" 201 None
uploading 1 new files: [●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●] 1/1 - 00:00:00
Network upload speed 85.788B/sec
DEBUG:jottalib.jottacloud:_encode_filename_to_filesystem('/home/eisl/Documents/NoMachine')
DEBUG:jottalib.jottacloud:_decode_filename_to_unicode('/home/eisl/Documents/NoMachine')
DEBUG:jottalib.jottacloud:compare walk: u'/home/eisl/Documents/NoMachine' -> 0 files
DEBUG:jottalib.jottacloud:get_jottapath u'/home/eisl/Documents' u'/home/eisl/Documents/NoMachine' u'/Jotta/Archive/EISL01'
DEBUG:jottalib.jottacloud:_decode_filename_to_unicode(u'/Jotta/Archive/EISL01/Documents/NoMachine')
DEBUG:jottalib.jottacloud:compare jottapath: u'/Jotta/Archive/EISL01/Documents/NoMachine'
DEBUG:jottalib.jottacloud:filelist u'/Jotta/Archive/EISL01/Documents/NoMachine'
DEBUG:jottalib.JFS:getting url: 'https://www.jottacloud.com/jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents/NoMachine', extra_headers=None, params=None
send: 'GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents/NoMachine HTTP/1.1\r\nHost: www.jottacloud.com\r\nAccept-Encoding: identity\r\nX-JottaAPIVersion: 2.2\r\nUser-Agent: jottalib 0.5.1 (https://github.com/havardgulldahl/jottalib)\r\nAuthorization: Basic XXXX\r\n\r\n'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Date: Thu, 05 Jan 2017 13:28:57 GMT
header: Accept-Ranges: bytes
header: X-ID: 774401734012
header: Content-Type: text/xml
header: Transfer-Encoding: chunked
header: Server: Jetty(8.1.21.v20160908)
header: Strict-Transport-Security: max-age= 31536000
DEBUG:requests.packages.urllib3.connectionpool:https://www.jottacloud.com:443 "GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents/NoMachine HTTP/1.1" 404 None
DEBUG:root:folderlist u'/Jotta/Archive/EISL01/Documents/NoMachine'
DEBUG:jottalib.JFS:getting url: 'https://www.jottacloud.com/jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents/NoMachine', extra_headers=None, params=None
send: 'GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents/NoMachine HTTP/1.1\r\nHost: www.jottacloud.com\r\nAccept-Encoding: identity\r\nX-JottaAPIVersion: 2.2\r\nUser-Agent: jottalib 0.5.1 (https://github.com/havardgulldahl/jottalib)\r\nAuthorization: Basic XXXX\r\n\r\n'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Date: Thu, 05 Jan 2017 13:28:57 GMT
header: Accept-Ranges: bytes
header: X-ID: 666925415241
header: Content-Type: text/xml
header: Transfer-Encoding: chunked
header: Server: Jetty(8.1.21.v20160908)
header: Strict-Transport-Security: max-age= 31536000
DEBUG:requests.packages.urllib3.connectionpool:https://www.jottacloud.com:443 "GET /jfs/eigil.sletbak@gmail.com/Jotta/Archive/EISL01/Documents/NoMachine HTTP/1.1" 404 None
DEBUG:jottalib.jottacloud:--cloudfiles: set([])
DEBUG:jottalib.jottacloud:--localfiles: set([])
DEBUG:jottalib.jottacloud:--cloudfolders: set([])
Entering dir: /home/eisl/Documents/NoMachine
Finished syncing 1 files to JottaCloud, no errors. yay!
The text was updated successfully, but these errors were encountered: