Skip to content
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

Header MAC doesn't match when downloading encrypted files from vault #9916

Closed
cyberduck opened this issue Apr 12, 2017 · 16 comments
Closed

Header MAC doesn't match when downloading encrypted files from vault #9916

cyberduck opened this issue Apr 12, 2017 · 16 comments
Assignees
Milestone

Comments

@cyberduck
Copy link
Collaborator

cyberduck commented Apr 12, 2017

6829145 created the issue

Thanks to the fixes in [9895] I can now upload to a cryptomator vault on B2 with the latest nightly build. Unfortunately downloads are still failing.

With a small (10MB) file I receive the following error after the download: Transfer incomplete (although the file has been downloaded correctly).

Transfer log:

GET /b2api/v1/b2_authorize_account HTTP/1.1
Authorization: ********
Host: api.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 354
Date: Sat, 15 Apr 2017 11:13:01 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 489
Date: Sat, 15 Apr 2017 11:13:01 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 96
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 473
Date: Sat, 15 Apr 2017 11:13:02 GMT
GET /b2api/v1/b2_download_file_by_id?fileId=4_z7671649c49dc79165ab30f17_f117e83ab7f4bade2_d20170415_m110911_c001_v0001039_t0017 HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Host: f001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
x-bz-file-name: masterkey.cryptomator
x-bz-file-id: 4_z7671649c49dc79165ab30f17_f117e83ab7f4bade2_d20170415_m110911_c001_v0001039_t0017
x-bz-content-sha1: 6cdb7559797625a20a480f4d2048d328725ed936
X-Bz-Upload-Timestamp: 1492254551000
Accept-Ranges: bytes
Content-Type: application/octet-stream
Content-Length: 327
Date: Sat, 15 Apr 2017 11:13:03 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 489
Date: Sat, 15 Apr 2017 11:13:03 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 177
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 1400
Date: Sat, 15 Apr 2017 11:13:03 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 489
Date: Sat, 15 Apr 2017 11:13:04 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 151
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 1045
Date: Sat, 15 Apr 2017 11:13:04 GMT
POST /b2api/v1/b2_get_file_info HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 96
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 480
Date: Sat, 15 Apr 2017 11:13:04 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 489
Date: Sat, 15 Apr 2017 11:13:05 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 151
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 1045
Date: Sat, 15 Apr 2017 11:13:05 GMT
GET /b2api/v1/b2_download_file_by_id?fileId=4_z7671649c49dc79165ab30f17_f112b6a079644b352_d20170415_m110948_c001_v0001039_t0047 HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Host: f001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
x-bz-file-name: d/LQ/WXTDPFAMFNQPB424A3V23F3TNIOTI5/TON5DBWILDOXGVFQMOJ3SF42NZ26AJQFEXXNW5I=
x-bz-file-id: 4_z7671649c49dc79165ab30f17_f112b6a079644b352_d20170415_m110948_c001_v0001039_t0047
x-bz-content-sha1: 8e66c9267aff82a2834ec2dd35e89d8332c0f107
X-Bz-Upload-Timestamp: 1492254588000
Accept-Ranges: bytes
Content-Type: application/octet-stream
Content-Length: 10014776
Date: Sat, 15 Apr 2017 11:13:05 GMT

A large (300MB) file doesn't even start downloading: Unknown runtime application error.

Transfer log:

GET /b2api/v1/b2_authorize_account HTTP/1.1
Authorization: ********
Host: api.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 354
Date: Sat, 15 Apr 2017 11:15:08 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 489
Date: Sat, 15 Apr 2017 11:15:08 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 96
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 473
Date: Sat, 15 Apr 2017 11:15:08 GMT
GET /b2api/v1/b2_download_file_by_id?fileId=4_z7671649c49dc79165ab30f17_f117e83ab7f4bade2_d20170415_m110911_c001_v0001039_t0017 HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Host: f001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
x-bz-file-name: masterkey.cryptomator
x-bz-file-id: 4_z7671649c49dc79165ab30f17_f117e83ab7f4bade2_d20170415_m110911_c001_v0001039_t0017
x-bz-content-sha1: 6cdb7559797625a20a480f4d2048d328725ed936
X-Bz-Upload-Timestamp: 1492254551000
Accept-Ranges: bytes
Content-Type: application/octet-stream
Content-Length: 327
Date: Sat, 15 Apr 2017 11:15:10 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 489
Date: Sat, 15 Apr 2017 11:15:10 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 177
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 1400
Date: Sat, 15 Apr 2017 11:15:10 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 489
Date: Sat, 15 Apr 2017 11:15:10 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 151
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 1129
Date: Sat, 15 Apr 2017 11:15:11 GMT
POST /b2api/v1/b2_get_file_info HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 96
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 445
Date: Sat, 15 Apr 2017 11:15:11 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 489
Date: Sat, 15 Apr 2017 11:15:11 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 151
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 1129
Date: Sat, 15 Apr 2017 11:15:11 GMT
GET /b2api/v1/b2_download_file_by_id?fileId=4_z7671649c49dc79165ab30f17_f20083e32277b0542_d20170415_m111007_c001_v0001015_t0000 HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Host: f001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23927 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
x-bz-file-name: d/LQ/WXTDPFAMFNQPB424A3V23F3TNIOTI5/DXUCNPKHPHTOJ2FVQGBLHWD5FZFGHK2LOZVFLDYM
x-bz-file-id: 4_z7671649c49dc79165ab30f17_f20083e32277b0542_d20170415_m111007_c001_v0001015_t0000
x-bz-content-sha1: none
X-Bz-Upload-Timestamp: 1492254607000
Accept-Ranges: bytes
Content-Type: application/octet-stream
Content-Length: 300000000
Date: Sat, 15 Apr 2017 11:15:12 GMT

The cyberduck.log file only contains the following entries:

2017-04-15 13:09:30,317 [background-15] ERROR ch.cyberduck.core.vault.DecryptingListProgressListener - Failure decrypting Path{path='/cdenctest2/d/LQ/WXTDPFAMFNQPB424A3V23F3TNIOTI5/.bzEmpty', type=[file]}. Failure to decrypt due to missing pattern match for ^0?(([A-Z2-7]{8})*[A-Z2-7=]{8}).
2017-04-15 13:09:57,070 [background-17] ERROR ch.cyberduck.core.vault.DecryptingListProgressListener - Failure decrypting Path{path='/cdenctest2/d/LQ/WXTDPFAMFNQPB424A3V23F3TNIOTI5/.bzEmpty', type=[file]}. Failure to decrypt due to missing pattern match for ^0?(([A-Z2-7]{8})*[A-Z2-7=]{8}).
2017-04-15 13:11:45,791 [background-19] ERROR ch.cyberduck.core.vault.DecryptingListProgressListener - Failure decrypting Path{path='/cdenctest2/d/LQ/WXTDPFAMFNQPB424A3V23F3TNIOTI5/.bzEmpty', type=[file]}. Failure to decrypt due to missing pattern match for ^0?(([A-Z2-7]{8})*[A-Z2-7=]{8}).
2017-04-15 13:12:04,463 [background-20] ERROR ch.cyberduck.core.vault.DecryptingListProgressListener - Failure decrypting Path{path='/cdenctest2/d/LQ/WXTDPFAMFNQPB424A3V23F3TNIOTI5/.bzEmpty', type=[file]}. Failure to decrypt due to missing pattern match for ^0?(([A-Z2-7]{8})*[A-Z2-7=]{8}).
2017-04-15 13:12:51,768 [background-6] ERROR ch.cyberduck.core.vault.DecryptingListProgressListener - Failure decrypting Path{path='/cdenctest2/d/LQ/WXTDPFAMFNQPB424A3V23F3TNIOTI5/.bzEmpty', type=[file]}. Failure to decrypt due to missing pattern match for ^0?(([A-Z2-7]{8})*[A-Z2-7=]{8}).
2017-04-15 13:15:00,071 [background-6] ERROR ch.cyberduck.core.vault.DecryptingListProgressListener - Failure decrypting Path{path='/cdenctest2/d/LQ/WXTDPFAMFNQPB424A3V23F3TNIOTI5/.bzEmpty', type=[file]}. Failure to decrypt due to missing pattern match for ^0?(([A-Z2-7]{8})*[A-Z2-7=]{8}).

Could you please give cryptomator on B2 another look? Thanks!

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 12, 2017

@dkocher commented

In be8a103.

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 12, 2017

@dkocher commented

Please attach the file {{cyberduck.log}} in the application support directory to have a look at the unhandled application error.

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 12, 2017

6829145 commented

Replying to [comment:3 dkocher]:

Please attach the file {{cyberduck.log}} in the application support directory to have a look at the unhandled application error.

My cyberduck.log file is empty, but I can share the transfer window log:

GET /b2api/v1/b2_authorize_account HTTP/1.1
Authorization: ********
Host: api.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23888 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 354
Date: Wed, 12 Apr 2017 10:20:22 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 96
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23888 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 473
Date: Wed, 12 Apr 2017 10:20:23 GMT
GET /b2api/v1/b2_download_file_by_id?fileId=4_z960174aca96c69165ab30f17_f117e83ab7f3d1846_d20170412_m101234_c001_v0001039_t0009 HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Host: f001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23888 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
x-bz-file-name: masterkey.cryptomator
x-bz-file-id: 4_z960174aca96c69165ab30f17_f117e83ab7f3d1846_d20170412_m101234_c001_v0001039_t0009
x-bz-content-sha1: 3ed95ecac4fb32aca84a86e320d54b56e06561dc
X-Bz-Upload-Timestamp: 1491991954000
Accept-Ranges: bytes
Content-Type: application/octet-stream
Content-Length: 327
Date: Wed, 12 Apr 2017 10:20:24 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 177
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23888 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 502
Date: Wed, 12 Apr 2017 10:20:24 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 151
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23888 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 1009
Date: Wed, 12 Apr 2017 10:20:24 GMT
POST /b2api/v1/b2_get_file_info HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 96
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23888 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 445
Date: Wed, 12 Apr 2017 10:20:25 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 151
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23888 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 1009
Date: Wed, 12 Apr 2017 10:20:25 GMT
GET /b2api/v1/b2_download_file_by_id?fileId=4_z960174aca96c69165ab30f17_f201c073b5f174842_d20170412_m101423_c001_v0001038_t0050 HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Host: f001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.23888 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
x-bz-file-name: d/QL/BIKKFO2VCLF4U2QSS6DL5SZPR4LNBG/AHGBFGPGH5W2C4WCI2U6IHDIEIRT6MXP7EGD2CWE
x-bz-file-id: 4_z960174aca96c69165ab30f17_f201c073b5f174842_d20170412_m101423_c001_v0001038_t0050
x-bz-content-sha1: none
X-Bz-Upload-Timestamp: 1491992063000
Accept-Ranges: bytes
Content-Type: application/octet-stream
Content-Length: 300000000
Date: Wed, 12 Apr 2017 10:20:25 GMT

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 15, 2017

6829145 commented

Unfortunately there are still download issues with the latest nightly build (6.0.0.23927), I have updated the error messages and added the transfer and error logs from a fresh test.

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 15, 2017

@dkocher commented

Can you confirm you no longer receive the Unknown runtime application error. The reamaining issue is then that the transfer length is unknown and the download marked as Incomplete when finished?

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 15, 2017

6829145 commented

Replying to [comment:6 dkocher]:

Can you confirm you no longer receive the Unknown runtime application error. The reamaining issue is then that the transfer length is unknown and the download marked as Incomplete when finished?

The behavior with the large file download has not changed, I still see the Unknown runtime application error before the download begins. I have provided a fresh set of logs from the latest build, tested with a new cryptomator bucket and the same file uploaded with the newest build.

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 15, 2017

@dkocher commented

Fix invalid size for download from vault in 08689aa.

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 19, 2017

6829145 commented

Unfortunately the behavior with large files still hasn't changed (tested with 6.0.0.23965), I still receive the Unknown runtime application error.

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 20, 2017

@ylangisc commented

I'm now able to reproduce the issue with large files:

Caused by: ch.cyberduck.core.exception.BackgroundException{detail='Unknown runtime application error.', cause='org.cryptomator.cryptolib.api.AuthenticationFailedException: Header MAC doesn't match.', message='Error'}
	at ch.cyberduck.core.AbstractExceptionMappingService.wrap(AbstractExceptionMappingService.java:112)
	at ch.cyberduck.core.worker.DefaultExceptionMappingService.map(DefaultExceptionMappingService.java:41)
	at ch.cyberduck.core.worker.ConcurrentTransferWorker.await(ConcurrentTransferWorker.java:132)
	at ch.cyberduck.core.worker.AbstractTransferWorker.run(AbstractTransferWorker.java:211)
	at ch.cyberduck.core.worker.AbstractTransferWorker.run(AbstractTransferWorker.java:62)
	at ch.cyberduck.core.threading.TransferWorkerBackgroundAction.run(TransferWorkerBackgroundAction.java:69)
	at ch.cyberduck.core.threading.SessionBackgroundAction.run(SessionBackgroundAction.java:121)
	at ch.cyberduck.core.threading.SessionBackgroundAction$1.call(SessionBackgroundAction.java:104)
	at ch.cyberduck.core.threading.DefaultRetryCallable.call(DefaultRetryCallable.java:48)
	at ch.cyberduck.core.threading.SessionBackgroundAction.call(SessionBackgroundAction.java:106)
	at ch.cyberduck.core.threading.BackgroundCallable.run(BackgroundCallable.java:100)
	at ch.cyberduck.core.threading.BackgroundCallable.call(BackgroundCallable.java:59)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)
	at ch.cyberduck.core.threading.NamedThreadFactory$1.run(NamedThreadFactory.java:53)
	at java.lang.Thread.run(Thread.java:955)
Caused by: org.cryptomator.cryptolib.api.AuthenticationFailedException: Header MAC doesn't match.
	at org.cryptomator.cryptolib.v1.FileHeaderCryptorImpl.decryptHeader(FileHeaderCryptorImpl.java:113)
	at ch.cyberduck.core.cryptomator.CryptoReadFeature.read(CryptoReadFeature.java:55)
	at ch.cyberduck.core.shared.DefaultDownloadFeature.download(DefaultDownloadFeature.java:46)
	at ch.cyberduck.core.cryptomator.CryptoDownloadFeature.download(CryptoDownloadFeature.java:45)
	at ch.cyberduck.core.vault.registry.VaultRegistryDownloadFeature.download(VaultRegistryDownloadFeature.java:43)
	at ch.cyberduck.core.transfer.DownloadTransfer.transfer(DownloadTransfer.java:270)
	at ch.cyberduck.core.worker.AbstractTransferWorker$3.call(AbstractTransferWorker.java:377)
	at ch.cyberduck.core.worker.AbstractTransferWorker$3.call(AbstractTransferWorker.java:365)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:512)
	... 5 more

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 22, 2017

@dkocher commented

Fixed error reporting to include cause in fe8735c.

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 24, 2017

@dkocher commented

In 7b63055.

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 26, 2017

6829145 commented

Large file downloads are still broken. Transfers now fail after the first 100 MB with the error message: Authentication of chunk 3200 failed.

POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.24323 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 723
Date: Wed, 26 Apr 2017 13:20:46 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 96
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.24323 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 473
Date: Wed, 26 Apr 2017 13:20:46 GMT
GET /b2api/v1/b2_download_file_by_id?fileId=4_ze681243c696ca9a65ab30f17_f102bc85331da523e_d20170426_m131433_c001_v0001039_t0005 HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Host: f001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.24323 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
x-bz-file-name: masterkey.cryptomator
x-bz-file-id: 4_ze681243c696ca9a65ab30f17_f102bc85331da523e_d20170426_m131433_c001_v0001039_t0005
x-bz-content-sha1: 3e869b408f536065eac58710b592e4a847c8df06
X-Bz-Upload-Timestamp: 1493212473000
Accept-Ranges: bytes
Content-Type: application/octet-stream
Content-Length: 327
Date: Wed, 26 Apr 2017 13:20:48 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.24323 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 723
Date: Wed, 26 Apr 2017 13:20:48 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 177
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.24323 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 1400
Date: Wed, 26 Apr 2017 13:20:48 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.24323 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 723
Date: Wed, 26 Apr 2017 13:20:48 GMT
POST /b2api/v1/b2_list_file_versions HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 151
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.24323 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 1009
Date: Wed, 26 Apr 2017 13:20:48 GMT
POST /b2api/v1/b2_list_buckets HTTP/1.1
Authorization: ********
Content-Type: application/x-www-form-urlencoded
Content-Length: 28
Host: api001.backblazeb2.com
Connection: Keep-Alive
User-Agent: Cyberduck/6.0.0.24323 (Windows 10/10.0) (x86)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 O

@cyberduck
Copy link
Collaborator Author

cyberduck commented Apr 27, 2017

@dkocher commented

Regression in 39031.

@cyberduck
Copy link
Collaborator Author

cyberduck commented May 1, 2017

@dkocher commented

In c1037c3.

@cyberduck
Copy link
Collaborator Author

cyberduck commented May 3, 2017

6829145 commented

I can confirm that both my test cases now work perfectly. Thanks a lot for your efforts!

@cyberduck
Copy link
Collaborator Author

cyberduck commented May 3, 2017

@dkocher commented

Replying to [comment:19 ftischhauser]:

I can confirm that both my test cases now work perfectly. Thanks a lot for your efforts!
Thanks for your testing and feedback! Please make sure to update to the latest build available which fixes issues with moving and deleting files in vaults.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants