For IIRC you just download and it should download them all. There is a win bug mind you that is being crushed as we speak.
Yes, just do
safe --peer /ip4/165.227.229.166/tcp/36185/p2p/12D3KooWAccWTq3mcRziVbAwdr9NHhicKccooJfmmtuVaQ4MEEnR files download
shall get your uploaded file back, as long as there is correct meta_data files within the client\uploaded_files
folder (shall bearing only hex string)
Do make sure old meta_data files are removed, as the new client using the different naming (to fix the windows bug)
Remove-Item -Recurse -Force "C:\Users\gggg\AppData\Roaming\safe"
Remove-Item : Cannot find path 'C:\Users\gggg\AppData\Roaming\safe' because it does not exist.
At line:1 char:2
+ Remove-Item -Recurse -Force "C:\Users\gggg\AppData\Roaming\safe"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\gggg\AppData\Roaming\safe:String) [Remove-Item], I
temNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
Do you mean manually delete the contents of the Client
folder?
[quote=“RewardNet [04/09/23 Testnet] [Offline], post:208, topic:38625”]
Try rmdir C:\Users\gggg\AppData\Roaming\safe -r -Force
[/quote]
PS C:\Users\gggg> rmdir C:\Users\gggg\AppData\Roaming\safe -r -Force
rmdir : Cannot find path 'C:\Users\gggg\AppData\Roaming\safe' because it does not exist.
At line:1 char:1
+ rmdir C:\Users\gggg\AppData\Roaming\safe -r -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\gggg\AppData\Roaming\safe:String) [Remove-Item], I
temNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
In both cases it does not work.
It looks like you don’t have that directory. What was your original problem? You are unable to get tokens from the faucet?
Is it currently possible to download a single private file?
I think this is what we’re all asking about. If so, what would be the syntax, and where would you find the xor address?
Yes.
For Windows, have to use the latest client (0.86.97)
just use
safe --peer /ip4/165.227.229.166/tcp/36185/p2p/12D3KooWAccWTq3mcRziVbAwdr9NHhicKccooJfmmtuVaQ4MEEnR files download
no need an xor address
.
But if you insist, the xor address will be printed out when upload (with the latest client as well)
I had such a problem:
Continuing the discussion from NewYearNewNet [04/01/2024 Testnet]:
qi_ma recommended clearing the Client
folder but there was a problem with deleting files:
Then you wrote that I should enter my username gggg, but that did not help and there was still an error:
Subsequent command suggestions from you and JPL did not help and indicated that the directory did not exist.
Finally, I checked the client
folder, but it turned out that the entire safe
folder had been deleted.
And now I remembered that this was already the case in previous tests, that the command:
rmdir /s C:\Users\<username>\AppData\Roaming\safe
showed an error, and when I checked the contents of the folder, it was deleted.
I think this should be checked because such a situation confuses the tester and wastes time.
The confusion here is that your answer/example is to download all uploaded files, whereas we are asking how to download a single file.
Where would you get the xor address if you didn’t capture it from the terminal output?
there shall be files created under the uploaded_files
folder, and the file_name is the hex string of the xor address you need.
(however, you need to figure out which original file it is for)
once got the xor address, you can use the following cmd to download it back specificly
safe --peer /ip4/165.227.229.166/tcp/36185/p2p/12D3KooWAccWTq3mcRziVbAwdr9NHhicKccooJfmmtuVaQ4MEEnR files download <new_file_name> <hex_address_string>
Thanks, I thought someone tried that and it didn’t work but maybe they didn’t get the xor address from there. Thanks for confirming it should work (and all your help!).
it didn’t work for Windows previously due to some bug.
but shall now be resolved with the latest client
Hmm, sorry for the confusion. I’m not sure if that directory was deleted at some other point.
What happens now when you run the command to get tokens from the faucet?
No need to apologize, it’s not your fault
At the moment everything is fine.
PS C:\Users\gggg> safe wallet get-faucet 134.209.21.136:8000
Logging to directory: "C:\\Users\\gggg\\AppData\\Roaming\\safe\\client\\logs\\log_2024-01-05_19-40-01"
Built with git version: ba2bb2b / main / ba2bb2b
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:
🔗 Connected to the Network
Requesting token for wallet address: b8f5046ea7cc9d4b55b93d342893651d1ecb465eb4c3c27d600a7f8534a6cf1d4bb0f39ae55c83073d20aa7dc17a8e31
Successfully parsed transfer.
Verifying transfer with the Network...
Successfully verified transfer.
Successfully stored cash_note to wallet dir.
Old balance: 0.000000000
New balance: 100.000000000
Successfully got tokens from faucet.
failed again…
safe@NeerdayNetSouthside01:~$ Logging to directory: "/home/safe/.local/share/safe/client/logs/log_2024-01-05_05-12-37"
Built with git version: a029f27 / main / a029f27
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:
🔗 Connected to the Network "/home/safe/safespace/mixtral-8x7b-instruct-v0.1.Q6_K.gguf" will be made public and linkable
Starting to chunk "/home/safe/safespace/mixtral-8x7b-instruct-v0.1.Q6_K.gguf" now.
Chunking 1 files...
Uploading 73219 chunks
Error:
0: Failed to upload chunk batch: Transfer Error Failed to send tokens due to Wallet has pre-unconfirmed tx, resent them and try later..
Location:
sn_cli/src/subcommands/files/mod.rs:330
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
^C
[1]+ Exit 1 safe files upload -p --batch-size 20 ~/safespace/mixtral-8x7b-instruct-v0.1.Q6_K.gguf
Even small files are failing… 11 mins so far to upload 1.3k file
I see many "WARN sn_client::wallet] Attempt to pay for data failed: "Wallet has pre-unconfirmed tx, resent them and try later."
Downloading a single private file doesn’t work for me (Linux), with or without specifying a peer
Downloading "uploaded-file" from cada1271c518304471485f9adf853de1843e2df81ebdf0728ae153c69c01a570 with batch-size 16
Error downloading "uploaded-file": Network Error GetRecord Query Error RecordNotFound.
sn_cli 0.86.97
safenode cli 0.100.44
When I started all my 620 nodes router was reporting around 40k connections total, in the morning it was 60k and now it is around 85k. Also CPU usage on all machines went up quite a lot.
All nodes are earning, memory usage haven’t changed since start.
Last uploads, after reset, work:
Uploaded Files *
Among 740 chunks, found 0 already existed in network, uploaded the leftover 740 chunks in 30 minutes 40 seconds
Payment Details *
Made payment of 0.000099313 for 740 chunks
Made payment of 0.000017167 for royalties fees
New wallet balance: 99.999646768
Reset of what? My uploads are much slower now.
Among 358 chunks, found 0 already existed in network, uploaded the leftover 358 chunks in 43 minutes 36 seconds
Download is currently around 18 Mbit which is also slow compared to previous testnets (I amon 200 Mbit line)