How does one configure web-demo

0 votes

I have installed httpd and php and copied the files to /var/www/html

I have one multichaind running

multichaind aerospace -daemon

but the site shows another chain and the port is wrong

[dc@manufacturer .multichain]$ multichain-cli aerospace

MultiChain Core RPC client build 1.0 alpha 27 protocol 10007


Interactive mode

aerospace: getinfo
{"method":"getinfo","params":[],"id":1,"chain_name":"aerospace"}

{
    "version" : "1.0 alpha 27",
    "protocolversion" : 10006,
    "chainname" : "aerospace",
    "description" : "MultiChain aerospace",
    "protocol" : "multichain",
    "port" : 9573,
    "setupblocks" : 60,
    "nodeaddress" : "aerospace@10.0.2.15:9573",
    "burnaddress" : "1XXXXXXWUqXXXXXXWTXXXXXXWJXXXXXXZNx6Yz",
    "incomingpaused" : false,
    "miningpaused" : false,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "walletdbversion" : 2,
    "reindex" : false,
    "blocks" : 312,
    "timeoffset" : 0,
    "connections" : 1,
    "proxy" : "",
    "difficulty" : 0.00001526,
    "testnet" : false,
    "keypoololdest" : 1486346471,
    "keypoolsize" : 2,
    "paytxfee" : 0.00000000,
    "relayfee" : 0.00000000,
    "errors" : ""
}

 

The webdemo site reports

My Node

Error: HTTP 0
http://10.0.2.15:9719/

Connected Nodes

Error: HTTP 0
http://10.0.2.15:9719/

My Addresses

Error: HTTP 0
http://10.0.2.15:9719/

 

 

asked Feb 5, 2017 by Jim Schmidt

1 Answer

0 votes

Please follow the full installation instructions for the Explorer – you need to set the credentials (including the rpcport) correctly.

answered Feb 6, 2017 by MultiChain
[root@genesis html]# pwd
/var/www/html
[root@genesis html]# cat config.txt
default.name=aero                   # name to display in the web interface
default.rpchost=192.168.56.103              # IP address of MultiChain node
default.rpcport=4756                  # see rpc-port from chain parameters
default.rpcuser=multichainrpc          # username for RPC from multichain.conf
default.rpcpassword=GHkXpwXQVU45d3yGgQdJhURRFNSJzvZKU7FjdHLGReU9

[dc@genesis aero]$ cat multichain.conf
rpcuser=multichainrpc
rpcpassword=GHkXpwXQVU45d3yGgQdJhURRFNSJzvZKU7FjdHLGReU9
rpcport=4756
rpcallowip=127.0.0.1
rpcallowip=10.0.2.15/255.0.0.0
rpcallowip=192.168.56.103/255.255.255.0

[dc@genesis aero]$ ifconfig -a
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::685b:eed8:197:103  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:17:38:97  txqueuelen 1000  (Ethernet)
        RX packets 70747  bytes 101290497 (96.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17367  bytes 1066542 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.56.103  netmask 255.255.255.0  broadcast 192.168.56.255
        inet6 fe80::f695:46e8:7908:977  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:9c:d4:6c  txqueuelen 1000  (Ethernet)
        RX packets 157765  bytes 16981464 (16.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 148981  bytes 20716301 (19.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 201202  bytes 47809276 (45.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 201202  bytes 47809276 (45.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[dc@genesis aero]$ ifconfig -a
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::685b:eed8:197:103  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:17:38:97  txqueuelen 1000  (Ethernet)
        RX packets 70747  bytes 101290497 (96.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17367  bytes 1066542 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.56.103  netmask 255.255.255.0  broadcast 192.168.56.255
        inet6 fe80::f695:46e8:7908:977  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:9c:d4:6c  txqueuelen 1000  (Ethernet)
        RX packets 157765  bytes 16981464 (16.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 148981  bytes 20716301 (19.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 201202  bytes 47809276 (45.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 201202  bytes 47809276 (45.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

/home/dc/.multichain/aero
[dc@genesis aero]$ grep rpc-port params.dat
default-rpc-port = 4756                 # Default TCP/IP port for incoming JSON-RPC API requests.


What am I missing?
Are you using 192.168.. or 10.0... IP scheme, It needs to be consistent. Did you install this on a virtual machine or what.
...