|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Rookie team 4968 here, and we've been having some issues trying to deploy code to our robot. We have updated the roboRIO firmware, imaged the roboRIO, and deployed java to the roboRIO. However, when we try to deploy our code, we get the error Remote command failed with exit status 1, and the code does not deploy. We have tried changing the username and passwords as suggested by this post http://www.chiefdelphi.com/forums/sh...07#post1432107 However, it makes no difference.
Here is the log (error bold): Buildfile: C:\Users\Ryley Ongarato\workspace\Old Robot Code\build.xml Trying to override old definition of task classloader clean: [delete] Deleting directory C:\Users\Ryley Ongarato\workspace\Old Robot Code\build [delete] Deleting directory C:\Users\Ryley Ongarato\workspace\Old Robot Code\dist compile: [mkdir] Created dir: C:\Users\Ryley Ongarato\workspace\Old Robot Code\build [echo] [athena-compile] Compiling src with classpath=C:\Users\Ryley Ongarato/wpilib/java/current/lib/WPILib.jar:C:\Users\Ryley Ongarato/wpilib/java/current/lib/NetworkTables.jar to build [javac] Compiling 1 source file to C:\Users\Ryley Ongarato\workspace\Old Robot Code\build jar: [echo] [athena-jar] Making jar dist/FRCUserProgram.jar. [mkdir] Created dir: C:\Users\Ryley Ongarato\workspace\Old Robot Code\dist [mkdir] Created dir: C:\Users\Ryley Ongarato\workspace\Old Robot Code\build\jars [echo] [athena-jar] Copying jars from C:\Users\Ryley Ongarato/wpilib/java/current/lib/WPILib.jar:C:\Users\Ryley Ongarato/wpilib/java/current/lib/NetworkTables.jar to build/jars. [copy] Copying 2 files to C:\Users\Ryley Ongarato\workspace\Old Robot Code\build\jars [jar] Building jar: C:\Users\Ryley Ongarato\workspace\Old Robot Code\dist\FRCUserProgram.jar get-target-ip: [echo] Trying Target: roboRIO-4968.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...ller-java-only [sshexec] Connecting to roboRIO-4968.local:22 [sshexec] cmd : test -d /usr/local/frc/JRE deploy: [echo] [athena-deploy] Copying code over. [scp] Connecting to roboRIO-4968.local:22 [scp] done. [sshexec] Connecting to roboRIO-4968.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-4968.local:22 [scp] done. [scp] Connecting to roboRIO-4968.local:22 [scp] done. [echo] [athena-deploy] Starting program. [sshexec] Connecting to roboRIO-4968.local:22 [sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r; [sshexec] no process in pidfile '/var/run/natinst/FRC_UserProgram.pid' found; none killed BUILD SUCCESSFUL Total time: 9 seconds Also, when connecting to the robot with the driver station, we get the following error, (Not sure if this is just because of no code being on the robot, or if its another error, so im posting it): ERROR Unhandled exception instantiating robot org.usfirst.frc.team4968.robot.Robot java.lang.ClassNotFoundException: org.usfirst.frc.team4968.robot.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)] Last edited by Dinnesy : 26-01-2015 at 12:49. |
|
#2
|
|||
|
|||
|
Re: Remote command failed with exit status 1
My team is also having the same issues. I attempted to follow the steps here (http://khengineering.github.io/RoboRio/faq/java/), however when I do go to usr/local/frc/JRE/bin, I don't know which one is the jar file since it doesn't say if it is a jar file. (I see java, keytool, rmind, and rmiregistry)
We were previously able to get code working last week, but then this problem popped up this week. I've tried updating the firmware and re-imaging, but it didn't work. Unfortunately, my team's programmer left last year, so we're back to being rookies in terms of programming. So, that means I have no idea what this means. Not sure if it'll help, but here's my log (the error is also bolded): Buildfile: C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build.xml Trying to override old definition of task classloader clean: [delete] Deleting directory C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build [delete] Deleting directory C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\dist compile: [mkdir] Created dir: C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build [echo] [athena-compile] Compiling src with classpath=C:\Users\Robotics/wpilib/java/current/lib/WPILib.jar:C:\Users\Robotics/wpilib/java/current/lib/NetworkTables.jar to build [javac] Compiling 1 source file to C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build jar: [echo] [athena-jar] Making jar dist/FRCUserProgram.jar. [mkdir] Created dir: C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\dist [mkdir] Created dir: C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build\jars [echo] [athena-jar] Copying jars from C:\Users\Robotics/wpilib/java/current/lib/WPILib.jar:C:\Users\Robotics/wpilib/java/current/lib/NetworkTables.jar to build/jars. [copy] Copying 2 files to C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\build\jars [jar] Building jar: C:\Users\Robotics\Desktop\EclipseWorkspace\988_Sam ple_Code\dist\FRCUserProgram.jar get-target-ip: [echo] Trying Target: roboRIO-988.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...ller-java-only [sshexec] Connecting to roboRIO-988.local:22 [sshexec] cmd : test -d /usr/local/frc/JRE deploy: [echo] [athena-deploy] Copying code over. [scp] Connecting to roboRIO-988.local:22 [scp] done. [sshexec] Connecting to roboRIO-988.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-988.local:22 [scp] done. [scp] Connecting to roboRIO-988.local:22 [scp] done. [echo] [athena-deploy] Starting program. [sshexec] Connecting to roboRIO-988.local:22 [sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r; [sshexec] no process in pidfile '/var/run/natinst/FRC_UserProgram.pid' found; none killed BUILD SUCCESSFUL Total time: 8 seconds Last edited by hwu24110 : 29-01-2015 at 19:51. |
|
#3
|
|||||
|
|||||
|
Re: Remote command failed with exit status 1
Any chance both of you could post your code?
Please use code tags when doing so. To use a code tag place a [/code] at the end and a [code] at the beginning. |
|
#4
|
||||
|
||||
|
Re: Remote command failed with exit status 1
I was having a similar problem but I found that in the build.properties it was "frc.team5259" when it needs to be "frc5259"
if you go into your build.properties in Eclipse look for the package=, should be the first line, and just delete the ".team" out of it that should fix the problem. If not, it reads as if its opening files. If you go into the robot program project folder you can go into the src. it goes from org>usfirst>frc(teamnumber)>(projectname) to build.propreties its org.usfirst.frc(teamnumber).(projectname) make sure that they match. I think its an issue with the base program that Eclipse gives you and when Robotbuilder imports code. Last edited by TeamMagicSmoke : 30-01-2015 at 16:02. |
|
#5
|
||||||
|
||||||
|
Re: Remote command failed with exit status 1
The eclipse project wizard uses a different package by default then Robot Builder. If you create a project in eclipse, and then point Robot Builder to that same directory, I expect you would see issues.
|
|
#6
|
|||
|
|||
|
Re: Remote command failed with exit status 1
I found the problem. Turns out it was a problem with the code.
Code:
myRobot = new RobotDrive(0, 1, 2, 3);
myRobot.setExpiration(0.1);
xbox = new Joystick(0);
xbox2 = new Joystick(1);
LF = new Victor(0);
LR = new Victor(1);
RF = new Victor(2);
RR = new Victor(3);
FARM = new Talon(4);
RARM = new Talon(5);
lintake = new Talon(6);
rintake = new Talon(7);
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|