Wrong path for multichain.conf for Multichain Explorer

+1 vote

I am trying to get Multichain Explorer running and I updated the .conf file (chain2-core.conf in my case) and when starting it up, it cannot find my .conf file however I have the path correct in the .conf file:

[USER@SERVER multichain-explorer-master]$ sudo python -m Mce.abe --config chain2core.conf

failed to load /root/.multichain/chain2-core/multichain.conf: [Errno 2] No such file or directory: u'/root/.multichain/chain2-core/multichain.conf'
catch_up_rpc: abort
Skipping datadir /root/.multichain/chain2-core: [Errno 2] No such file or directory: u'/root/.multichain/chain2-core/blocks/blk00000.dat'
Abe initialized.
Listening on http://0.0.0.0:8080
Launched background thread to catch up tx every 60.0 seconds
^CTraceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/USER/MultichainExplorer/multichain-explorer-master/Mce/abe.py", line 4309, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/USER/MultichainExplorer/multichain-explorer-master/Mce/abe.py", line 4305, in main
    serve(store)
  File "/home/USER/MultichainExplorer/multichain-explorer-master/Mce/abe.py", line 4104, in serve
    httpd.serve_forever()
  File "/usr/lib64/python2.7/SocketServer.py", line 236, in serve_forever
    poll_interval)
  File "/usr/lib64/python2.7/SocketServer.py", line 155, in _eintr_retry
    return func(*args)
KeyboardInterrupt
 
[USER@SERVER multichain-explorer-master]$ cat ~/.multichain/chain2-core/multichain.conf
rpcuser=multichainrpc
rpcpassword=<PASSWORD APPEARS HERE>
“rpcport=<MY PORT>”

Based on running the cat command the file appears correctly, below is my .conf file:

 

[USER@SERVER multichain-explorer-master]$ cat chain2core.conf 
# Config file for MultiChain Explorer
#
# 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 8080

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

# Configure a MultiChain network
datadir += [{
        "dirname": "~/.multichain/chain2-core",              # Path to chain's data folder
        "loader": "default",                            # Do not change
        "chain": "MultiChain Chain2-Core",                      # Display name in explorer
        "policy": "MultiChain"                          # Do not change
        }]

# Database type (do not change)
dbtype = sqlite3

# Filename of database
connect-args = chain2core.explorer.sqlite
 
Is there something obvious I am missing or have setup incorrectly?
UPDATE: I changed the path to a direct path with my /home/user path however how can I avoid this? Is it because I run the abe command as root however my chain was installed using another user?
asked Sep 15 by anonymous

1 Answer

0 votes
Are you running the Explorer on the same server as the node? This is required because the Explorer reads some of the node's files directly.
answered 6 days ago by MultiChain
...