Downloads to test with

It fails for me too.

❯ ../ant file download 304b74b76536e89910262ade48020a4ab2724bdaf353f3b42de625fee2477228 .
Logging to directory: "/home/daniel/.local/share/autonomi/client/logs/log_2025-02-15_13-52-26"
🔗 Connected to the Network                                                                                                                                                                                         
Error: 
   0: Failed to fetch data from address
   1: Failed to deserialize
   2: invalid value: integer `73`, expected variant index 0 <= i < 1

Location:
   ant-cli/src/actions/download.rs:94

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Also, I’m not being charged for uploads. I uploaded 420Mb and didn’t get charged at all.

2 Likes

How did you manage to upload 420 MB? I can’t get enough quotes for files that large.

Every time I upload anything with -p flag, it says “Uploading public archive referencing 1 files”.
And when uploading wihtout -p, it says “Uploading private archive referencing 1 files.”

What is this archive? New name for datamap? And a wild guess: Could it be that the public datamap has somehow vanished from the network, but you have local copy of it with your AntTP?

Just an example of the output when I upload something with -p:

toivo@toivo-HP-ProBook-450-G5:~$ time ant file upload -p Jokukuva_crop_2.JPG
Logging to directory: "/home/toivo/.local/share/autonomi/client/logs/log_2025-02-15_21-38-23"
🔗 Connected to the Network                                                     Enter password to decrypt wallet:
Uploading data to network...
Encrypting file: "Jokukuva_crop_2.JPG"..
Successfully encrypted file: "Jokukuva_crop_2.JPG"
Paying for 4 chunks..
Uploading file: Jokukuva_crop_2.JPG (4 chunks)..
Successfully uploaded Jokukuva_crop_2.JPG (4 chunks) to: f0012e4ec0be24372766c8394a26ab5ac5526eba9c637ac1a4b3a9a1dbdc3890
Upload of 1 files completed in 27.772250661s
Uploading public archive referencing 1 files
Successfully uploaded: Jokukuva_crop_2.JPG
At address: 91bf4ce535af2346729bb5326a5b8717301a4b3d2952bae26acc178568176bac
Number of chunks uploaded: 1
Number of chunks already paid/uploaded: 7
Total cost: 16766722680 AttoTokens

real	1m18.572s
user	0m24.579s
sys	0m10.220s

An archive is a container for files, much like a directory/folder.

You will have an XOR address for each archive, as well as each file within it.

For BegBlag:

  • Archive: a0f6fa2b08e868060fe6e57018e3f73294821feaf3fdcf9cd636ac3d11e7e2ac
  • File: 304b74b76536e89910262ade48020a4ab2724bdaf353f3b42de625fee2477228

For AntTP, it just detects whether the address is an archive or a file, but the CLI may be expecting an archive in all cases.

Indeed, plugging in the archive XOR works fine for me:

paul@mini-vader:/tmp$ ant file download a0f6fa2b08e868060fe6e57018e3f73294821feaf3fdcf9cd636ac3d11e7e2ac .
Logging to directory: "/home/paul/.local/share/autonomi/client/logs/log_2025-02-15_19-53-34"
🔗 Connected to the Network                                                                                                                                                             Fetching file: "BegBlag.mp3"...
Successfully downloaded data at: a0f6fa2b08e868060fe6e57018e3f73294821feaf3fdcf9cd636ac3d11e7e2ac

So, it just looks like the CLI is expecting archive addresses, not file addresses.

4 Likes

Do you know if there is a way to specifically list the content of an archive (with the current cli)?

Report that as a bug to the devs?

1 Like

Me too! Good job finding that out :+1:

And phew… I was so close to scream about data loss. :scream:

So, I guess @aatonnomicc has published the archive address in one place, and file address in another? Otherwise I don’t see how I could have first managed to download it several times, and then not? (Not trying to blame him about anything, of course, just trying to track down the situation.)

1 Like

yes. the archive address was published in the very first post of this thread, the other one later in a list.

1 Like

I get a new error when trying upload an archive


Successfully encrypted file: "uploads/xone/xone/images/dead.gif"
Successfully encrypted file: "uploads/xone/xone/images/james-cook.JPG"
Successfully encrypted file: "uploads/xone/xone/sounds/BegBlagandSteal.mp3"
Paying for 61 chunks..
Error: 
   0: Failed to upload file
   1: Failed to upload file
   2: Error occurred during payment.
   3: Cost error: MarketPriceError(ContractError(TransportError(ErrorResp(ErrorPayload { code: -32000, message: "execution reverted", data: None }))))
   4: Market price error: ContractError(TransportError(ErrorResp(ErrorPayload { code: -32000, message: "execution reverted", data: None })))
   5: server returned an error response: error code -32000: execution reverted
1 Like

In the API you can list the contents of an archive, yes.

I suspect the CLI just needs a bit more love by the team to give more options here.

2 Likes

I just managed to upload a small file without probelms.

3 Likes

I attempted to upload a 403 MB file using:

./ant file upload --public /home/daniel/Downloads/cricket-bowling-150fps-1200.avi

The upload process began normally, including encryption and chunk payment:

Logging to directory: "/home/daniel/.local/share/autonomi/client/logs/log_2025-02-15_22-34-05"
🔗 Connected to the Network                                                                                                                                                                                         Uploading data to network...
Encrypting file: "/home/daniel/Downloads/cricket-bowling-150fps-1200.avi"..
Successfully encrypted file: "/home/daniel/Downloads/cricket-bowling-150fps-1200.avi"
Paying for 98 chunks..
Uploading file: /home/daniel/Downloads/cricket-bowling-150fps-1200.avi (98 chunks)..

After 28 minutes (~1,709 seconds), the process completed with the following error:

Upload of 1 files completed in 1709.35344964s
Error uploading file /home/daniel/Downloads/cricket-bowling-150fps-1200.avi: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("504d56bcf8110f0ba764a909eebbfb8a2ec211751039e9c71df2bcd0c63537e5" - 5d11326a8c9022d056e7c99d000afb4a25af4de0168c756ae30eb63febe47372))))
Error: 
   0: Failed to upload file
   1: Failed to upload file
   2: A network error occurred.
   3: Failed to verify the ChunkProof with the provided quorum

For context, the file I used came from this link:
Cricket Bowling 150fps 1200.avi

2 Likes

thanks. I guess I’ll have to get playing with those Autonomi Python tutorials. :slight_smile:

2 Likes

After 52 mins of attempting a 405Mb total upload, I got these messages



Successfully uploaded ./DougSahm/d2t05_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3 (4 chunks) to: d0e42604d2e16fe2b626b2d18011705a6c7951c3815adc411705882a31836975
Upload of 31 files completed in 3178.120285154s
Error uploading file ./DougSahm/d2t07_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("000f65d8fd2682ed9fc59e56292b72db828708ce9279e2335878b293f3b25671" - e9eced83e9241234bb5a6fbe20a6698c39528a6084e492ff261fe1051fbaf5c9))))
Error uploading file ./DougSahm/d2t06_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("ac9a1a7ba3f460a285425d267526e44d334628cfce73985bfcd3ce5e11b3f09e" - 8ef6f8d98b17781de7d5aab2607fb59c24334df08386a0426b16948d9b6cefec))))
Error uploading file ./DougSahm/d2t10_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("3c01b98ae14ee12da6eea0f727ae8dff82c604d875585b1da1e03bb60c4dee67" - c71b269b6b53260aad2bfaa1619eb27f348b656ed3ad40bf7f5f79dab7c85361))))
Error uploading file ./DougSahm/d1t12_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("ff725f6bafaa017cb662151d651c107d969358ee49413284cc22246e88382e4b" - 7fa869c77aed49e1c84fbb6a5f387e496f2c698bdb1e3bf3e287266674de099f))))
Error uploading file ./DougSahm/d2t11_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("8030fb3bfa2543bbfae6e38ee4f93f7336cb293a7b15791d57f816910887a8d0" - 7bae2ec996c0b5cc17d4eded91cb0ab5c7fef4dac3b2161d0870524c720b5c56))))
Error uploading file ./DougSahm/Thanksgiving Jam setlist.txt: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("386920cce345a94fa0e0ea85008c52ef3f60ae65565d5389bf9e66d830bc5ccf" - 0c6ed3c7647a8a24cb08853970914c45a11b95ac6eed7e314b4a384727c3042f))))
Error uploading file ./DougSahm/d1t06_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("98672a4831d07986e9ae0b119122d50d06dcb86c048373b135117dbeb81ba162" - 9a3d223b86b4bf47790228180f9e102e051f4cb05e399d3b68126b5fc54c0022))))
Error uploading file ./DougSahm/d2t08_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("30edb006240c6e12fb172d2240a8ad42ca7f32243eac6d49b86f9ad75b5a81e9" - c366c6030340640cb66c626f878e1acc70fe453a41691784d685c7378cf758c8))))
Error uploading file ./DougSahm/thanksgivingJam.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("95ee647c813f3950c8f16678ed1430b16c99e234903e2b817db34e4d76e2131d" - b117c157831fb429a2f4eb88b52e85a42fa11b269351e399129abf383ea0a746))))
Error uploading file ./DougSahm/d1t13_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("d35d26f332f8e06932f14e175b36b74d5f49d64cd5ccbcab30e9ea5e19c83a16" - 2135c1f4e76636aa88b7336cac230bbb1701c2c641d33faef02d2a1d2ce93587))))
Error uploading file ./DougSahm/d1t08_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("4fb7c3f0df6a58617ea87e50945300c677905e5d8b4613cc9234b9b3458afdd1" - c75a9520ae76794fdf9eb16b0b0f71d74acbadd66573e5250ca66cb78cd54a9b))))
Error uploading file ./DougSahm/d1t03_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("a7b5c962a0d16915531e67754bbc0e46e31c18d4224336fb548939c7070b7d73" - 92bb45d74f1e9b6827aeafa116b148175ba5df4deaa519527f3dbe636b89fdcc))))
Error uploading file ./DougSahm/d2t01_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("fc0175adb8f57149cc993455161ce2408fd050b70c863b981bcb21a468d7ad73" - 8f8826937166e9a2f7c33e55096ea6d6aa6415b40de6152c93994e4e64b461d5))))
Error uploading file ./DougSahm/d2t04_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("0473c3a698e277d660d60f9061245dbf7236924422bc676cd3ad7ffa24976c86" - 7ea2a7c1c3925f05a1997531e9c29904474195ac97b444ee7da61ed4eb984309))))
Error uploading file ./DougSahm/d1t09_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("1e686ce972fd7d979c2fc03cda2fa1a9c03177a9d13f9c7b2368cd87d180cf29" - 0df64a48ef34def8d20656d5856baad9c20f0cee7d3222db880d3fc177707e58))))
Error uploading file ./DougSahm/d1t14_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("5e5b2a4d749263e76d35a1e63a1d11e76f48ed911c29380d0eb0801efad8c7c8" - db00df7a30d6d69b1dab269c6879356ad07ba4bb57226d87a608ee0b0eed534a))))
Error uploading file ./DougSahm/d1t01_dougsahm_leonrussell_jerrygarcia_thanksgivingjam_1972-11-23.mp3: PutError(Network(FailedToVerifyChunkProof(NetworkAddress::RecordKey("eb9dfe28ae3ef6dfb70c09ec506bef88b5dc8d29f6610efabcecacaa7320cf14" - c333ae46a790e658de629291df5c1664ef1142d1a504ee64835a153dec2e0aba))))
Error: 
   0: Failed to upload file
   1: Failed to upload file
   2: A network error occurred.
   3: Failed to verify the ChunkProof with the provided quorum

Location:
   ant-cli/src/commands/file.rs:70

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

real	52m58.511s
user	13m30.597s
sys	7m37.415s

Which was a shame and now you are all missing out on this.