Log in

View Full Version : Remote command failed with exit status 1


el_pablo
17-01-2015, 16:14
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

Joe Ross
17-01-2015, 16:27
The real error is probably somewhere above what you posted. Please post the entire log.

1024Programming
17-01-2015, 17:26
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.

Dinnesy
22-01-2015, 10:25
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.

pluto7443
24-01-2015, 10:54
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!

lucas.alvarez96
24-01-2015, 23:30
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.j ava:360), java.lang.ClassLoader.loadClass(ClassLoader.java:4 24), sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308), java.lang.ClassLoader.loadClass(ClassLoader.java:3 57), java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a: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?

1024Programming
27-01-2015, 16:59
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

BrighidKHeh
14-02-2015, 12:57
i'm from team 3871 we have tried all of these and it is still popping up with " remote command failed with status 1"

FRCteam5110
15-02-2015, 11:19
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.

Jtbillick
16-02-2015, 12:44
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.j ava:360), java.lang.ClassLoader.loadClass(ClassLoader.java:4 24), sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308), java.lang.ClassLoader.loadClass(ClassLoader.java:3 57), java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a: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?

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

VEX_6333
27-02-2015, 13:34
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

legts
02-03-2015, 14:37
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.

Fauge7
02-03-2015, 19:51
There is usually an error some where else, try looking for the exception and posting it

VEX_6333
03-03-2015, 10:26
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.

legts
03-03-2015, 11:26
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.

VEX_6333
03-03-2015, 12:24
So, you're saying that if we fix the package error, we'll be able to push code again?

Joe Ross
03-03-2015, 12:36
So, you're saying that if we fix the package error, we'll be able to push code again?

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.

VEX_6333
03-03-2015, 13:00
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\FRCUserProg ram.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?

legts
03-03-2015, 13:36
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\FRCUserProg ram.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?

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

VEX_6333
03-03-2015, 13:43
It's "org.usfirst.frc.team1765.robot" Does that help?

Joe Ross
03-03-2015, 14:13
Does that help?

Like legts said, this doesn't show a problem, just that no robot code was running. To find out why the robot code isn't running, please post your riolog, which will hopefully have a stack trace.

VEX_6333
03-03-2015, 14:21
Like legts said, this doesn't show a problem, just that no robot code was running. To find out why the robot code isn't running, please post your riolog, which will hopefully have a stack trace.
I'm going to sound like a naive rookie, (which I kinda am) but how exactly do you do that?

Joe Ross
05-03-2015, 16:43
I'm going to sound like a naive rookie, (which I kinda am) but how exactly do you do that?

http://wpilib.screenstepslive.com/s/4485/m/13809/l/284333-using-riolog-to-view-console-output

VEX_6333
06-03-2015, 12:36
Thanks Joe. We solved the problem on our own, it was actually a HARDWARE issue. If anyone else is having this problem, we may be able to help because the "Remote command failed with exit status 1" message is not what's making the code not push. If the build is successful, the problem is the roboRIO.

Techwiz
01-04-2015, 19:44
--ONE SOLUTION--
If you are using JAVA make sure that you have installed the JRE as descrbed

https://wpilib.screenstepslive.com/s/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only

Mikey Richards
30-10-2015, 17:46
We have also had this problem on one of our test bench robots. After our RoboRio failed to run java code, we re-imaged it. Using the same java file that was being successfully sent to the robot earlier, we kept getting the same error with 2 different computers, both of which had eclipse mars and luna installed. How did you guys get the hardware fixed?

RufflesRidge
30-10-2015, 17:59
We have also had this problem on one of our test bench robots. After our RoboRio failed to run java code, we re-imaged it. Using the same java file that was being successfully sent to the robot earlier, we kept getting the same error with 2 different computers, both of which had eclipse mars and luna installed. How did you guys get the hardware fixed?

Sounds like you need to install the KRE as described in the post right above yours.

The FRC deployment scripts run something like a dozen remote commands on the roboRIO, this error by itself is fairly useless. If you are sure the JRE is loaded, post the whole deploy log.

Mikey Richards
31-10-2015, 13:41
OK. We realized we had never installed the roboRio hardware updates, and once we updated that it works just fine.

Unfortunately, our code still won't control the motors, but that is a different problem.