Thread Rating:
  • 8 Vote(s) - 4.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raspberry Pi Sky Miner Setup for noobs - TESTNET READY
#41
Great guide, I setup everything as described in the guide and when I access the manager via web I can see all my nodes when I turn on my rig. However after roughly 1 min or so all my secondary nodes disappear from the list and I can only see the manager node on the list. If I restart the nodes individually, they will appear on the manager list for a short while and then disappear again. Saw another user had this issue and didn't see any possible solutions offered. Anyone have any ideas?
Reply
#42
(05-20-2018, 10:03 PM)This Could Be You Wrote: Great guide, I setup everything as described in the guide and when I access the manager via web I can see all my nodes when I turn on my rig. However after roughly 1 min or so all my secondary nodes disappear from the list and I can only see the manager node on the list. If I restart the nodes individually, they will appear on the manager list for a short while and then disappear again. Saw another user had this issue and didn't see any possible solutions offered. Anyone have any ideas?

Perhaps you are running more than 1 node process at a time so they are fighting with each other to connect.

To check if you have more than one process use the command "top" in a debian/ubuntu based distro. Page down to see if they are there. On the left of the line that contains the node process you will see some numbers under the PID column. You can kill a process by using command "kill ###" So if you see process node PID 1234 you kill it by entering "kill 1234" After killing them all, bring one online.
Reply
#43
(05-20-2018, 10:03 PM)This Could Be You Wrote: Great guide, I setup everything as described in the guide and when I access the manager via web I can see all my nodes when I turn on my rig. However after roughly 1 min or so all my secondary nodes disappear from the list and I can only see the manager node on the list. If I restart the nodes individually, they will appear on the manager list for a short while and then disappear again. Saw another user had this issue and didn't see any possible solutions offered. Anyone have any ideas?

The issue is the discovery address. These guides are not being updated and thats an issue at the moment. At the end of the guide it says to run the command on your manager node:



Code:
nohup ./node -connect-manager -manager-address manager_node_ip:5998 -manager-web manager_node_ip:8000 -discovery-address messenger.skycoin.net:5999-028667f86c17f1b4120c5bf1e58f276cbc1110a60e80b7dc8bf291c6bec9970e74 -address :5000 -web-port :6001 > /dev/null 2>&1 & echo $! > node.pid &




This command should fix it for you:


Code:
cd $GOPATH/bin
nohup ./node -connect-manager -manager-address 127.0.0.1:5998 -manager-web 127.0.0.1:8000 > /dev/null 2>&1 & echo $! > node.pid


If there are any issues you can ask in either the Discord or the Telegram
Reply
#44
Here's the fix


Manager:

sudo su
nano startmanager.sh

That will open up the text editor.

File should look like this:



#!/bin/bash
# Run Skywire

#Start Manager
cd /home/pi/go/bin
nohup ./manager -web-dir /home/pi/go/src/github.com/skycoin/skywire/static/skywire-manager > /dev/null 2>&1 & echo $! > manager.pid &


#Start Primary Node
cd /home/pi/go//bin
nohup ./node -connect-manager -manager-address MANAGER*IP*ADDRESS:5998 -manager-web MANAGER*IP*ADDRESS:8000 -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68 -address :5000 -web-port :6001 > /dev/null 2>&1 &cd /









**************



Each node:

sudo su
nano startsecond.sh

File should look like this:






#!/bin/bash
SECONDAY NODE STARTUP
# Skywire Seconday Node Start

sleep 10
cd /home/pi/go/bin
nohup ./node -connect-manager -manager-address MANAGER*IP*ADDRESS:5998 -manager-web MANAGER*IP*ADDRESS:8000 -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68 -address :5000 -web-port :6001 > /dev/null 2>&1 &cd /


reboot all of them, fixed.

for reference, this is what my manager's startsecond.sh looks like. I think I edited it just for the sake of it, I don't think it needs to be changed but if you have issues, maybe it is necessary:

#!/bin/bash
SECONDAY NODE STARTUP
# Skywire Seconday Node Start

sleep 10
cd /home/pi/go/bin
nohup ./node -connect-manager -manager-address :5998 -manager-web :8000 -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68 -address :5000 -web-port :6001 > /dev/null 2>&1 &cd /

And here's what my nodes startmanager.sh looks like. again, not sure if it needs to be configured at all but it's working for me.

#!/bin/bash
# Run Skywire

#Start Manager
cd /home/pi/go/bin
nohup ./manager -web-dir /home/pi/go/src/github.com/skycoin/skywire/static/skywire-manager > /dev/null 2>&1 & echo $! > manager.pid &

#Start Primary Node
cd /home/pi/go//bin
nohup ./node -connect-manager -manager-address :5998 -manager-web :8000 -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68 -address :5000 -web-port :6001 > /dev/null 2>&1 &cd /
[-] The following 1 user says Thank You to jackazlin for this post:
  • volle29
Reply
#45
[Image: uffff.jpg]
Why this happen and how to fix it? Really I can't understand
Reply
#46
Do i need to update the image of Skywire on a cluster of Raspberry Pi 3’s when the skywire updated?
Reply
#47
This tutoral is out of date at the moment. This should help get you up and running after following it

If you are using the Pre setup images:

start with

Code:
cd $GOPATH/src/github.com/skycoin/skywire
git reset --hard
git clean -f -d
git pull origin master
cd $GOPATH/src/github.com/skycoin/skywire/cmd
go install -v ./...


Now you will need to manually change the startmanager.sh on your manager node and startsecond.sh files on the rest of them.

On your Manager Node
Code:
cd ~
nano startmanager.sh

then # out the existing command or replace what is there with the code here (!!!!Add your managers ip to the command!!!)
Code:
cd $GOPATH/bin
nohup ./manager -web-dir ${GOPATH}/src/github.com/skycoin/skywire/static/skywire-manager > /dev/null 2>&1 &sleep 3


nohup ./node -connect-manager -manager-address ManagersIPAddress:5998 -manager-web ManagersIPAddress:8000 -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68  -address :5000 -web-port :6001 > /dev/null 2>&1 &cd /


On each of your nodes run:
Code:
cd ~
nano startsecond.sh



and then replace whats there with or # it out and add:(!!!!Add your managers ip to the command!!!)
Code:
nohup ./node -connect-manager -manager-address ManagersIPAddress:5998 -manager-web ManagersIPAddress:8000 -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68  -address :5000 -web-port :6001 > /dev/null 2>&1 &cd /

Go back to your manager as I think you will need to still run this command for 1st times (make sure you updated your ips.txt)
Code:
/skyminer_engage.sh

Manually check the startsecond.sh again on every node as it can update them wrong.



Then visit your manager node 192.168.x.x:8000
(password 1234 for 1st login)

Visit each node and check the discovery address within the web interface. You may need to manually change it. Click on each node and hit the Cog and check the discovery address. If its not

Code:
discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68

Update it manually in the web interface (you may need to manually reboot each node after updating them).


That should do it. Best of luck
[-] The following 1 user says Thank You to I Am You for this post:
  • Lancek
Reply
#48
Guys what about the unallocated space if using the .img route and writing that directly?
Would Linux claim that space automatically or not at all??

[Image: image.png]
Reply
#49
The guide its really neat but you need to update it with the new discovery address for Skywire.

Thanks!!!!
Reply
#50
(05-25-2018, 06:56 PM)asxtree Wrote: The guide its really neat but you need to update it with the new discovery address for Skywire.

Thanks!!!!

I have an updated fix here:
https://skywug.net/forum/Thread-Raspberr...35#pid2035

Only in a comment but hopefully some help
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)