Why does 'Multi Chain Explorer' stop?

+2 votes
In my multi-chain properties, block time is 60 seconds. And in a multi-chain, catch_up_tx_interval is 30 seconds. Also use crontab to run --no-serve every minute. And run the web with --no-load.

The --no-load process is alive, but the web stops working.

Give me a solution please

Thank you
asked Aug 22, 2017 by minsoonss

1 Answer

0 votes

It sounds like you are spawning multiple copies of the --no-serve instance, without each previous one quitting. Please try running just one type of each instance, without cron, instead. You may need to to stop some of the previous instances first, or just reboot the server.

answered Aug 23, 2017 by MultiChain
As far as I know, the '--no-serve' word tells the process to terminate once it is used to fetch the data.
Apologies - you are right about this. There seems to be some other issues, we'll check it out and revert shortly.
thanks please give me solution
Did you complete the step in the README about adding the rpcport to multichain.conf? Once we did this it solved the problem that we thought we had seen.
Yes I did that step
The problem is that it is not running now but it stops when it runs for a long time
There is no other solution
Do you mean it *is* running now but it stops when it runs for a long time?
Currently running.
Explorer has not stopped yet.
But until this time, the explorer kept pausing so I ran it again
So please note when it stops next time and let us know the circumstances.
'nohup.out' last message
121.131.232.5 - - [28/Aug/2017 12:39:00] "GET /js/bootstrap.min.js HTTP/1.1" 200 36868
121.131.232.5 - - [28/Aug/2017 12:39:00] "GET /js/jquery-1.11.3.min.js HTTP/1.1" 200 95957
121.131.232.5 - - [28/Aug/2017 12:39:00] "GET /css/bootstrap-theme.min.css HTTP/1.1" 200 23409
fixed path_info
217.96.40.85 - - [28/Aug/2017 12:39:04] "HEAD http://52.78.97.100:80/mysql/admin/ HTTP/1.1" 301 229
fixed path_info
217.96.40.85 - - [28/Aug/2017 12:39:04] "HEAD http://52.78.97.100:80/mysql/mysqlmanager/ HTTP/1.1" 301 243
121.131.232.5 - - [28/Aug/2017 12:39:05] "GET /GSChain%20kaicoin/recent?random=0.8435385753385793 HTTP/1.1" 200 3102
fixed path_info
217.96.40.85 - - [28/Aug/2017 12:39:05] "HEAD http://52.78.97.100:80/phpmyadmin/ HTTP/1.1" 301 227

After output like above, it stopped.
running time
2017.08.24 02:35 ~ 2017.08.28 12:39
Thanks. Did you redirect stderr to nohup,out as well? See this for how: https://stackoverflow.com/questions/12820616/redirect-nohups-stderr-to-nohup-out
No, I will try now.
If I have a problem, can I reply again?
Yes of course.
I have an error
Traceback (most recent call last):
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 86, in run
    self.finish_response()
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 128, in finish_response
    self.write(data)
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 212, in write
    self.send_headers()
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 270, in send_headers
    self.send_preamble()
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 191, in send_preamble
    self._write('HTTP/%s %s\r\n' % (self.http_version,self.status))
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 391, in _write
    self.stdout.write(data)
  File "/usr/lib/python2.7/socket.py", line 328, in write
    self.flush()
  File "/usr/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 104] Connection reset by peer

Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 654, in __init__
    self.finish()
  File "/usr/lib/python2.7/SocketServer.py", line 713, in finish
    self.wfile.close()
  File "/usr/lib/python2.7/socket.py", line 283, in close
    self.flush()
  File "/usr/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe

what should i do in this situation
I ran again after the error occurred. However, the web was running for a few hours and did not fetch any other errors and did not fetch data during the refresh process.
Thanks for posting that. This looks like a problem in Python's web serving code rather than something in the MultiChain Explorer code. You might want to try upgrading Python or else looking on Stack Overflow for some answers. For example: https://stackoverflow.com/questions/20568216/python-handling-socket-error-errno-104-connection-reset-by-peer
The above problem is different from the problem I had first.
My problem is that as the web page is being refreshed, it loops without getting the data. And no error occurs.
Can you use a Network debugger in your browser to see what is going on? What requests are being sent?
when stop the explorer, I saw network debugger in my browser
then 'recent?random=0.5544808015787435' these requests are steadily occur but page is stop. The page is refreshing
requset status is pending
Those repeated requests (so long as the random number changes) is expected behavior. I do not know why the page is coming up empty in your browser. If you want you can share a link to your blockchain explorer and we can take a look.
...