# Error: rpccompat: dial tcp 127.0.0.1:7778: connect: connection refused

**URL:** <https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670>\
**Category:** troubleshooting\
**Created:** [February 14, 2020, 4:14pm UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670 "2020-02-14T16:14:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kofiko](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kofiko/32/62_2.png) [@kofiko](https://forum.storj.io/u/kofiko)\
**Post date:** [February 14, 2020, 4:14pm UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/1 "2020-02-14T16:14:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [February 14, 2020, 4:21pm UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/2 "2020-02-14T16:21:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [February 15, 2020, 6:05pm UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/3 "2020-02-15T18:05:19Z")

</div>

Usually such error is happening only on start, when the node is busy to calculate the usage

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [September 16, 2020, 4:35pm UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/4 "2020-09-16T16:35:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [September 16, 2020, 4:45pm UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/5 "2020-09-16T16:45:17Z")

</div>

Did you follow this guide ?

> **[How can I set up to run multiple storage nodes?](https://support.storj.io/hc/en-us/articles/360032150431-How-can-I-set-up-to-run-multiple-storage-nodes-)**
>
> You can run multiple storage nodes but preferably, you should make sure each will be run in a different physical location and IP. Please note that running multiple nodes is currently not officially...

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [September 17, 2020, 5:57am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/6 "2020-09-17T05:57:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [September 17, 2020, 6:04am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/7 "2020-09-17T06:04:09Z")

</div>

> [@karacurt](#):
>
> -p 28967:28967

Needs to be `28968:28967`

> [@karacurt](#):
>
> -e ADDRESS=“same ip as 1st node:28967”

Needs to be `same ip as 1st node:28968`

> [@karacurt](#):
>
> config.yaml (changes):

Instead you can use your docker command as shown in [documentation](https://documentation.storj.io/setup/cli/storage-node#running-the-storage-node) with this minor change.

`-p 127.0.0.1:14003:14002`

> [@karacurt](#):
>
> storjlabs/storagenode:alpha

Make sure you read the documentation as this command has updated to

`storjlabs/storagenode:latest`

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [September 17, 2020, 6:25am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/8 "2020-09-17T06:25:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [September 17, 2020, 6:38am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/9 "2020-09-17T06:38:04Z")

</div>

> [@karacurt](#):
>
> think that ‘:latest’ is excess

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.

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [September 17, 2020, 6:59am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/10 "2020-09-17T06:59:27Z")

</div>

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?

> [@nerdatwork](#):
>
> I can see you didn’t click the documentation link yet so you should do that.

if you’ve talking about this one:

> **[How can I set up to run multiple storage nodes?](https://support.storj.io/hc/en-us/articles/360032150431-How-can-I-set-up-to-run-multiple-storage-nodes-?_ga=2.153917247.683711636.1600263679-1206163301.1599993782)**
>
> You can run multiple storage nodes but preferably, you should make sure each will be run in a different physical location and IP. Please note that running multiple nodes is currently not officially...

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 🙂

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [September 17, 2020, 7:09am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/11 "2020-09-17T07:09:38Z")

</div>

> [@karacurt](#):
>
> do I need to roll up second watchtower for second node?

No. You can add `storagenode2` to the same watchtower command.

> [@karacurt](#):
>
> make separate nodes with separate new disks

^ is the right approach and without RAID of course as recommended by many.

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [September 17, 2020, 7:33am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/12 "2020-09-17T07:33:56Z")

</div>

> [@nerdatwork](#):
>
> ^ 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:)

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [September 17, 2020, 7:35am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/13 "2020-09-17T07:35:36Z")

</div>

> [@nerdatwork](#):
>
> You can add `storagenode2` to the same watchtower command.

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

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [September 17, 2020, 7:46am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/14 "2020-09-17T07:46:22Z")

</div>

> [@karacurt](#):
>
> like that:

Yes. This is your second node but if you want you can post pictures of your setup here

> [@Post pictures of your storagenode rig(s)](https://forum.storj.io/t/post-pictures-of-your-storagenode-rig-s/1422):
>
> Any special adjustments made or simple setup. Use this thread to show off your setup wink

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [September 17, 2020, 8:58am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/15 "2020-09-17T08:58:00Z")

</div>

> [@nerdatwork](#):
>
> > [@](#):
> >
> > Any special adjustments made or simple setup. Use this thread to show off your setup wink

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.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [December 8, 2020, 8:02am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/16 "2020-12-08T08:02:46Z")

</div>

Split this topic on December 8, 2020, 8:02am UTC

10 posts were merged into an existing topic: [Error starting master database on storagenode: database: file is not a database](https://forum.storj.io/t/error-starting-master-database-on-storagenode-database-file-is-not-a-database/9922/20)

---

<div class="post-metadata">

**Author:** ![HeroHann](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/herohann/32/62_2.png) [@HeroHann](https://forum.storj.io/u/HeroHann)\
**Post date:** [December 8, 2020, 8:05am UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/17 "2020-12-08T08:05:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![NoNodesense](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nonodesense/32/1131_2.png) [@NoNodesense](https://forum.storj.io/u/NoNodesense)\
**Post date:** [February 13, 2023, 6:27pm UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/18 "2023-02-13T18:27:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Knowledge](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/knowledge/32/10681_2.png) [@Knowledge](https://forum.storj.io/u/Knowledge)\
**Post date:** [February 13, 2023, 7:36pm UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/19 "2023-02-13T19:36:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![NoNodesense](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nonodesense/32/1131_2.png) [@NoNodesense](https://forum.storj.io/u/NoNodesense)\
**Post date:** [February 13, 2023, 9:45pm UTC](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670/20 "2023-02-13T21:45:29Z")

</div>

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

[Next page](https://forum.storj.io/t/error-rpccompat-dial-tcp-127-0-0-1-connect-connection-refused/4670.md?page=2)
