Build error while deplyoing to roboRio (Eclipse, c++)

Hello,

So after 3 days of issues regarding deploying our build code to the roboRio, I’m getting kind of frustrated with the repeated build errors we were receiving.

Originally, we started getting a permission error regarding deploying code to the roboRio that was shown like this in eclipse:

We’ve assumed this was regarding a permission error & tried editing the roboRio through its web address page, putting a pass on admin.

Buildfile: C:\Users\Robotics Team 4012\workspace\Tank\Tank\build.xml
Trying to override old definition of task classloader
get-target-ip:
[echo] Trying Target: roboRIO-4012-FRC.local
[echo] roboRIO found via mDNS
dependencies:
[echo] roboRIO image version validated
deploy:
[sshexec] Connecting to roboRIO-4012-FRC.local:22
[sshexec] cmd : rm -f /home/lvuser/FRCUserProgram
[sshexec] Could not chdir to home directory /home/lvuser: Permission denied
[sshexec] rm: can’t stat ‘/home/lvuser/FRCUserProgram’: Permission denied
[sshexec] Remote command failed with exit status 1
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-4012-FRC.local:22

BUILD FAILED
C:\Users\Robotics Team 4012\wpilib\cpp\current\ant\build.xml:67: com.jcraft.jsch.JSchException: Could not send ‘C:\Users\Robotics Team 4012\workspace\Tank\Tank\Debug\FRCUserProgram’ to ‘/home/lvuser’ - 3: Permission denied

After a while of receiving this same error and verifying that our eclipse was setup correctly & the robot was imaged to 2016 we changed computers.

And now we receive a new error:

BUILD FAILED
C:\Users\Robotics\wpilib\cpp\current\ant\build.xml:45: Assertion failed boolean test.
roboRIO not found, please check that the roboRIO is connected, imaged and that the team number is set properly in Eclipse

At this point we are not too sure what the problem is and are considering calling National Instruments, any help?

Thanks.

Permission denied suggests to me that /home/lvuser is no longer readable by the lvuser user (not sure what would have changed that, but that’s what I would guess). I would suggest either ssh’ing into the RIO as admin and verifying the permissions on that folder, or simply reimaging the RIO if you want a simple solution.
As to the second issue, are you sure that your computer is connected to the RIO? Can you ping roborio-team-frc.local? The particular assertion that you’re running into there are the tests to make sure that your computer can actually talk to the RIO.

We’ve managed to use PuTTY to successfully ssh into our roboRio using our admin login, but how would we verify permissions? Perhaps we can load the program from here?

Folder permissions are just an operating system thing, you can use ls and its various flags to what permissions are set, and chmod to change them. I would suggest simply reimaging the RIO, it’s likely to be easier.

We’ve tried reimaging it several times, no luck. Perhaps you could tell us how to use ssh more effective, as I’m not expierenced with it at all. We’ve also put a pass on admin, perhaps we need to edit the build.properties?

SSH is simply a method opening a shell on a remote computer. Giving you a tutorial on how to use a Linux shell is a little beyond the scope of typing on my phone, but what is the output of a “ls -la /home” (don’t include the quotes)?

The build.properties shouldn’t need to be modified, unless you’ve changed the package of your program. It just tells the robot what class to run.

We had that error too after upgrading the image. Here’s what we did:

  1. Update the wpilib eclipse plugin. Make sure it’s version 0.1.0.2016(something)
  2. Close eclipse
  3. Delete (user profile folder)\wpilib
  4. Open eclipse

There was an issue with the new plugin updating the wpilib folder and deleting the folder lets it install correctly.

That error you quoted is simply that the computer couldn’t talk to the RIO. Deleting the wpilib folder should not have made a difference, it’s likely some other networking issue resolved itself while you were restoring that folder.
OP, will your programmer be coming in today to work, or do you still need help?

drwxr-xr-x 5 admin administ 416 Jun 5 2015 .
drwxrwxr-x 20 webserv ni 1616 Feb 10 00:16 …
drwxr-xr-x 2 admin administ 160 May 1 2015 admin
drwxrwsr-x 4 lvuser ni 584 Dec 17 2015 lvuser
lrwxrwxrwx 1 admin administ 11 Oct 26 2015 root -> /home/admin
drwxr-sr-x 3 webserv ni 360 Dec 17 2015 webserv

this is the outlog of that command

Trying to override old definition of task classloader
get-target-ip:
[echo] Trying Target: roboRIO-4012-FRC.local
[echo] roboRIO found via mDNS
dependencies:
[echo] roboRIO image version validated
deploy:
[sshexec] Connecting to roboRIO-4012-FRC.local:22
[sshexec] cmd : rm -f /home/lvuser/FRCUserProgram
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-4012-FRC.local:22
[scp] done.
[sshexec] Connecting to roboRIO-4012-FRC.local:22
[sshexec] cmd : killall -q netconsole-host || :
[scp] Connecting to roboRIO-4012-FRC.local:22

BUILD FAILED
C:\Users\Robotics Team 4012\wpilib\cpp\current\ant\build.xml:78: server indicated an error: scp: /home/lvuser//robotCommand: Permission denied

Total time: 6 seconds

We formatted and reimaged the roborio and got this new error.

How did you finally resolve this last error?

Not posting a solution but if you need to test code while a solution for this problem is found, you can upload the FRCUserProgram in your Robot’s Debug folder as admin into the /home/lvuser folder. Then if you ssh or putty into the roboRio as admin again you can manually execute the program as follows:

./home/lvuser/FRCUserProgram