Hi.
I found this error code this morning: Error: rpccompat: dial tcp 127.0.0.1:7778: connect: connection refused
The node is online. Do I need to do anything?
Thanks
If your node has Online
status and you are getting uploads/downloads without failing audits then your node is fine. The error could be temporary loss of connectivity at that timestamp.
Also this should be a different topic.
Usually such error is happening only on start, when the node is busy to calculate the usage
make change in config.yaml for second node:
before: server.private-address: 127.0.0.1:7778
after: server.private-address: 127.0.0.1:7779
and got the message:
rpccompat: dial tcp 127.0.0.1:7778: connect: connection refused
as far Iâve understand that I should change the inner port for every additional node, but the node still knocking in 7778 port.
whatâs can be wrong?
Did you follow this guide ?
Yep, but it is no clean for me.
Current setup:
router: open port=28968; destination port=28968.
then
docker run -d --restart unless-stopped -p 28967:28967 -e WALLET=âthe same wallet as 1st nodeâ -e EMAIL=âunic with 2nd invitationâ -e ADDRESS=âsame ip as 1st node:28967â -e BANDWIDTH=âxxTBâ -e STORAGE=âxxTBâ --mount type=bind,source="__\Storj\Identity\storagenode2\",destination=/app/identity --mount type=bind,source=â2nd disk:\data\â,destination=/app/config --name storagenode2 storjlabs/storagenode:alpha
config.yaml (changes):
server address of the api gateway and frontend app
console.address: 127.0.0.1:14003
the public address of the node, useful for nodes behind NAT
contact.external-address: âsame ip as 1st:28968â
private address to listen on
server.private-address: 127.0.0.1:7779
in Docker dashboard:
storagenode2
running
port: 28968
in the end:
Error: rpccompat: dial tcp 127.0.0.1:7778: connect: connection refused
Needs to be 28968:28967
Needs to be same ip as 1st node:28968
Instead you can use your docker command as shown in documentation with this minor change.
-p 127.0.0.1:14003:14002
Make sure you read the documentation as this command has updated to
storjlabs/storagenode:latest
now:
docker run -d --restart unless-stopped -p 28968:28967 -p 127.0.0.1:14003:14002 -e WALLET=âthe same wallet as 1st nodeâ -e EMAIL=âunic with 2nd invitationâ -e ADDRESS=âsame ip as 1st node:28968â -e BANDWIDTH=âxxTBâ -e STORAGE=âxxTBâ --mount type=bind,source="_\Storj\Identity\storagenode2\",destination=/app/identity --mount type=bind,source=â2nd disk:\data\â,destination=/app/config --name storagenode2 storjlabs/storagenode:latest
#storagenode:latest - Unable to find image âstorjlabs/storagenode:latestâ locally
latest: Pulling from storjlabs/storagenode.
think that â:latestâ is excess
#output in sum of all changes:
Error: rpccompat: dial tcp 127.0.0.1:7778: connect: connection refused
I can see you didnât click the documentation link yet so you should do that.
Remove the trailing \
from paths to make them source="_\Storj\Identity\storagenode2
& 2nd disk:\data
You can rename 2nd nodeâs config.yaml
to config.yaml.bak
and restart the node.
All goes up - thank you so much! Iâve never imagine how brainsurged I was in that case.
And another one question if I could:
do I need to roll up second watchtower for second node?
if youâve talking about this one:
I have read it already before, got a decision to make separate nodes with separate new disks without hard or soft RAID. Just got stucked in 2nd layer port forwarding and the parameters of command promt. If you about that
No. You can add storagenode2
to the same watchtower command.
^ is the right approach and without RAID of course as recommended by many.
There is no goal to get extra tokens in short period with high risks to set up the users with data lost. I just entusiast with lack of many skills and if something can get wrong it goes wrong and I donât need that pain. Cause life is fast and there is so much actions and desicions during the day so often no time to stop and get back and work the problem carefully.
So THANK you again for saving my time and nerves:)
like that:
docker run -d --restart=always --name watchtower -v /var/run/docker.sock:/var/run/docker.sock storjlabs/watchtower storagenode storagenode2 watchtower --stop-timeout 300s
Yes. This is your second node but if you want you can post pictures of your setup here
The setup look too much scary for now cause Iâm running home pc hardware not packed any case that attached to Supermicro 847E16-RJBOD1. Iâve bought that shelf for burstcoin mining purpose but the project wonât fly since march of 2018.
In 18th Iâve found and described myself as chinese plant worksman whoâs screwing down one bolt day after day about 10 years in logistics. So I desperately tried to find some proccess that makes any sence and found the way in crypto.
And planning to get some server architect on amd epyc but price for that I canât afford and there is no to much needs in that purchase right now.
10 posts were merged into an existing topic: Error starting master database on storagenode: database: file is not a database
Well in my command there is the stop-timeout part:
sudo docker run -d --restart unless-stopped --stop-timeout 300
Yeah maybe it was killed then restarted and had a corrupted db then.
Thanks for the help. Next time I will check the DBs first and the report ;D
Hello everyone, I really appreciate everyoneâs input. Iâve read and followed all the steps in this thread and iâve read and followed all the steps in each linked article as well. I am unable to get the second node up and running on the same machine as the first node. Does anyone have any idea on how to resolve this?
I run the following command to see the CLI dashboard and get this readout:
Command:
docker exec -it storagenode2 /app/dashboard.sh
Readout:
2023-02-13T18:25:38.700Z INFO Configuration loaded {âProcessâ: âstoragenodeâ, âLocationâ: â/app/config/config.yamlâ}
2023-02-13T18:25:38.701Z INFO Anonymized tracing enabled {âProcessâ: âstoragenodeâ}
2023-02-13T18:25:38.704Z INFO Identity loaded. {âProcessâ: âstoragenodeâ, âNode IDâ: â12Jbp1aP3r57KnP5tLCkaEGUBvQxXb6basU9sXpfd28sGcjLqPQâ}
Error: rpc: dial tcp 127.0.0.1:7778: connect: connection refused
We need some more info about your configurations. Can you provide the Run commands of both nodes, but redact your personal info such as public IP (But leave the ports) and payout address, email, etc?
In addition, if port 7778 isnât working you could try a different port. Itâs possible the port you have chosen is occupied by another application.
Node1 Run:
docker run -d --restart unless-stopped --stop-timeout 300 \ -p 28967:28967/tcp \ -p 28967:28967/udp \ -p 14002:14002 \ -e WALLET=â0xf945cA2Db1C8A5387e85C490cf08301249283EAEâ \ -e EMAIL=â<my_email>â \ -e ADDRESS=â:28967â \ -e BANDWIDTH=â500TBâ \ -e STORAGE=â8500GBâ \ --user $(id -u):$(id -g) \ --mount type=bind,source=â/root/.local/share/storj/identity/storagenodeâ,destination=/app/identity \ --mount type=bind,source=â/media/storj/â,destination=/app/config \ --name storagenode storjlabs/storagenode:latest
Node2 Run:
docker run -d --restart unless-stopped --stop-timeout 300 \ -p 28968:28967/tcp \ -p 28968:28967/udp \ -p 127.0.0.1:14003:14002 \ -e WALLET=â0xf945cA2Db1C8A5387e85C490cf08301249283EAEâ \ -e EMAIL=â<same-as-node1â \ -e ADDRESS=â:28968â \ -e BANDWIDTH=â500TBâ \ -e STORAGE=â8600GBâ \ --user $(id -u):$(id -g) \ --mount type=bind,source=â/mnt/storagenode2/storagenode_id2/identity/storagenode2â,destination=/app/identity \ --mount type=bind,source=â/mnt/storagenode2/node2_dataâ,destination=/app/config \ --name storagenode2 storjlabs/storagenode:latest
In regards to the 7778 not working. Where and how do I adjust this?
config.yaml settings:
public address to listen on server.address: :28968
private address to listen on server.private-address: 127.0.0.1:7779
I am getting the error read out with the configurations above. let me know if there is anything else I can send you that might help.
Thanks