Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Remote command failed with exit status 1 (http://www.chiefdelphi.com/forums/showthread.php?t=133069)

el_pablo 17-01-2015 16:14

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

Joe Ross 17-01-2015 16:27

Re: Remote command failed with exit status 1
 
The real error is probably somewhere above what you posted. Please post the entire log.

1024Programming 17-01-2015 17:26

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.

Dinnesy 22-01-2015 10:25

Re: Remote command failed with exit status 1
 
Quote:

Originally Posted by 1024Programming (Post 1429769)
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

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!

lucas.alvarez96 24-01-2015 23:30

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?

1024Programming 27-01-2015 16:59

Re: Remote command failed with exit status 1
 
Quote:

Originally Posted by Dinnesy (Post 1432107)
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

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"

FRCteam5110 15-02-2015 11:19

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.

Jtbillick 16-02-2015 12:44

Re: Remote command failed with exit status 1
 
Quote:

Originally Posted by lucas.alvarez96 (Post 1433552)
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

VEX_6333 27-02-2015 13:34

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

legts 02-03-2015 14:37

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.

Fauge7 02-03-2015 19:51

Re: Remote command failed with exit status 1
 
There is usually an error some where else, try looking for the exception and posting it

VEX_6333 03-03-2015 10:26

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.

legts 03-03-2015 11:26

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.


All times are GMT -5. The time now is 12:40.

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