Atlas - Things on Autonomi

not sure if your in linux or windows

i have a private key from a meta mask wallet i dont bother with making a wallet with the cli

before starting dweb export your wallet private key

windows

$env:SECRET_KEY="<YOUR PRIVATE KEY>"

LINUX

export SECRET_KEY=<YOUR PRIVATE KEY>

then do dweb serve

and dweb will have that wallet and you should be good to go

2 Likes

Ah! I get it now. It doesn’t know about the ant client. Didn’t bother reading the Windows instructions because I’m on Linux! And didn’t bother reading anything else either (because I’m a cowboy on Linux). So I just set the variable with:-

export SECRET_KEY=xxxetc

I think I’m in!

4 Likes

Bingo it does its own thing i set the export in bashrc so i dont have to worry about it :grinning_face:

3 Likes

It’s amazing! This is the best thing done with the network ever. Fact. An entirely new social platform birthed on a brand new network. Let that sink in for a minute. Atlas lifted the world on his shoulders and Josh has lifted up Atlas.

This is my handle:-

9037f2a12d7e9e3cc25d78bcf95e3565d44c4b54dc1c43d94d601db48979a147ea563d807c8dec0ab5ad3ad3e6d4e034
7 Likes

@josh has done us proud but there is more to come our other local heroes are cooking up more treats :wink:

Calling it a night I’ll give you an add in the morning :slight_smile:

7 Likes

I’ve now successfully uploaded a thumbnail and short video to put on Atlas, but unfortunately now Atlas won’t load (stuck on loading screen, .

I assume it’s something my end. I assume it’s loading ok for everyone else?

It didin’t load at first, and when trying again, DWEB is saying:

TRY X of unlimited
DEBUG /scratchpad-private POST failed to create scratchpad - Scratchpad already exists at this address: (address)

…and it’s just looping. Anyone know what the problem might be?

Try reloadng and see if it changes this. F5

1 Like

Unfortunately not. I also tried restarting dweb & using a different browser.

I will try restarting the computer next… you never know!

2 Likes

I wouldn’t expect any of those to help. The interesting messages are everything about Scratchpads up to the point you mentioned.

It’s complaining that is trying to create one that already exists. So I wondered if restarting would load it and not try to create it.

The other place to look and report back is what shows in the browser console (Ctrl-Shift-J and select the console before reloading). Report the errors - some are expected - and again report anything to do with Scratchpads.

The logic should be similar to ScratchChat but I can’t look into this as I have a laptop to resurrect first and lots of tasks not getting worked on lately, so you may have to wait until someone can look at the logic and figure out from your reports what’s gone wrong.

Thanks for persevering - all this user experienced pain helps us Devs, but we don’t do it deliberately do we @Josh? … @Josh? :rofl:

3 Likes

I believe @Josh has had his electronic devices confiscated for the duration of his holiday :rofl:

4 Likes

to upload in windows I just did a test of a file called windows.jpg remember the -p to make the file public.

./ant file upload -p windows.jpg

🔗 Connected to the Network                                                                                                                                                                                                                     Uploading data to network...
Encrypting file: "windows.jpg"..
Successfully encrypted file: "windows.jpg"
Quoting for 4 chunks..
Paying for 1 chunks..
Chunk payments of 1 chunks completed. 3 chunks were free / already paid for
Uploading file: windows.jpg (4 chunks)..
(1/4) Chunk stored at: 6f3dcf608cd2bdde23a4a987246f073d531283f308d5c5b5dbb78b473df2377d (skipping, already exists)
(2/4) Chunk stored at: 6858416958fff65e820b2ff9ecf6912000ac8d07dc1439ad49006fa80643a0b8 (skipping, already exists)
(3/4) Chunk stored at: b1b32bdbed143c768b2a23df8d49127a77b18d629ce206909de3ea8f7ee64509 (skipping, already exists)
(4/4) Chunk stored at: d4b95b9577250cfd965eacd0d13778e44ad805efd38bfc6f484c7d4a7799cbfa
Successfully uploaded windows.jpg (4 chunks) to: d4b95b9577250cfd965eacd0d13778e44ad805efd38bfc6f484c7d4a7799cbfa
Upload of 1 files completed in 30.3352655s
Uploading public archive referencing 1 files
Paying for 4 chunks..
Chunk payments of 4 chunks completed. 0 chunks were free / already paid for
(1/4) Chunk stored at: 1a2ef8bb67bbe945b865e6d9e66e4e6bb0beaed33cee8a5e9ad9a596f9872807
(2/4) Chunk stored at: 4bf6ea40b358b5fc335e98eaa402b6d94bbc59f9629f2ae93fdf2ecfc1d433b3
(3/4) Chunk stored at: fe6eeebb8cfbb650dcbf71abc90edf524f72ef3a2465958f55caed0705a96661
(4/4) Chunk stored at: 36246368f2ad4bb707e67f86870874c839a69d1037a201a2c8fdebbc111529c9
Successfully uploaded: windows.jpg
At address: 36246368f2ad4bb707e67f86870874c839a69d1037a201a2c8fdebbc111529c9
Number of chunks uploaded: 5
Number of chunks already paid/uploaded: 3
Total cost: 648196741644 AttoTokens

you want the address from half way up the out put

Successfully uploaded windows.jpg (4 chunks) to: d4b95b9577250cfd965eacd0d13778e44ad805efd38bfc6f484c7d4a7799cbfa

d4b95b9577250cfd965eacd0d13778e44ad805efd38bfc6f484c7d4a7799cbfa

I just published the image to atlas from windows as well. d-web & atlas are good to go for windows :slight_smile:

3 Likes

Thanks. Yes, uploading was good today (yesterday I had issues with gas prices being too high). Unfortunately Atlas has broken for me though.

Errors and details that may or may not be useful

It may not be relevant, but it seemed to have broken since I used the same wallet I loaded into Dweb with ANT client in order to upload. The wallet in ANT had a password, and now Dweb is asking for the password despite being given the private key… so not sure what’s happening there as I didn’t previously set a password in Dweb.

Only errors from the browser console are:

  • (index):4209 Could not count vote from Josh - voteKey: (keys)
  • ObjectMultiplex - orphaned data for stream “metamask-provider”
  • ObjectMultiplex - orphaned data for stream “publicConfig”
  • Failed to load resource: net::ERR_FAILED :44119/ant-0/scratchpad-private:1

In case it’s relevant, when loading Dweb I also saw this message:

Os { code: 10048, kind: AddrInUse, message: "Only one usage of each socket address (protocol/network address/port) is normally permitted." } (I may have accidentally been running 2 instances of Dweb?)

Edit: I got it working again one time, but now not working again.

Looking forward to trying it again at some point when I can figure out how to use it without messing it up!

Edit 2: I didn’t know you need to set the private key between restarts & wrongly assumed it was a one-off thing… hopefully signing with external wallets will be possible soon, because pasting in a private key seems far less than ideal!

Most obvious thing that catches me out is if I start a fresh terminal and forgot to set the wallet private key before starting dweb ?

1 Like

Yeah, I assumed that was a one off step, and maybe that’s not the case?

2 Likes

I’ll have a check latter there has to be a permanent way to set it in windows. I have it set on startup by bashrc in Linux.

1 Like

I don’t understand why you’d get this error even if you were using different keys.

Each key acts like an identity as well as providing dweb/Atlas with funds to create the Scratchpads.

If you switched key, it would just try to create a new Scratchpad, and assuming there were funds succeed.

The error you’re getting was that the Scratchpad exists, so nothing to do with supplying a different key.

You do need to ensure that dweb/Atlas have access to the key every time you run dweb - because this is how they know which Scratchpad is yours, and what gives them permission to write to it… and dweb will ask for a password if you have one set for your ant-cli wallet.

You’re doing a great job here but we haven’t got to the bottom of that error yet. :folded_hands:

3 Likes

Settings > environment maybe?

1 Like

It’s the same key, just one was provided directly to Dweb, which worked.

The same key, presumably from the ant-cli wallet (as it asks for password) doesn’t seem to work… well, it did once, but hasn’t worked in general.

If you want me to try anything else to help pinpoint the issue I’m willing to do so.

Was nice to see it up and running again once I provided the key directly.

I got my avatar set, shared a short video, upvoted some posts. Great to be doing this on a live network knowing that this is only a taster & the user experience will only get better step by step from here.

Great work on Dweb @happybeing, and also on Atlas @Josh :clap: :clap: :clap:

5 Likes

posted just fine :slight_smile:

4 Likes

https://www.tenforums.com/tutorials/121855-edit-user-system-environment-variables-windows.html

Actually I do it always by just

  1. opening a explorer window with [windows+e] key combination
  2. then a right click on the explorer background - > this PC - > properties
  3. There should advanced or extended settings or so… Click on that and then again on advanced or so… There then is a button ‘environment variables’..

There is an area then for user specific and system specific environment variables

3 Likes