Log in

View Full Version : Problem uploading code to roboRIO on new laptop


Hsifeulbhsifder
14-02-2015, 12:46
I have been trying to switch from a previous laptop too a new laptop, and everything is just fine, when it comes to controlling the robot, but when it comes to uploading new code, i get this error message:Buildfile: C:\Users\Jai P\Documents\Programs\workspace\2015_Prototype-1\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Jai P\Documents\Programs\workspace\2015_Prototype-1\build
[delete] Deleting directory C:\Users\Jai P\Documents\Programs\workspace\2015_Prototype-1\dist
compile:
[mkdir] Created dir: C:\Users\Jai P\Documents\Programs\workspace\2015_Prototype-1\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\Jai P/wpilib/java/current/lib/WPILib.jar:C:\Users\Jai P/wpilib/java/current/lib/NetworkTables.jar to build
[javac] Compiling 31 source files to C:\Users\Jai P\Documents\Programs\workspace\2015_Prototype-1\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\Jai P\Documents\Programs\workspace\2015_Prototype-1\dist
[mkdir] Created dir: C:\Users\Jai P\Documents\Programs\workspace\2015_Prototype-1\build\jars
[echo] [athena-jar] Copying jars from C:\Users\Jai P/wpilib/java/current/lib/WPILib.jar:C:\Users\Jai P/wpilib/java/current/lib/NetworkTables.jar to build/jars.
[copy] Copying 2 files to C:\Users\Jai P\Documents\Programs\workspace\2015_Prototype-1\build\jars
[jar] Building jar: C:\Users\Jai P\Documents\Programs\workspace\2015_Prototype-1\dist\FRCUserProgram.jar
get-target-ip:
[echo] Trying Target: roboRIO-5428.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-5428.local:22
[sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-5428.local:22
[scp] done.
[sshexec] Connecting to roboRIO-5428.local:22
[sshexec] Caught exception: SSH_MSG_DISCONNECT: 2 Too many authentication failures for admin
[scp] Connecting to roboRIO-5428.local:22

BUILD FAILED
C:\Users\Jai P\wpilib\java\current\ant\build.xml:114: com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 2 Too many authentication failures for admin

Total time: 11 seconds



And the new code isnt uploaded, while the old code stays on the roborio, and still active.

Joe Ross
14-02-2015, 19:25
Did you change the admin password on the roboRIO?

JacobD
16-02-2015, 12:17
Someone else was having a similar problem. They edited their admin information. So, you have to change that in build.properties file within the USER/wpilib/java/current/ant directory.

Inside the build.properties file there us a username and password entry.
By default (I assume) the username is lvuser, with a blank password.

Then change the information to the correct username and password.