OFFLINE Will it be a Quicky? (run 4)

I started a baby-fleming with the latest binaries and almost immediately got another NotEnoughChunks on a put

should be its own topic - NotEnoughChunks

2 Likes
2 Likes

What kind of network are you interested in running? Just one on your local machine?

1 Like

I would like to find a way to run from home some nodes, maybe qubesOS in a vm with several sub vms each with its own vpn but its a rough idea just wanna see if I can make it this way.

otherwise I might use the free 100$ offers there are to spaw some “free” nodes for a month

4 Likes

Would you get upset if I tried to upload a 200Mb file?
to try and repeat an earlier NotEnoughChunks error on my local baby-fleming

shows up again

willie@gagarin:~$ safe files put 5MB.zip 
FilesContainer created at: "safe://hyryyryynp8dsoxri7n651nonf1w3higd7xakxyppju3jw4qpae6mx59pr1gyeuy?v=hd7tszgzy6ihz7pno98nof3qmgz4nq19dc7ojw5c5odrkha6dmx3y"
+  5MB.zip  safe://hyfenryybcj4nmrrycotxo9jyjkqb563rorqteq9945iuibj5e9xzbicpe5ky 
willie@gagarin:~$ safe files put 10
100MBtest  10MBtest   
willie@gagarin:~$ safe files put 10MBtest 
FilesContainer created at: "safe://hyryyryynf3nwxyoxj7k7cq8ko44xhdu6us8pxx8nbzf1cn6tym8jqnquzehoeuy?v=hw1xzgd37ppxufxcpwsqz8fi5kwh1kufen8eoebih37rg4z6bimoo"
+  10MBtest  safe://hyryyyyyb5fu831neyrbe6d51g6iwmzq6ehn9eso1utremsgg8cnb4hysd8gy 
willie@gagarin:~$ safe files put 100MBtest 
FilesContainer created at: "safe://hyryyryynf3s4krbj9aimycumod1ie8dsdudxj89ax3r6yn8hi8zxxz6orsdoeuy?v=hgip1akd6y1eg5cnzxjfqayrb7yyyobuttozu3uwcoggpcnoq1aho"
E  100MBtest  <ClientError(NotEnoughChunks(100, 50))>

Have I broken it with a 200Mb upload?

What is your CPU/memory utilisation? Anything like NotEnoughChunks

1 Like

Well, I think setting up that arrangement of VMs is beyond the scope of what we could help you with here, but if you were interested in running a network where some nodes were running on machines on a cloud provider, we have a tool we use to do that:

This is what Josh uses to run his testnets. Basically what this tool does is, it spins up some machines on Digital Ocean and installs some nodes on them. Realistically, you’ll need a bit of technical competency to use it, but myself and probably others in here could help with some guidance around it.

4 Likes

running 4 nodes with wsl2 on windows with ubuntu ubuntu 18lts ubuntu 20lts and debian!

3 Likes

so I need a DO (dah) and a AWS account also?

@SmoothOperatorGR

With the way that the tool works out of the box at the moment, yeah.

You could fork it and modify it if you want to though (not sure how technical you are).

I am studying programming so some fiddle I can do but not much yet… ok thank you for now I am set.

5 Likes

Just to let you know, for this little tool, there’s not really much programming involved. It just uses tools like Terraform, and some shell scripting.

2 Likes

I guess I am not getting any other presents from santa, I’ve been a naughty boy

see if you can get these songs (295MB):

safe files get "safe://hyryyryyneft1wa6btrb6ypp5mw5445h94t14z3btg17uyh6zgq1rq6sc8nzoeuy?v=hnbmauo9afcmqusyqyatu7wansmurmo5amjamton55gy4xp1pdk5o" milonga_mixed

1 Like

now thats different… but oddly pleasing :slight_smile:

Playing MPEG stream 1 of 112: (0097) 084 . Don Juan.mp3.mp3 …

MPEG 1.0 L III vbr 48000 j-s

Title: Don Juan Artist: Di Sarli, Carlos
Album: 20 Temas Instrumental
Genre: Tango

2 Likes

glad you enjoyed this!

the network now seems down

3 Likes

How about -dir or -path rather than -dir-path for those with RSI :grimacing:? Using both seems redundant and shorter is better IMO.

2 Likes

Tab-completion is also very nice. :grimacing:

1 Like

The problem with -path on its own is it can refer to either a file or a directory. The inclusion of -dir makes it clear it’s a directory, and -dir-path makes it completely unambiguous that it’s a path you’re dealing with. I would consider just dir, but definitely not path on its own.

There will be short -d style alternatives for each argument.

Edit: actually, I think I may have changed my mind on this. Maybe just path is better, and the documenation can say whether it refers to a file or directory @happybeing . By my old logic, I would need to use file-path to unambigously refer to a file. I do agree that it should be less verbose if possible.

5 Likes

There actually is/was autocompletion for the CLI, but I don’t think anyone has tried it in a long time.

4 Likes

first few lines of the install script so far


#!/bin/bash

# script to set up comnet - community testing for the SAFE network

#TO DO

# get the latest versions

# make paths configurable

# add warnings

# if we set the same port for everyone, what happens?

# write a Powershell script to set up a Linux VM for Windows users

echo "================================================================================================"

echo "This script is only for 'vanilla' linux systems on standard x86-64 PC hardware"

echo

echo

PUBLIC_IP=$(echo `curl -s ifconfig.me`)

NODE_PORT= #TO DO if we set the same port for everyone, what happens?

TMP_DIR=/tmp/comnet

SAFE_ROOT=/home/USER/.safe

NODE_BIN_PATH=$SAFE_ROOT/node

SAFE_BIN_PATH=$SAFE_ROOT/sn_cli

LOG_DIR_PATH=$SAFE_ROOT/logs

COMNET_CONN_INFO=https://sn-comnet.s3.eu-west-2.amazonaws.com/node_connection_info.config

SN_NODE_ASSET=https://github.com/maidsafe/safe_network/releases/download/safe_network-v0.51.7/sn_node-0.51.7-x86_64-unknown-linux-musl.tar.gz

#DATA_DIR_PATH=$SAFE_ROOT/data_dir

SN_CLI_QUERY_TIMEOUT=180

echo "This script will install comnet - community testing for the SAFE network"

echo "comnet files will be installed in "$SAFE_ROOT

echo "log files will be stored in "$LOG_DIR_PATH

#echo "data files will be stored in "$DATA_DIR_PATH

echo

echo

echo "Your public IP address is " $PUBLIC_IP

echo

# clean up from last testnet

rm -rf $SAFE_ROOT

if [ -d "$TMP_DIR" ]; then rm -Rf $TMP_DIR; fi
3 Likes