Go to Post FIRST Isn't just about the robots, it's about Gracious Professionalism, co-opetition, and outreach also. - Julia Magoolia [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 9 votes, 4.89 average. Display Modes
  #1   Spotlight this post!  
Unread 17-01-2015, 16:14
el_pablo el_pablo is offline
Registered User
AKA: Nicolas Bourré
FRC #4007
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Canada
Posts: 6
el_pablo is an unknown quantity at this point
Remote command failed with exit status 1

Hi,

We are trying to program our roboRio for the first time. We are unable to send code and we are getting this error "Remote command failed with exit status 1". I googled and haven't found a solution for this error.

Can someone help with this?

Thanks!

Nicolas Bourre
Team 4007
Seminaire Ste-Marie
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2015, 16:27
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,544
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Remote command failed with exit status 1

The real error is probably somewhere above what you posted. Please post the entire log.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2015, 17:26
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
Re: Remote command failed with exit status 1

We had the same problem, the way we found to fix it is to load the code as admin instead of lvuser. if you click the [sshexec] it will open the build.xml. In the build.xml, replace all "${username}" with "admin" and all "${password}" with "". I don't know if that's the solution FIRST wants us to use, but it lets us load code onto the robot. If someone else has a better fix I'd very gladly try it.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-01-2015, 10:25
Dinnesy Dinnesy is offline
Registered User
FRC #4968 (Robo Hawks)
Team Role: Teacher
 
Join Date: Dec 2013
Rookie Year: 2014
Location: Lively
Posts: 19
Dinnesy is an unknown quantity at this point
Re: Remote command failed with exit status 1

Quote:
Originally Posted by 1024Programming View Post
We had the same problem, the way we found to fix it is to load the code as admin instead of lvuser. if you click the [sshexec] it will open the build.xml. In the build.xml, replace all "${username}" with "admin" and all "${password}" with "". I don't know if that's the solution FIRST wants us to use, but it lets us load code onto the robot. If someone else has a better fix I'd very gladly try it.
I tried changing the username to admin and leaving the password blank, however after i change them, I get the following error:

BUILD FAILED
C:\Users\Ryley Ongarato\wpilib\java\current\ant\build.xml:106: com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 2 Too many authentication failures for ${admin}

Am I doing something wrong? I tried using find and replace to replace all of them. I also tried only changing one of them.

Thanks.
Reply With Quote
  #5   Spotlight this post!  
Unread 24-01-2015, 10:54
pluto7443 pluto7443 is offline
Registered User
FRC #4917
 
Join Date: Mar 2014
Location: Canada
Posts: 17
pluto7443 is an unknown quantity at this point
Exclamation Re: Remote command failed with exit status 1

Hey - us at 4917 had this exact error. There were 3-10 of us working on it for about 6 hours before we figured it out. All solutions in this thread did not work.

We had to re-image our roboRIO. In order to do that:

-Open NI LabVIEW 2014 (when it opens it should say "FRC 2015 Getting Started" at the top)
-Go to utilities
-Re-imaging tool roboRIO 2015
-Hooked up the roboRIO with a USB printer cord
-Re-image roboRIO. This failed 4 times for us before successfully completing.
-After successfully completing, you should be good to download!

Hope it helps!
Reply With Quote
  #6   Spotlight this post!  
Unread 24-01-2015, 23:30
lucas.alvarez96's Avatar
lucas.alvarez96 lucas.alvarez96 is offline
Registered User
AKA: Lucas Alvarez
FRC #2576 (Chilean Heart)
Team Role: Mentor
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Chile
Posts: 115
lucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to all
Re: Remote command failed with exit status 1

Ok, so we had the same problem today and this is what I've gotten so far:
  • We configured the admin user on the roboRIO interface with computer A
  • We flashed the roboRIO, installed the Java 8 VM and flashed the VRM and PCM with computer A
  • I then attempted to upload a new code we had been working on with multiple classes onto the roboRIO with computer B
  • The upload process failed due to the privileges error previously described on this thread
  • I modified C:\Users\[USER]\wpilib\java\current\ant\build.xml by replacing all "${username}" with the username previously selected during the config/flash process. I did the same with the "${password}" field
  • I succesfully uploaded a sample tank drive robot code provided in the examples and managed to get all 3 green lights (comm, code, input) on the DS
  • When trying to upload the previous code with multiple classes once more, I received the following error:
    Code:
    ERROR Unhandled exception instantiating robot com.team2576.Robot java.lang.ClassNotFoundException: com.team2576.Robot at [java.net.URLClassLoader$1.run(URLClassLoader.java:372), java.net.URLClassLoader$1.run(URLClassLoader.java:361), java.security.AccessController.doPrivileged(Native Method), java.net.URLClassLoader.findClass(URLClassLoader.java:360), java.lang.ClassLoader.loadClass(ClassLoader.java:424), sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308), java.lang.ClassLoader.loadClass(ClassLoader.java:357), java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:197)]
  • I then re-uploaded the original example code and realized the build log included the following output with an error:
    Code:
    Buildfile: C:\Users\Lucas\FRC_Java\Tank Drive\build.xml
    Trying to override old definition of task classloader
    clean:
       [delete] Deleting directory C:\Users\Lucas\FRC_Java\Tank Drive\build
       [delete] Deleting directory C:\Users\Lucas\FRC_Java\Tank Drive\dist
    compile:
        [mkdir] Created dir: C:\Users\Lucas\FRC_Java\Tank Drive\build
         [echo] [athena-compile] Compiling src with classpath=C:\Users\Lucas/wpilib/java/current/lib/WPILib.jar:C:\Users\Lucas/wpilib/java/current/lib/NetworkTables.jar to build
        [javac] Compiling 1 source file to C:\Users\Lucas\FRC_Java\Tank Drive\build
    jar:
         [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
        [mkdir] Created dir: C:\Users\Lucas\FRC_Java\Tank Drive\dist
        [mkdir] Created dir: C:\Users\Lucas\FRC_Java\Tank Drive\build\jars
         [echo] [athena-jar] Copying jars from C:\Users\Lucas/wpilib/java/current/lib/WPILib.jar:C:\Users\Lucas/wpilib/java/current/lib/NetworkTables.jar to build/jars.
         [copy] Copying 2 files to C:\Users\Lucas\FRC_Java\Tank Drive\build\jars
          [jar] Building jar: C:\Users\Lucas\FRC_Java\Tank Drive\dist\FRCUserProgram.jar
    get-target-ip:
         [echo] Trying Target: roboRIO-2576.local
         [echo] roboRIO found via mDNS
    dependencies:
         [echo] roboRIO image version validated
         [echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only
      [sshexec] Connecting to roboRIO-2576.local:22
      [sshexec] cmd : test -d /usr/local/frc/JRE
    deploy:
         [echo] [athena-deploy] Copying code over.
          [scp] Connecting to roboRIO-2576.local:22
          [scp] done.
      [sshexec] Connecting to roboRIO-2576.local:22
      [sshexec] cmd : killall netconsole-host
      [sshexec] killall: netconsole-host: no process killed
      [sshexec] Remote command failed with exit status 1
          [scp] Connecting to roboRIO-2576.local:22
          [scp] done.
          [scp] Connecting to roboRIO-2576.local:22
          [scp] done.
         [echo] [athena-deploy] Starting program.
      [sshexec] Connecting to roboRIO-2576.local:22
      [sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
      [sshexec] start-stop-daemon: warning: killing process 9451: No such process
    BUILD SUCCESSFUL
    Total time: 9 seconds
    Error:
    Code:
    [sshexec] Remote command failed with exit status 1

Any ideas on why the code doesn't deploy correctly for the multi class project?
__________________
FRC 2576 2015-???: Mentor
FRC 2576 2013-2015: Programmer & Chairman's Presenter

Los Angeles Regional 2013: Gracious Professionalism Award | Los Angeles Regional 2014: Regional Chairman's Award

Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2015, 16:59
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
Re: Remote command failed with exit status 1

Quote:
Originally Posted by Dinnesy View Post
I tried changing the username to admin and leaving the password blank, however after i change them, I get the following error:

BUILD FAILED
C:\Users\Ryley Ongarato\wpilib\java\current\ant\build.xml:106: com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 2 Too many authentication failures for ${admin}

Am I doing something wrong? I tried using find and replace to replace all of them. I also tried only changing one of them.

Thanks.
It shouldn't be ${admin} it should only be admin
Reply With Quote
  #8   Spotlight this post!  
Unread 14-02-2015, 12:57
BrighidKHeh's Avatar
BrighidKHeh BrighidKHeh is offline
Registered User
FRC #3871 (Trojan Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Worthington, MN
Posts: 37
BrighidKHeh is an unknown quantity at this point
Re: Remote command failed with exit status 1

i'm from team 3871 we have tried all of these and it is still popping up with " remote command failed with status 1"
Reply With Quote
  #9   Spotlight this post!  
Unread 15-02-2015, 11:19
FRCteam5110's Avatar
FRCteam5110 FRCteam5110 is offline
Team Captain - Driver - Programmer
AKA: Caitlin Scroggins
FRC #5110 (Elks)
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Elk Rapids, MI
Posts: 3
FRCteam5110 is an unknown quantity at this point
Re: Remote command failed with exit status 1

Same issue here, I can still get the basic KitBot code to work so I'm getting the impression it's not a RoboRIO issue.
Reply With Quote
  #10   Spotlight this post!  
Unread 16-02-2015, 12:44
Jtbillick Jtbillick is offline
Registered User
FRC #4780
 
Join Date: Jan 2015
Location: Ohio
Posts: 18
Jtbillick is an unknown quantity at this point
Re: Remote command failed with exit status 1

Quote:
Originally Posted by lucas.alvarez96 View Post
Ok, so we had the same problem today and this is what I've gotten so far:
  • We configured the admin user on the roboRIO interface with computer A
  • We flashed the roboRIO, installed the Java 8 VM and flashed the VRM and PCM with computer A
  • I then attempted to upload a new code we had been working on with multiple classes onto the roboRIO with computer B
  • The upload process failed due to the privileges error previously described on this thread
  • I modified C:\Users\[USER]\wpilib\java\current\ant\build.xml by replacing all "${username}" with the username previously selected during the config/flash process. I did the same with the "${password}" field
  • I succesfully uploaded a sample tank drive robot code provided in the examples and managed to get all 3 green lights (comm, code, input) on the DS
  • When trying to upload the previous code with multiple classes once more, I received the following error:
    Code:
    ERROR Unhandled exception instantiating robot com.team2576.Robot java.lang.ClassNotFoundException: com.team2576.Robot at [java.net.URLClassLoader$1.run(URLClassLoader.java:372), java.net.URLClassLoader$1.run(URLClassLoader.java:361), java.security.AccessController.doPrivileged(Native Method), java.net.URLClassLoader.findClass(URLClassLoader.java:360), java.lang.ClassLoader.loadClass(ClassLoader.java:424), sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308), java.lang.ClassLoader.loadClass(ClassLoader.java:357), java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:197)]
  • I then re-uploaded the original example code and realized the build log included the following output with an error:
    Code:
    Buildfile: C:\Users\Lucas\FRC_Java\Tank Drive\build.xml
    Trying to override old definition of task classloader
    clean:
       [delete] Deleting directory C:\Users\Lucas\FRC_Java\Tank Drive\build
       [delete] Deleting directory C:\Users\Lucas\FRC_Java\Tank Drive\dist
    compile:
        [mkdir] Created dir: C:\Users\Lucas\FRC_Java\Tank Drive\build
         [echo] [athena-compile] Compiling src with classpath=C:\Users\Lucas/wpilib/java/current/lib/WPILib.jar:C:\Users\Lucas/wpilib/java/current/lib/NetworkTables.jar to build
        [javac] Compiling 1 source file to C:\Users\Lucas\FRC_Java\Tank Drive\build
    jar:
         [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
        [mkdir] Created dir: C:\Users\Lucas\FRC_Java\Tank Drive\dist
        [mkdir] Created dir: C:\Users\Lucas\FRC_Java\Tank Drive\build\jars
         [echo] [athena-jar] Copying jars from C:\Users\Lucas/wpilib/java/current/lib/WPILib.jar:C:\Users\Lucas/wpilib/java/current/lib/NetworkTables.jar to build/jars.
         [copy] Copying 2 files to C:\Users\Lucas\FRC_Java\Tank Drive\build\jars
          [jar] Building jar: C:\Users\Lucas\FRC_Java\Tank Drive\dist\FRCUserProgram.jar
    get-target-ip:
         [echo] Trying Target: roboRIO-2576.local
         [echo] roboRIO found via mDNS
    dependencies:
         [echo] roboRIO image version validated
         [echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only
      [sshexec] Connecting to roboRIO-2576.local:22
      [sshexec] cmd : test -d /usr/local/frc/JRE
    deploy:
         [echo] [athena-deploy] Copying code over.
          [scp] Connecting to roboRIO-2576.local:22
          [scp] done.
      [sshexec] Connecting to roboRIO-2576.local:22
      [sshexec] cmd : killall netconsole-host
      [sshexec] killall: netconsole-host: no process killed
      [sshexec] Remote command failed with exit status 1
          [scp] Connecting to roboRIO-2576.local:22
          [scp] done.
          [scp] Connecting to roboRIO-2576.local:22
          [scp] done.
         [echo] [athena-deploy] Starting program.
      [sshexec] Connecting to roboRIO-2576.local:22
      [sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
      [sshexec] start-stop-daemon: warning: killing process 9451: No such process
    BUILD SUCCESSFUL
    Total time: 9 seconds
    Error:
    Code:
    [sshexec] Remote command failed with exit status 1

Any ideas on why the code doesn't deploy correctly for the multi class project?
My team is having the exact same problem. I've been looking stuff up all night, but i still haven't found a solution
Reply With Quote
  #11   Spotlight this post!  
Unread 27-02-2015, 13:34
VEX_6333's Avatar
VEX_6333 VEX_6333 is offline
Captain, VEX Team 6333 CTRL_ALT_DEL
AKA: Thane McGarry
VRC #6333 (CTRL_ALT_DEL)
Team Role: Leadership
 
Join Date: Feb 2015
Rookie Year: 2014
Location: United States
Posts: 7
VEX_6333 is an unknown quantity at this point
Re: Remote command failed with exit status 1

Hey all, we're new to ChiefDelphi as members, but your forums have saved us on multiple occasions. Long story short, we're getting the same error. It started as remote command failed with exit status 1 only appearing in the console (we're using Eclipse to write in Java) as an error, but the build succeeded, but wouldn't upload to the robot. We tried a hard cable link, same result. Then we tried re-imaging the RoboRio, and now the build fails with C:\Users\DOC\wpilib\java\current\ant\build.xml:239 : Remote command failed with exit status 1. Any help?
Thanks!
VRC Team 6333 CTRL_ALT_DEL
FRC Team 1765 E1Bots
Reply With Quote
  #12   Spotlight this post!  
Unread 02-03-2015, 14:37
legts legts is offline
Autonomous Queen
FRC #2399 (The Fighting Unicorns)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Ohio
Posts: 73
legts is an unknown quantity at this point
Re: Remote command failed with exit status 1

My team has gotten the same error on some occasions. If I recall correctly what was wrong with our code was the robot package wasn't imported correctly. If I could see the imports of one of your commands I can check to see if my theory is correct.
Reply With Quote
  #13   Spotlight this post!  
Unread 02-03-2015, 19:51
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Remote command failed with exit status 1

There is usually an error some where else, try looking for the exception and posting it
Reply With Quote
  #14   Spotlight this post!  
Unread 03-03-2015, 10:26
VEX_6333's Avatar
VEX_6333 VEX_6333 is offline
Captain, VEX Team 6333 CTRL_ALT_DEL
AKA: Thane McGarry
VRC #6333 (CTRL_ALT_DEL)
Team Role: Leadership
 
Join Date: Feb 2015
Rookie Year: 2014
Location: United States
Posts: 7
VEX_6333 is an unknown quantity at this point
Re: Remote command failed with exit status 1

Has anyone actually solved this problem in a way that they can explain why what they did works? Everyone I've seen who has solved the issue seems to have fixed it by a fluke. Can someone explain exactly what the error even means? I can't even find a definition.
Reply With Quote
  #15   Spotlight this post!  
Unread 03-03-2015, 11:26
legts legts is offline
Autonomous Queen
FRC #2399 (The Fighting Unicorns)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Ohio
Posts: 73
legts is an unknown quantity at this point
Re: Remote command failed with exit status 1

The error is sort of encompasses a wide area of things. It can be Eclipse setup issues, package import stuff, and a whole host of other issues. I've seen it happen twice where packages aren't imported correctly and this error is thrown.
Reply With Quote
Reply


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 12:40.

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