Unable to start the pryc service after reboot

62 views
Skip to first unread message

M S Vishwanath Bhat

unread,
Apr 25, 2014, 10:51:19 AM4/25/14
to rp...@googlegroups.com
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



Tomer Filiba

unread,
Apr 25, 2014, 10:57:28 AM4/25/14
to rpyc
I assume you're using the latest release (3.2.2). This issue is fixed now in the master. Compare
and

You can either copy the fix to your local installation, or just install the latest from github (pip can install directly from git)


-tomer

-----------------------------------------------------------------
    
Tomer Filiba 
tomerfiliba.com        


--

---
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 rpyc+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

M S Vishwanath Bhat

unread,
Apr 25, 2014, 11:28:17 AM4/25/14
to rp...@googlegroups.com

MS


On 25 Apr 2014 20:27, "Tomer Filiba" <tomer...@gmail.com> wrote:
>
> I assume you're using the latest release (3.2.2). This issue is fixed now in the master. Compare
> https://github.com/tomerfiliba/rpyc/blob/4493248cf59ed0e97356db3e3121f2d6b3f5fcd0/rpyc/core/stream.py#L39
> and
> https://github.com/tomerfiliba/rpyc/blob/master/rpyc/core/stream.py#L43
>
> You can either copy the fix to your local installation, or just install the latest from github (pip can install directly from git)

Awesome. Its working now. I switched latest git head in master.

Thanks Tomer

Best Regards,
Vishwanath
>
>
> -tomer
>
> -----------------------------------------------------------------
>     
> Tomer Filiba 
> tomerfiliba.com        

> You received this message because you are subscribed to a topic in the Google Groups "rpyc" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/rpyc/87u3djacYYw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to rpyc+uns...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages