tCm3nc / ga-bitbot

Automatically exported from code.google.com/p/ga-bitbot
GNU General Public License v3.0
0 stars 0 forks source link

Server crashes after one of the clients stops working #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

    I ran one gal.py 'server' instance and two 'client' instances. All three of them were synced to today's git tree. After I stop one of the client instances using CTRL+c [@linux, with pypy], I get the output as follows:
-----
Traceback (most recent call last):
  File "app_main.py", line 51, in run_toplevel
  File "gal.py", line 237, in <module>
    sleep(5) #check one pid every n seconds.
KeyboardInterrupt
-----
...so far seems everything is working as expected. But.. The other client 
instance immidiately stops working:
-----
Traceback (most recent call last):
  File "app_main.py", line 53, in run_toplevel
  File "gal.py", line 238, in <module>
    if server.pid_check(pid,WATCHDOG_TIMEOUT) == "NOK":
  File "/usr/share/pypy-1.6/lib-python/2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/share/pypy-1.6/lib-python/2.7/xmlrpclib.py", line 1570, in __request
    verbose=self.__verbose
  File "/usr/share/pypy-1.6/lib-python/2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/share/pypy-1.6/lib-python/2.7/xmlrpclib.py", line 1292, in single_request
    self.send_content(h, request_body)
  File "/usr/share/pypy-1.6/lib-python/2.7/xmlrpclib.py", line 1439, in send_content
    connection.endheaders(request_body)
  File "/usr/share/pypy-1.6/lib-python/2.7/httplib.py", line 937, in endheaders
    self._send_output(message_body)
  File "/usr/share/pypy-1.6/lib-python/2.7/httplib.py", line 797, in _send_output
    self.send(msg)
  File "/usr/share/pypy-1.6/lib-python/2.7/httplib.py", line 759, in send
    self.connect()
  File "/usr/share/pypy-1.6/lib-python/2.7/httplib.py", line 740, in connect
    self.timeout, self.source_address)
  File "/usr/share/pypy-1.6/lib-python/modified-2.7/socket.py", line 616, in create_connection
    raise err
error: [Errno 111] Connection refused
-----
...ooops! Checked the server instance and saw that the gene server is no longer 
up =( Unfortunately, there is no new entry to be seen in 
gene_server_error_log.txt =(

Tried it once again and confirmed the results. This is not the first time I 
experienced such a problem, but is the first time I reported it. Please, look 
into it when you decide it is time to figure it out, and if you are unable to 
reproduce the issue, I would be glad to help in any way I can.

Grateful in advance!

Original issue reported on code.google.com by purge...@gmail.com on 29 Feb 2012 at 10:15

GoogleCodeExporter commented 8 years ago
updated the repo but the code still needs to be tested. all instances of gal.py 
would send the server.shutdown() message at exit. Now only the instance which 
launched the gene_server will send the shutdown message.

Original comment by brian.mo...@gmail.com on 29 Feb 2012 at 2:06

GoogleCodeExporter commented 8 years ago
Seems to work. Thank you =)

Original comment by purge...@gmail.com on 29 Feb 2012 at 2:48

GoogleCodeExporter commented 8 years ago
Issue closed.

Original comment by brian.mo...@gmail.com on 2 Mar 2012 at 12:06