QuicNet [30/01/24Testnet] [Offline]

Now the first upload has finished

Among 2 chunks, found 0 already existed in network, uploaded the leftover 2 chunks in 33 seconds


  •      Payment Details           *
    

Made payment of 0.000000930 for 2 chunks
Made payment of 0.000000164 for royalties fees

But other files that also had errors still continue to have them.
Uploading 2 chunks
⠴ [00:01:03] [----------------------------------------] 0/2 Retrying failed chunks 2 …
Unverified file “vlc-3.0.17.3-intel64.dmg”, suggest to re-upload again.

Log:
log_2024-01-31_16-47-29.zip (53.7 KB)

2 Likes

If you re-upload now, there shall be 1 chunk succeed.
However, there could be still 1 chunk keeps failing.
pls let me know if it is the case.
thx

3 Likes

With

safe register get 807170c40a479f0457cb0c2d85dc9fda084562e31df43a667f72bbaedcc654f58394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05

You should be able to get the register, and the entry is an address, that points to a text file , that contains names and addresses to a few public files that you can download.

If you upload some more files to be public, you can edit the text file, upload it, and update the register.

Now we have a list of public files inside the testnet. If there is a better way to make this, just do it. This was me just haphazardly trying something.

2 Likes

Step 1: I have…

LIST OF UPLOADED FILES

mixtral-8x7b-instruct-v0.1.Q6_K.gguf 35GB
af4c83f1c16fbc213661f808a9fb1654a0a433617889d61a310ec3c86cec631b

"ubuntu-18.04.4-desktop-amd64.iso" 2GB
7655f9a3a60838cfde45d6ed3bd5d916244f2aae033379384852e3b69e3efc87

"Waterfall_slo_mo.mp4" 60MB
c61ffa6aa89fc1e518e9f114e24738cc11bf7f78812a698d3fd3671257d12076

:partying_face:

UPDATE:
All went well until I tried to edit the register to point to the updated list.txt. I don’t seem to have write access::

$ safe register edit 807170c40a479f0457cb0c2d85dc9fda084562e31df43a667f72bbaedcc654f58394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05 47a7f28e7b02a303ebb22dd6c9a04ef6caafff01364a79f6051d690d37571bf9
...
Built with git version: a15b141 / main / a15b141
...
Trying to retrieve Register from 807170(facfe0(11111010)..)
Successfully retrieved Register at 807170c40a479f0457cb0c2d85dc9fda084562e31df43a667f72bbaedcc654f58394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05
Editing Register at 807170c40a479f0457cb0c2d85dc9fda084562e31df43a667f72bbaedcc654f58394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05 with: 47a7f28e7b02a303ebb22dd6c9a04ef6caafff01364a79f6051d690d37571bf9
Error: 
   0: Register error Access denied for user: PublicKey(0640..b6fa).
   1: Access denied for user: PublicKey(0640..b6fa)
5 Likes

Nice to see you chaps and chapesses wringing the guts out of this QuicNet.
Hard to keep up with all these messages as I wander from tourist attraction to beerstop in this charming $european_city.

Keep it up. Very proud of you all. Let there be no edge case unpoked :clap: :cupcake: :beer:

10 Likes

Exactly, one chunk is successful, and the other is not.

Uploading 2 chunks
⠤ [00:01:03] [####################>-------------------] 1/2
Retrying failed chunks 1 …

7 Likes

A-ha… Unfortunately I don’t have time to tinker more at the moment.

5 Likes

Hi, All,

Anyone is running the node 12D3KooWAHXXn3PJTz8xUrDZhjwQgqa4KwivuKLc6ATz6VbywKix please check if it got rebooted.

ideally, please send me the log of it and terminate it.
thank you very much

4 Likes

That belongs to @aatonnomicc I believe

6 Likes

Just kidding, family can wait. @happybeing, can you try:

safe register get -n FILES

and for editing

safe register edit -n FILES

(I created the register with that name, but I thought the name is only applied locally and the address could be just shared. Now I suppose using the name would somehow mean it is publicly editable, but I don’t really know…)

3 Likes

Yes, the help says “if you are the owner” for -n so as expected:

$ safe register get -n FILES
Logging to directory: "/home/blim/.local/share/safe/client/logs/log_2024-01-31_16-52-17"
Built with git version: a15b141 / main / a15b141
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 43 peers
🔗 Connected to the Network                                                                                                    Trying to retrieve Register 'FILES' at 807170(22d09c(00100010)..)
Did not retrieve Register 'FILES' at 807170(22d09c(00100010)..) from all nodes in the close group! Protocol error Register not found: 807170(22d09c(00100010)..).
Error: 
   0: Protocol error Register not found: 807170(22d09c(00100010)..).
   1: Register not found: 807170(22d09c(00100010)..)

What you tried would be a global DNS, so well worth a go!

3 Likes

I think I found a way, just a moment…

Ok, so try with this

safe register get 75d14c80124d2519c5541df7e5f9ace27be322b8c62049dadc0ea4214c255f588394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05

and for editing

safe register edit 75d14c80124d2519c5541df7e5f9ace27be322b8c62049dadc0ea4214c255f588394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05

(New register, created with public flag as per these instructions:)

6. In the file "register.rs":

* Imported the `Permissions` struct from the `sn_registers` module.
* Added a new command line option `-p` or `--public` to create the register with public write access.
* Updated the `create_register` function to accept the `public` parameter and use it to determine the permissions of the register.
* Updated the `create_and_pay_for_register` function call to include the `perms` parameter.
* Print the address of the created register at the end.
5 Likes

I just got up on night shift at the moment will terminate it and upload logs in a few hours time.

7 Likes

OK, this worked!

I managed to edit the register from my Windows machine. I updated the file list with a couple of spaces, uploaded it and put the address in the register with the edit command.

3 Likes

Bingo - I’ve updated your register with an edited version of ‘list.txt’. I changed the format slightly:

$ safe register edit 75d14c80124d2519c5541df7e5f9ace27be322b8c62049dadc0ea4214c255f588394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05 47a7f28e7b02a303ebb22dd6c9a04ef6caafff01364a79f6051d690d37571bf9
Logging to directory: "/home/blah/.local/share/safe/client/logs/log_2024-01-31_17-28-30"
Built with git version: a15b141 / main / a15b141
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 43 peers
🔗 Connected to the Network                                                                                                                                                   Trying to retrieve Register from 75d14c(08eb67(00001000)..)
Successfully retrieved Register at 75d14c80124d2519c5541df7e5f9ace27be322b8c62049dadc0ea4214c255f588394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05
Editing Register at 75d14c80124d2519c5541df7e5f9ace27be322b8c62049dadc0ea4214c255f588394fc07181bceef649351a86c66c4efb1e408a106f1b74f08a4a4eb33c99c95d65b5a86cd077e095cf33dd8dc561b05 with: 47a7f28e7b02a303ebb22dd6c9a04ef6caafff01364a79f6051d690d37571bf9
4 Likes

@toivo that would be worth a quick write-up in its own topic if you want an excuse to avoid the family a bit longer :wink:

4 Likes

Haha, might do, but this feels so clumsy, that I’m a bit waiting someone else coming and showing how it actually can be done much easier, reliable etc. I just wanted to see that it is possible.

For example now it is only on good faith that the new file is actually a new version of the list and not something completely else.

6 Likes

ping @qi_ma

@Josh was correct it was one of mine.

terminated as requested and here are the logs

12D3KooWAHXXn3PJTz8xUrDZhjwQgqa4KwivuKLc6ATz6VbywKix

6 Likes

I think it is begging for a @Southside bash script or two. To wrap up some operations such as:

  • publish: uploads file as public, gets register, edits index.txt, uploads it, edits register
  • search: gets register, offers list of indexed files with filtering on a string, and offers to download a) one by choosing from the list, or b) all matching files

Or could be scripted in Python (@riddim) or node CLI etc.

5 Likes

its absolutely inspiring to see how everybody here is pulling together for the SafeNetwork, please keep at it!
feels like we are very close to this thing taking off :partying_face:

17 Likes