Cannot launch explorer

+1 vote
python -m Mce.abe --config chain1.conf
Abe initialized.
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/zozo/explorer/ZoZoExplorer/Mce/abe.py", line 4506, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/zozo/explorer/ZoZoExplorer/Mce/abe.py", line 4502, in main
    serve(store)
  File "/home/zozo/explorer/ZoZoExplorer/Mce/abe.py", line 4277, in serve
    httpd = make_server(args.host, port, abe, ExplorerWSGIServer)
  File "/usr/lib/python2.7/wsgiref/simple_server.py", line 151, in make_server
    server = server_class((host, port), handler_class)
  File "/usr/lib/python2.7/SocketServer.py", line 420, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/wsgiref/simple_server.py", line 48, in server_bind
    HTTPServer.server_bind(self)
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib/python2.7/SocketServer.py", line 434, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.gaierror: [Errno -2] Name or service not known
asked Apr 1, 2021 by makoya
it worked but now i have another problem.
when i launch explorer from local host seems to work but the actual set up is that the explorer is in a droplet server so i want it to be accessible outside the local host so that i can see it when i pu t the ip:port on the browser. I tried uncomment that from the conf file but it gives error, it only launches when the connection setting is local host.
python -m Mce.abe --config chain1.conf
Abe initialized.
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/mjeje/explorer/mjeje-explorer/Mce/abe.py", line 4506, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/mjeje/explorer/mjeje-explorer/Mce/abe.py", line 4502, in main
    serve(store)
  File "/home/mjeje/explorer/mjeje-explorer/Mce/abe.py", line 4277, in serve
    httpd = make_server(args.host, port, abe, ExplorerWSGIServer)
  File "/usr/lib/python2.7/wsgiref/simple_server.py", line 151, in make_server
    server = server_class((host, port), handler_class)
  File "/usr/lib/python2.7/SocketServer.py", line 420, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/wsgiref/simple_server.py", line 48, in server_bind
    HTTPServer.server_bind(self)
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib/python2.7/SocketServer.py", line 434, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.gaierror: [Errno -2] Name or service not known

1 Answer

0 votes

This is most likely to be a problem with the port you have chosen in the Explorer configuration. This needs to be a free port in the range 0...65535

answered Apr 1, 2021 by MultiChain
Abe initialized.
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/mjeje/explorer/mjeje-explorer/Mce/abe.py", line 4506, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/mjeje/explorer/mjeje-explorer/Mce/abe.py", line 4502, in main
    serve(store)
  File "/home/mjeje/explorer/mjeje-explorer/Mce/abe.py", line 4277, in serve
    httpd = make_server(args.host, port, abe, ExplorerWSGIServer)
  File "/usr/lib/python2.7/wsgiref/simple_server.py", line 151, in make_server
    server = server_class((host, port), handler_class)
  File "/usr/lib/python2.7/SocketServer.py", line 420, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/wsgiref/simple_server.py", line 48, in server_bind
    HTTPServer.server_bind(self)
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib/python2.7/SocketServer.py", line 434, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.gaierror: [Errno -2] Name or service not known
its ok now, it seems it was a commenting matter when i deleted the # in the explorer conf file, thanks.
...