Hi,
I am running into an issue with reboot.
I wrote a rpyc service and made it a daemon. I wrote init script and put it
inside /etc/init.d/ and I also configured this service to start at the
startup using chkconfig.
Now after reboot I see below back trace in the server because of which the
server gets stopped.
No handlers could be found for logger "RUN_COMMAND/18861"
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.6/site-packages/rpyc/utils/server.py", line 178,
in _authenticate_and_serve_client
self._serve_client(sock2, credentials)
File "/usr/lib/python2.6/site-packages/rpyc/utils/server.py", line 202,
in _serve_client
conn.serve_all()
File "/usr/lib/python2.6/site-packages/rpyc/core/protocol.py", line 395,
in serve_all
self.serve(0.1)
File "/usr/lib/python2.6/site-packages/rpyc/core/protocol.py", line 383,
in serve
data = self._recv(timeout, wait_for_lock = True)
File "/usr/lib/python2.6/site-packages/rpyc/core/protocol.py", line 340,
in _recv
if self._channel.poll(timeout):
File "/usr/lib/python2.6/site-packages/rpyc/core/channel.py", line 43, in
poll
return self.stream.poll(timeout)
File "/usr/lib/python2.6/site-packages/rpyc/core/stream.py", line 39, in
poll
rl, _, _ = select([self], [], [], timeout)
error: (4, 'Interrupted system call')
And this is how I start the service
create_daemon()
from rpyc.utils.server import
ThreadedServer
t = ThreadedServer(run_command, port = 18861 )
t.start()
I don't know what might have caused it. This *might not be any issue
related to rpyc in particular* But I didn't know where else to ask.
Anybody know what has caused the backtrace and how to stop that from
happening?
Thanks...
Best Regards,
Vishwanath
--
---
You received this message because you are subscribed to the Google Groups
"rpyc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.