MS
On 25 Apr 2014 20:27, "Tomer Filiba" <[email protected]> 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
>
>
> On Fri, Apr 25, 2014 at 5:51 PM, M S Vishwanath Bhat <[email protected]>
wrote:
>>
>> 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.
>
>
> --
>
> ---
> 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
[email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
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.

Reply via email to