Multichain Explorer: RPC failed: [Errno socket error] [Errno 111] Connection refused

+2 votes




Multichain Explorer config:

# Config file for MultiChain Explor

# Same file format as Abe.  Please refer to Abe.conf for more
# information about the parameters shown below and other advanced options.

# Port to serve web pages
port 2750

# Who to accept connections from.
# You can only have one host entry in the config file otherwise the explorer will report an error.
# host          # to accept connections from anybody (including localhost) e.g. production
# host localhost        # to only accept connections from your local machine e.g. testing

# Configure a MultiChain network
datadir += [{
        "dirname": "~/.multichain/integ-beta",              # Path to chain's data folder
        "loader": "default",                            # Do not change
        "chain": "Integrum Beta",                      # Display name in explorer
        "policy": "MultiChain"                          # Do not change

# Database type (do not change)
dbtype = sqlite3

# Filename of database
connect-args = chain1.explorer.sqlite

All data is ok. Port 6808 is open. Firewall not exist.

Why is it not working? (RPC failed: [Errno socket error] [Errno 111] Connection refused)

PS. I use Multichain 1.0.2.

asked Jan 3, 2018 by Lukasz

2 Answers

0 votes

The rpcport setting in multichain.conf does not have a hyphen in it.

answered Jan 4, 2018 by MultiChain
It still does not work. Any additional idea?
MultiChain needs to be actually running, and on the same machine as you're running the Explorer.
Yes - it is obvious. But it does not work ... Once (a few months ago) I tested it on version 1.0.1 and it worked. Now (at least at my place) I do not want to work.
You restarted MultiChain after correcting the rpc port setting? Also that the directory pointed to by dirname in the Explorer configuration is the right one for this chain?
# Filename of database
connect-args = chain1.explorer.sqlite

change these lines in your code to:

# Filename of database
connect-args = integ-beta.explorer.sqlite
+1 vote
I'm not an expert on MultiChain but am working with it. I ran into this issue and spent days trying to figure out what went wrong.  Please make sure that you follow the setup directions carefully.  Also, make sure that your multichain.conf has the correct entries in it.  It should look something like:

default-rpc-port = 6794

The port information is the key here, you should be using the port that was given to you when you setup your block chain
answered Jul 25, 2018 by rkottke