Go to Post Way to steal my thunder, Billfred! :p - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2016, 16:59
mattoreo310 mattoreo310 is offline
Registered User
FRC #4012
 
Join Date: Feb 2015
Location: New York
Posts: 20
mattoreo310 is an unknown quantity at this point
Post 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.

Quote:
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:
Quote:
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.
  #2   Spotlight this post!  
Unread 11-02-2016, 17:16
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: Build error while deplyoing to roboRio (Eclipse, c++)

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.
  #3   Spotlight this post!  
Unread 11-02-2016, 17:26
mattoreo310 mattoreo310 is offline
Registered User
FRC #4012
 
Join Date: Feb 2015
Location: New York
Posts: 20
mattoreo310 is an unknown quantity at this point
Re: Build error while deplyoing to roboRio (Eclipse, c++)

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?
  #4   Spotlight this post!  
Unread 11-02-2016, 17:31
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
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.
  #5   Spotlight this post!  
Unread 11-02-2016, 17:36
mattoreo310 mattoreo310 is offline
Registered User
FRC #4012
 
Join Date: Feb 2015
Location: New York
Posts: 20
mattoreo310 is an unknown quantity at this point
Re: Build error while deplyoing to roboRio (Eclipse, c++)

Quote:
Originally Posted by fsilberberg View Post
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?
  #6   Spotlight this post!  
Unread 11-02-2016, 17:53
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
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.
  #7   Spotlight this post!  
Unread 12-02-2016, 07:39
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 377
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Build error while deplyoing to roboRio (Eclipse, c++)

Quote:
Originally Posted by mattoreo310 View Post
And now we receive a new error:
Quote:
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.
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.
  #8   Spotlight this post!  
Unread 12-02-2016, 09:42
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Quote:
Originally Posted by euhlmann View Post
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?
  #9   Spotlight this post!  
Unread 12-02-2016, 15:24
mattoreo310 mattoreo310 is offline
Registered User
FRC #4012
 
Join Date: Feb 2015
Location: New York
Posts: 20
mattoreo310 is an unknown quantity at this point
Re: Build error while deplyoing to roboRio (Eclipse, c++)

Quote:
Originally Posted by fsilberberg View Post
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.



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
  #10   Spotlight this post!  
Unread 12-02-2016, 16:25
mattoreo310 mattoreo310 is offline
Registered User
FRC #4012
 
Join Date: Feb 2015
Location: New York
Posts: 20
mattoreo310 is an unknown quantity at this point
Re: Build error while deplyoing to roboRio (Eclipse, c++)

Quote:
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.
  #11   Spotlight this post!  
Unread 27-02-2016, 17:30
carrud carrud is offline
Registered User
AKA: Clark Rudder
FRC #2637
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Los Angeles Area
Posts: 20
carrud is an unknown quantity at this point
Re: Build error while deplyoing to roboRio (Eclipse, c++)

How did you finally resolve this last error?
  #12   Spotlight this post!  
Unread 27-02-2016, 19:04
lulzury lulzury is offline
Registered User
FRC #3512
 
Join Date: Jan 2016
Location: Orcutt
Posts: 2
lulzury is an unknown quantity at this point
Re: Build error while deplyoing to roboRio (Eclipse, c++)

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
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi