Closed theopolisme closed 8 years ago
The upgrade is almost certainly related. I haven't upgraded to 10.11 yet... I'm sure I will soonish, but I won't have access to a RoboRIO in time to diagnose/solve your problem.
One option you have, of course, is using the manual install/run steps from the robotpy documentation. It's not super convenient, but it works.
That option only works while you're ssh'ed into the robot, and isn't permanent. If you read cli_deploy.py, you can perform the same steps it does to deploy your code permanently. Here's what you need to do if you've deployed to that robot before:
lvuser
(no password) and do rm -rf /home/lvuser/py
scp -r /path/to/robot/code lvuser@roborio-5045.local:/home/lvuser/py
... and reset your robot, and that should do it. Certainly not as convenient, but you won't be dead in the water for your demo.
For debugging purposes, I would be interested in knowing the output of the following if you insert it at line 427 of installer.py:
with open(bfname, 'r') as fp:
print(fp.read())
I would also be interested in knowing what the output of the help command for 'put' is if you log in to the robot manually using sftp.
I also wonder if perhaps the temporary directory (/var/folders/...) actually has anything in it, or if there's something strange about creating temporary directories on 10.11.
Thanks for the quick & detailed response! I really appreciate it. I'll check this stuff out tomorrow when I'm back with the robot and will get back to you tomorrow evening.
Theo
I also noticed this issue recently when I updated my Arch Linux install.
For now I just did an scp-based deploy. I'll check out those debugging suggestions of yours soon, just didn't have time today.
FYI: I just fired up a RoboRIO tonight, and found that I have the same issue on Fedora 22. Interestingly enough, the recursive put doesn't seem to work at all, even when executing it manually.
I've temporarily switched the sftp
function in installer.py
to use scp (https://github.com/theopolisme/pyfrc/commit/1d5c516b75c92a54dd47f48930765677441c50e8) to make auto-deploys work again until this is figured out...
I will definitely get this fixed by kickoff, but I don't have time at the moment.
FYI, working on this now, but found there's a bug filed about this behavior of OpenSSH at https://bugzilla.mindrot.org/show_bug.cgi?id=2150
I give up, I couldn't get put -r
to work at all, even with a lot of weird permutations. I just ended up copying the files individually instead. Let me know if this fixes the problem for you.
Thanks Dustin! We're in the midst of exams, but I'll be able to give this a shot probably next week once I can get access to the school.
Hi, I'm on Team 5045 and we used (and really enjoyed!) RobotPy last year. I upgraded my Mac to 10.11 (possibly related?) a week or so ago, and suddenly I have started running into an error when attempting to deploy code to the robot.
I tried to figure out what was going on but really couldn't seem to find anything. I can ssh into to the robot just fine. I added something logging to the ssh_exec_pass method (printing after each
data = _read(pty_fd)
):It looks like somehow the sftp operation is hanging after entering the directory on the local machine? I don't know how to resolve this, but wondering if someone else on OSX 10.11 may able to replicate? Maybe a protocol mismatch or something between what's installed on the RoboRIO vs my machine?
Any ideas? We're in a tough spot as we're scheduled for a demo on Friday and right now the robot isn't operational. Any help would be much appreciated.
Cheers, Theo & Team 5045