Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crashes after one of the clients stops working #33

Closed
GoogleCodeExporter opened this issue Nov 8, 2015 · 3 comments
Closed

Server crashes after one of the clients stops working #33

GoogleCodeExporter opened this issue Nov 8, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Seems to work. Thank you =)

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

@GoogleCodeExporter
Copy link
Author

Issue closed.

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

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant