Now Im getting: WARN: runMainLoop error: connect ECONNREFUSED 127.0.0.1:8332
In this situation your node is trying to connect to a server in which is not reachable or running.
And there are some other way to fix this problem such as follows below:
a. Your firewall possible is blocking the connection, in this case you can check the port 8332 is open and
accepting the connection in which is incoming.
b. Your node configuration file of course must double check, to make sure that the configured with the ip address
correct were the port of your server (127.0.0.1:8332).
c. Now if your node is running on a container, make it sure the port is mapped correctly same goes with the cointainer
is also correctly running.
d. You also need to confirm that you have done this correctly with the bitcoin core daemon, and it should also be running
on the IP address and port specified (127.0.0.1:8332)