Iโve found something odd. I started my random data file uploading script last night and itโs apparently uploaded a whole load of 1MB files in batches of 10 with a file containing the md5sums of each run. However, itโs reporting that for all except the first 11 files they are the same file but not going to upload them again! They are verifiably not the same file and they have diffferent addresses.
For all runs apart from the first one it reports:-
Files upload attempted previously, verifying 41 chunks
All files were already uploaded and verified
The only change I made to the script was to remove the โ-cโ from the safe files upload command and add the โ-pโ to make the files public.
Is it because the files in each run all have the same name as previous runs?
Or maybe itโs something to do with making the files public?
But the files in each run have different addresses to previous ones so Iโm baffled.
Iโll try it without the โ-pโ option and see if that makes a difference and then Iโll try again with something to make each file have a different name.
This is the start of the log showing the issue:-
Run 1
Mon 8 Jan 00:09:16 UTC 2024
Logging to directory: "/home/safe/.local/share/safe/client/logs/log_2024-01-08_00-09-16"
Built with git version: ee245b6 / main / ee245b6
Instantiating a SAFE client...
Trying to fetch the bootstrap peers from https://sn-testnet.s3.eu-west-2.amazonaws.com/network-contacts
Connecting to the network with 47 peers:
"/home/safe/safe_upload_stressor/temp" will be made public and linkable
Starting to chunk "/home/safe/safe_upload_stressor/temp" now.
Uploading 41 chunks
**************************************
* Uploaded Files *
**************************************
"1MB_4" a24eebfe068c85c80d408a3702a03986a677e7321f02ff031ee09cba8daa6b41
"1MB_10" 5f7aadeca72c4cc819dc2687244dc3f626de09196d5e1abd70f318437d0eef72
"1MB_7" b01d3ff2d0f4478dd1e1980ff44e773e514e7fc39045d680f3196241f227bf06
"1MB_3" c2993abc2f7a82d02d6666041966fd0726e8455c61234d44cd680818d84ae6c5
"1MB_6" da63df59c6e4eca9620de8a202f7fe9019158aa5197f3703f9f1d0a7ccc3fdcf
"1MB_9" e78bd40b980fa9e8342908d906dd49777437bce951e64afcab4737e3d3a1124f
"1MB_5" 389619fd60a666b90d9c1a17a280922e0fcec899b46bbb60c8b89adde5f94ac5
"1MB_2" 7cbe43c3e528d975321005182da849faec59d32e1c026043de141cf858946add
"1MB_8" eb98cc445b5feb44f8da28552bfef42c8d87bf7bc25c08543a6d0221077312d4
"1MB_1" 69101715e1a803b93f1fb32a00c9597b9c1d0f2d9bba462a8eba50dc40624abd
"md5sums_10x1MB" 2ae8ede7218f8afe7703983e80014d9a4e4985926379b3c29cc5aef096bb5754
Among 41 chunks, found 0 already existed in network, uploaded the leftover 41 chunks in 1 minutes 3 seconds
**************************************
* Payment Details *
**************************************
Made payment of 0.000007260 for 41 chunks
Made payment of 0.000001264 for royalties fees
New wallet balance: 9.999991347
--
Run 2
Mon 8 Jan 00:10:20 UTC 2024
Logging to directory: "/home/safe/.local/share/safe/client/logs/log_2024-01-08_00-10-20"
Built with git version: ee245b6 / main / ee245b6
Instantiating a SAFE client...
Trying to fetch the bootstrap peers from https://sn-testnet.s3.eu-west-2.amazonaws.com/network-contacts
Connecting to the network with 47 peers:
"/home/safe/safe_upload_stressor/temp" will be made public and linkable
Starting to chunk "/home/safe/safe_upload_stressor/temp" now.
Starting to chunk "/home/safe/safe_upload_stressor/temp" now.
Files upload attempted previously, verifying 41 chunks
All files were already uploaded and verified
**************************************
* Uploaded Files *
**************************************
"1MB_7" 96732b439d8241dbf389d570b97c99736bb1c9785e82a0778a3c0293bd22c3cc
"1MB_1" 58c248bdf17a9d8922c72199b55f6b7f41db740558121256a367be9db8af7602
"1MB_10" 7a56bae484fe07065d3eec53b979b749cb99ef5e1c96b8dacbc7b3002db2a735
"1MB_5" 24d4dbd8876d8103c95a3cc414a1db6beb1156dcbff5c83543e4927221c43e58
"1MB_6" d523ab2077d2fe1edbeab68c718615ecdb87237b839c6519cb69b97aca54e998
"1MB_8" dac8642ddeff1e6ee09b5e27950dc64f305ccaaf0a1847b9a93b8dfcd36c093f
"1MB_3" 684c7a7a8353c7960baa861256db6c747a6721cd7744295201e884d7571597ad
"1MB_2" 44ddcd76975e2e5e60226f1ad20ae14a1c8d6ec8f84762235df9d11845d92b3f
"1MB_4" 1b7f63cc937deceb0ccb4e4d704ca2515a27bcc994b0030dd11dcbe0c794215b
"1MB_9" 9c52c8bfccd4e68f9f4af39bef4525355ef0a56cd6aa4265f35664e27576c95f
"md5sums_10x1MB" c6ec406edf1df745dc860ff1d7e0e1eeb7bb15752870344cba1f3bcdad27ab37
--
EDIT
Removing the โ-pโ didnโt help. The files in Run 2 are still reported as being the same as in Run 1.
โ
EDIT
Itโs the name of the file. It seems that with or without the โ-pโ option if a file has the same name as one previously uploaded it will think itโs the same file again. This looks like a bug to me because the file is verifiably different and has produced a different address. I added something to make each file unique and the script is working correctly now. But I think there is something that needs fixing.
Mon 8 Jan 08:26:24 UTC 2024
Run 1
Mon 8 Jan 08:26:24 UTC 2024
Logging to directory: "/home/safe/.local/share/safe/client/logs/log_2024-01-08_08-26-24"
Built with git version: ee245b6 / main / ee245b6
Instantiating a SAFE client...
Trying to fetch the bootstrap peers from https://sn-testnet.s3.eu-west-2.amazonaws.com/network-contacts
Connecting to the network with 47 peers:
"/home/safe/safe_upload_stressor/temp" will be made public and linkable
Starting to chunk "/home/safe/safe_upload_stressor/temp" now.
Uploading 41 chunks
Retrying failed chunks 4, attempt 0/3...
**************************************
* Uploaded Files *
**************************************
"1_1MB_1" 67bcc22d1fec79c148ba64cf84fccfef22d5b582483d0d69713fa3bf44fd5c87
"1_1MB_4" fa673eebaf1c54e5e17c372d9519500c4552a0f637571ebdfa87c21c01043494
"1_1MB_5" 7fa2eabe0bc4ac502116a1a094b3a8db34ebe18c58c39d8892ee1945bcd69833
"1_1MB_8" 456034a1fbaac1e1e36cd498801e382a4e4f0106c6332db3a8c4efdda6213718
"1_1MB_3" 0c9c21923f77dd0ee41f55a271aa658d7e0ef767887b5e138af6d997ac126eb0
"1_1MB_10" 4cd6e48e4ee04b254562698d6ef69507a5fac166ede912591156beb003f263cf
"1_1MB_2" ee937b0a4253ec783c9a11c5bbcef0a61c236c8eba92d5d61f47847b0c559617
"1_1MB_6" eecde92c60e117c86ca21178723998e7f9de6c7270061476ec77bc4ed1bf1198
"1_md5sums_10x1MB" 451425ef0e66841c8a49d6114dd62778aeb90dfb024d22a9ef9778b74904f77f
"1_1MB_7" e653130f6b8c6300491c802ce595c3e054388ff590d9e66501ab3ff0f8847319
"1_1MB_9" 6c6510e1c665169fede7ff22a963dc0de056d9309b1f6227d1814e1f975059cd
Among 41 chunks, found 0 already existed in network, uploaded the leftover 41 chunks in 1 minutes 39 seconds
**************************************
* Payment Details *
**************************************
Made payment of 0.000007529 for 41 chunks
Made payment of 0.000001309 for royalties fees
New wallet balance: 9.999956330
--
Run 2
Mon 8 Jan 08:28:06 UTC 2024
Logging to directory: "/home/safe/.local/share/safe/client/logs/log_2024-01-08_08-28-06"
Built with git version: ee245b6 / main / ee245b6
Instantiating a SAFE client...
Trying to fetch the bootstrap peers from https://sn-testnet.s3.eu-west-2.amazonaws.com/network-contacts
Connecting to the network with 47 peers:
"/home/safe/safe_upload_stressor/temp" will be made public and linkable
Starting to chunk "/home/safe/safe_upload_stressor/temp" now.
Uploading 41 chunks
**************************************
* Uploaded Files *
**************************************
"2_1MB_8" aab7028f03fa9800b243e99b564440f9b1233c467448e65a4f175afe171ffde8
"2_1MB_3" e0989889124b799f55080f08d5922d08ee3a34daf3d6df5aea273f4b80c5f8f6
"2_1MB_10" dd247e7fa8b531189e603049e20778debf5accb328e97982e23cec0f0914de6f
"2_1MB_2" a1d1c902686665ae35aa2e0112c2fce7e116815af8e89a8d4bb8227e6de6e293
"2_1MB_5" e4839023f87b6ac1fa7451e276701ef926cda02ef5d99d95e48675ccf5359ea2
"2_1MB_1" a4644844cf3befb787759d2575db19a2842ddb0530777c014ba7ca5bd944d5cf
"2_md5sums_10x1MB" 999522bd62a6a5a8c96177d67a693db027474aec052c2b97fe47e867a0b108bf
"2_1MB_4" 68de6b6c8b5af59f3a513384e421e7777aa33ff0e9655df0a63af53e5ec01c13
"2_1MB_9" d27998b5f2e749e9d8d9fa13829f7607f7bc787d80cf4985a29ca22d47f2f1ee
"2_1MB_6" cc21e1106665cfcec792817d09f6fab47ec400812eeb9b9a32f38dfe4cff28d9
"2_1MB_7" 3a671967301b6b40d1354fabdd567eab7db201315407aa0712ad4224a3a91bbf
Among 41 chunks, found 0 already existed in network, uploaded the leftover 41 chunks in 1 minutes 7 seconds
**************************************
* Payment Details *
**************************************
Made payment of 0.000008238 for 41 chunks
Made payment of 0.000001430 for royalties fees
New wallet balance: 9.999946662
--