Connection being refused- Endless "Connecting to the network"


#1

I figured out what was going on with my technical issue, {
“stack”: "Error: connect ECONNREFUSED 127.0.0.1:8090\

I believe that is when it trys to connect to this port and then it doesn’t go through
I also found this in the logs:

[2017-12-21 09:19:57:0155] [error] CardanoClientApi::syncProgress error: {
“stack”: “Error: connect ECONNREFUSED 127.0.0.1:8090\n at Object.exports._errnoException (util.js:1026:11)\n at exports._exceptionWithHostPort (util.js:1049:20)\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14)”,
“message”: “connect ECONNREFUSED 127.0.0.1:8090”,
“code”: “ECONNREFUSED”,
“errno”: “ECONNREFUSED”,
“syscall”: “connect”,
“address”: “127.0.0.1”,
“port”: 8090
}
[2017-12-21 09:19:57:0156] [debug] Connection Lost. Reconnecting …
[2017-12-21 09:19:57:0576] [debug] CardanoClientApi::syncProgress called
[2017-12-21 09:19:58:0152] [debug] CardanoClientApi::syncProgress called
[2017-12-21 09:19:58:0578] [error] CardanoClientApi::syncProgress error: {
“stack”: “Error: connect ECONNREFUSED 127.0.0.1:8090\n at Object.exports._errnoException (util.js:1026:11)\n at exports._exceptionWithHostPort (util.js:1049:20)\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14)”,
“message”: “connect ECONNREFUSED 127.0.0.1:8090”,
“code”: “ECONNREFUSED”,
“errno”: “ECONNREFUSED”,
“syscall”: “connect”,
“address”: “127.0.0.1”,
“port”: 8090
}
[2017-12-21 09:19:58:0579] [debug] Connection Lost. Reconnecting …
[2017-12-21 09:19:59:0157] [error] CardanoClientApi::syncProgress error: {
“stack”: “Error: connect ECONNREFUSED 127.0.0.1:8090\n at Object.exports._errnoException (util.js:1026:11)\n at exports._exceptionWithHostPort (util.js:1049:20)\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14)”,
“message”: “connect ECONNREFUSED 127.0.0.1:8090”,
“code”: “ECONNREFUSED”,
“errno”: “ECONNREFUSED”,
“syscall”: “connect”,
“address”: “127.0.0.1”,
“port”: 8090
}
[2017-12-21 09:19:59:0158] [debug] Connection Lost. Reconnecting …
[2017-12-21 09:19:59:0574] [debug] CardanoClientApi::syncProgress called
[2017-12-21 09:20:00:0151] [debug] CardanoClientApi::syncProgress called
[2017-12-21 09:20:00:0578] [error] CardanoClientApi::syncProgress error: {
“stack”: “Error: connect ECONNREFUSED 127.0.0.1:8090\n at Object.exports._errnoException (util.js:1026:11)\n at exports._exceptionWithHostPort (util.js:1049:20)\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14)”,
“message”: “connect ECONNREFUSED 127.0.0.1:8090”,
“code”: “ECONNREFUSED”,
“errno”: “ECONNREFUSED”,
“syscall”: “connect”,
“address”: “127.0.0.1”,
“port”: 8090
}
[2017-12-21 09:20:00:0580] [debug] Connection Lost. Reconnecting …
[2017-12-21 09:20:01:0156] [error] CardanoClientApi::syncProgress error: {
“stack”: “Error: connect ECONNREFUSED 127.0.0.1:8090\n at Object.exports._errnoException (util.js:1026:11)\n at exports._exceptionWithHostPort (util.js:1049:20)\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14)”,
“message”: “connect ECONNREFUSED 127.0.0.1:8090”,
“code”: “ECONNREFUSED”,
“errno”: “ECONNREFUSED”,
“syscall”: “connect”,
“address”: “127.0.0.1”,
“port”: 8090
}
[2017-12-21 09:20:01:0157] [debug] Connection Lost. Reconnecting …
[2017-12-21 09:20:01:0574] [debug] CardanoClientApi::syncProgress called

Any help would be appreciated to fix this


#2

Have you ever been able to open Daedalus and sync?


#3

Yes I have for the first time, went to go recover my wallet, and then it proceeds with the endless moving circle when recovering. So I close the application, to reopen it with it connecting endlessly. I synced it perfectly and opened Daedalus perfectly for the first time, but after it was open it seemed to not work or the second time opening Daedalas.


#4

Ok. From the Daedalus wallet FAQ I see this. Unfortunately I don’t know what a “proper” amount of time is for a restoring wallet before making the decision that its “not” working.

How long did you leave the wallet open and running during the “restore”?

When I restore my wallet, the application freezes.
This is not a bug, it is actually trying fetch whole transaction history. The reason why it takes such a long time is because it is traversing through the whole blockchain to get the wallet synced.

Also from your log it looks to have an error connecting to 127.0.0.1 port 8090.

If on Windows your can open Resource Monitor --> Network tab --> Listening Ports and try to see what is listening on port 8090. Start --> Run --> resmon.exe


#5

This is what I managed to find.


#6

So you DONT see any other applications/services trying to use port 8090?

Also searching the forum I see some mention that your PC/Computer will need to have its time accurate. For example I see issues with Daedalus when the computer time is even a second or two off. Not saying this is the issue; just a place to look and rule out a problem.

But overall if you did NOT let your Daedalus wallet sync for an extended period of time post Restore I would do so. Start it and forget about it for a while.


#7

There was no other application using port 8090, just the Daedalus App. I let the Daedalus wallet sync overnight and found it was finished. But I run into the same issues of before, (This is my third time re-installing the same wallet and waiting)


#8

Oh man. I can see how this is frustrating.

Some background here.

I assume you are running Windows 10?
You are using Wifi on a residential broadband connection like ATT or Comcast?

Are you able try something. Shutdown Daedalus, turn off the Windows Firewall (temporarily) , reboot and relaunch Daedalus?

I reaching here for anything that may help.


#9

I had the exact same issue (with the same log messages), since I had my recovery phrase, was able to do this to fix the issue and recover the wallet (note: this will delete everything, make sure you have your recovery phrase!):

cd ~/Library/Application\ Support/Daedalus/
rm -rf DB-1.0/

The UI needs work to show exactly what was the problem behind the scenes.


#10

SLewis, I toggled the firewall off for the moment, also disabled my antivirus and closed out every program that is running and then restarted my computer. I did a fresh installation of windows 10 on my PC previously before the thread was posted., so it should be even better to load the wallet. Although it did not solve the issue, still endlessly connecting to the network.

Also what is that “cd ~/Library/Application\ Support/Daedalus/
rm -rf DB-1.0/”, Jazonz


#11

Wow…seems like a lot of work.

These are Linux based commands. @jasonz is instructing to change directory (cd ) to your home dir (~) Library -> Application Support --> Daedalus and remove the full directory(rm -rf) and contents of DB-1.0.

Note: as a linux user one should ALWAYS be very aware of any commands that involve rm -rf

Do you have your Seed Phrase? If so we can do the same process in Windows that @jasonz outlined. However you MUST MUST MUST have your Seed Phrase.

If you have another computer you can install the Daedalus Wallet there and do a Restore using your Seed Phrase and accomplish the same thing.

From the Daedalus FAQ:
How do I backup my wallet?
To backup your wallet, you’ll need a recovery phrase which is 12 words you’ve received at the wallet creation. To restore the wallet, click “Add Wallet” select “Restore” and type in your recovery phrase.


#12

+1 Thanks for the better explanation @SLewis , I should have been more clear :slight_smile:


#13

I’m looking for the method to do this in Windows. Thanks for adding to the trouble shooting! :slight_smile:


#14

I think i may have found what @jasonz was talking about and worked for him. Notice the “Delete the content of DB-1.0” instruction below. This is what @jasonz did.

Only Do This If You Have Your Seed/Recovery Phrase

From the Daedalus FAQ

I am stuck at the loading screen, it says “Syncing blocks” at X.X%. What should I do?
Please note that blocks are synced in steps, each of which might take up to a minute. If Daedalus is stuck at X.XX% value for several minutes, please check your internet connection and try to restart Daedalus. If the internet connection is stable and syncing is still freezing after the restart, please follow the instruction below to reset the blocks in your PC.

Win:
Type %appdata% on the explorer’s address bar
Open Daedalus folder
Delete the content of DB-1.0

Mac:
On the Finder’s menu bar select Go
Click Go to Finder…
Type ~/Library/Application Support/Daedalus
Delete the content of the DB-1.0 folder

Wallet Unable to Sync From China without VPN - Possible Chinese Cloud Solution for Exisiting IOHK Nodes?
#15

Found a solution to re-sync the wallet, I went into the DB -1.0 folder and then went into the data folder I believe, Put the files in order from last modified. So the latest one and deleted one of the blocks. Now it is re-syncing the whole blockchain. Although I don’t know if it will help the stability of the Wallet itself.


#16


#17

I recovered the wallet, took about 20 minutes to recover it and it shows my transaction that I sent it. Although I do not know if it will work if I close the wallet.


#18

Good news! I’m going to be optimistic and think all will work going forward. :slight_smile:


#19

The wallet works completely fine now, I have a theory that if you recover the wallet, but don’t wait until its finished (meaning close the window), you have to re-install. Also that you have to close the wall by clicking the Daedalus tab at the top left corner and then close, or it may not close correctly. These are just speculative, but everything is back to working correctly now. Thank you for the help SLewis.


#20

There are some fixes that will be out in the next release. But developers do need logs, so you can send your logs to support at the FAQ.