All, working on a basic project with RPyC and a Beaglebone Black. Currently
working to enable 'down-the-wire' updates by copying contents to BBB via
scp and restarting the RPyC service to pick up new changes. Logging in to
the BBB all of the following commands work:
systemctl status rpyc_server.service
sudo systemctl restart rpyc_server.service
sudo systemctl --system daemon-reload
The status command works from RPyC the other two do not. I every tried
wrapping all in a bash script with same results, works when logged in fails
from RPyC. Best 'fail' information I gotten is:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "SLT_MHL_Test.py", line 64, in Copley_Restart_Service
strOutput = c.root.Restart_Service()
File "C:\Python26\lib\site-packages\rpyc\core\netref.py", line 196, in
__call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
File "C:\Python26\lib\site-packages\rpyc\core\netref.py", line 71, in
syncreq
return conn.sync_request(handler, oid, *args)
File "C:\Python26\lib\site-packages\rpyc\core\protocol.py", line 438, in
sync_request
self.serve(0.1)
File "C:\Python26\lib\site-packages\rpyc\core\protocol.py", line 387, in
serve
data = self._recv(timeout, wait_for_lock = True)
File "C:\Python26\lib\site-packages\rpyc\core\protocol.py", line 345, in
_recv
data = self._channel.recv()
File "C:\Python26\lib\site-packages\rpyc\core\channel.py", line 50, in
recv
header = self.stream.read(self.FRAME_HEADER.size)
File "C:\Python26\lib\site-packages\rpyc\core\stream.py", line 195, in
read
raise EOFError("connection closed by peer")
EOFError: connection closed by peer
With or without the 'sudo' does not make any difference. I expect RPyC to
not need 'sudo' since the service in running at 'root' from a 'ps aux'
command. I feel like there are some permission/privilege issues.
Any suggestions or pointers would be great.
Thanks, Scott
--
---
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.