Remote command failed with exit status 1


#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


#2

The real error is probably somewhere above what you posted. Please post the entire log.


#3

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.


#4

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.


#5

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!


#6

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:
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:
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:

[sshexec] Remote command failed with exit status 1

Any ideas on why the code doesn’t deploy correctly for the multi class project?


#7

It shouldn’t be ${admin} it should only be admin


#8

i’m from team 3871 we have tried all of these and it is still popping up with " remote command failed with status 1"


#9

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.


#10

My team is having the exact same problem. I’ve been looking stuff up all night, but i still haven’t found a solution


#11

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


#12

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.


#13

There is usually an error some where else, try looking for the exception and posting it


#14

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.


#15

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.


#16

So, you’re saying that if we fix the package error, we’ll be able to push code again?


#17

Do you have a package error? You haven’t provided any information that would lead to that conclusion, he just posted one example. Because there are many things that could cause this message, including many in which there isn’t any problem, you need to post the entire build log as well as the riolog for anyone to give you any advice.


#18

Okay, here is the build log:

Buildfile: C:\Users\DOC\workspace\DriveTrain\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\DOC\workspace\DriveTrain\build
[delete] Deleting directory C:\Users\DOC\workspace\DriveTrain\dist
compile:
[mkdir] Created dir: C:\Users\DOC\workspace\DriveTrain\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\DOC/wpilib/java/current/lib/WPILib.jar:C:\Users\DOC/wpilib/java/current/lib/NetworkTables.jar to build
[javac] Compiling 1 source file to C:\Users\DOC\workspace\DriveTrain\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\DOC\workspace\DriveTrain\dist
[mkdir] Created dir: C:\Users\DOC\workspace\DriveTrain\build\jars
[echo] [athena-jar] Copying jars from C:\Users\DOC/wpilib/java/current/lib/WPILib.jar:C:\Users\DOC/wpilib/java/current/lib/NetworkTables.jar to build/jars.
[copy] Copying 2 files to C:\Users\DOC\workspace\DriveTrain\build\jars
[jar] Building jar: C:\Users\DOC\workspace\DriveTrain\dist\FRCUserProgram.jar
get-target-ip:
[echo] Trying Target: roboRIO-1765.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-1765.local:22
[sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-1765.local:22
[scp] done.
[sshexec] Connecting to roboRIO-1765.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-1765.local:22
[scp] done.
[scp] Connecting to roboRIO-1765.local:22
[scp] done.
[echo] [athena-deploy] Starting program.
[sshexec] Connecting to roboRIO-1765.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 2831: No such process
BUILD SUCCESSFUL
Total time: 34 seconds

Does that help?


#19

That looks like it should have worked. Can you post what the package you’re working out of is? For my team it is “package org.usfirst.frc.team2399.robot;” inside of OI and Robot.java


#20

It’s “org.usfirst.frc.team1765.robot” Does that help?