FRC 2017-2018 Java Code Failing to Deploy/Failing to Connect

Hi everyone!

We are experiencing some issues with getting our robot running.
Specifically, every time we build the code, we either cannot build the code/deploy it, or we are unable to connect to our robot through FRC Driver Station (on Mac or Windows).

This is some of the default tank drive code that we’re trying to run:

package org.usfirst.frc.team5212.robot;

import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.drive.DifferentialDrive;

/**
 * This is a demo program showing the use of the RobotDrive class, specifically
 * it contains the code necessary to operate a robot with tank drive.
 */
public class Robot extends IterativeRobot {
	
	private DifferentialDrive m_myRobot;
	private Joystick m_leftStick;
	private Joystick m_rightStick;
	
	@Override
	public void robotInit() {
		m_myRobot = new DifferentialDrive(new Talon(1), new Talon(13));
		m_leftStick = new Joystick(0);
		m_rightStick = new Joystick(1);
	}
	
	@Override
	public void teleopPeriodic() {
		m_myRobot.tankDrive(m_leftStick.getY(), m_rightStick.getY());
	}
}

Here is the log when I try to deploy:

Buildfile: /Users/amogh/Documents/TAMS/Robotics/FRC/Tank Drive/build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory /Users/amogh/Documents/TAMS/Robotics/FRC/Tank Drive/build
   [delete] Deleting directory /Users/amogh/Documents/TAMS/Robotics/FRC/Tank Drive/dist
compile:
    [mkdir] Created dir: /Users/amogh/Documents/TAMS/Robotics/FRC/Tank Drive/build
     [echo] [athena-compile] Compiling src with classpath=/Users/amogh/wpilib/java/current/lib/WPILib.jar:/Users/amogh/wpilib/java/current/lib/ntcore.jar:/Users/amogh/wpilib/java/current/lib/cscore.jar:/Users/amogh/wpilib/java/current/lib/wpiutil.jar to build
    [javac] Compiling 1 source file to /Users/amogh/Documents/TAMS/Robotics/FRC/Tank Drive/build
jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
    [mkdir] Created dir: /Users/amogh/Documents/TAMS/Robotics/FRC/Tank Drive/dist
    [mkdir] Created dir: /Users/amogh/Documents/TAMS/Robotics/FRC/Tank Drive/build/jars
     [echo] [athena-jar] Copying jars to build/jars.
     [copy] Copying 4 files to /Users/amogh/Documents/TAMS/Robotics/FRC/Tank Drive/build/jars
      [jar] Building jar: /Users/amogh/Documents/TAMS/Robotics/FRC/Tank Drive/dist/FRCUserProgram.jar
get-target-ip:
     [echo] Finding roboRIO...
[find-roborio] could not get IP from DS
[find-roborio] could not resolve roboRIO-5212-FRC.lan
[find-roborio] resolved roboRIO-5212-FRC.local to 10.52.12.69
[find-roborio] trying 10.52.12.2
[find-roborio] trying 172.22.11.2
[find-roborio] trying 10.52.12.69
     [echo] roboRIO found at 10.52.12.69, image FRC_roboRIO_2018_v16
dependencies:
     [echo] roboRIO image version validated
     [echo] Installing Azul Zulu JRE, this may take a couple of minutes...
   [webdav] deleting http://10.52.12.69/files/tmp/zulu-jre_1.8.0-131_cortexa9-vfpv3.ipk
   [webdav] putting /Users/amogh/wpilib/java/current/ant/zulu-jre_1.8.0-131_cortexa9-vfpv3.ipk to http://10.52.12.69/files/tmp/zulu-jre_1.8.0-131_cortexa9-vfpv3.ipk
  [sshexec] Connecting to 10.52.12.69:22
  [sshexec] cmd : sed -i -e 's/^StartupDLLs/;StartupDLLs/' /etc/natinst/share/ni-rt.ini; opkg remove zulu-jre\*; opkg install /tmp/zulu-jre_1.8.0-131_cortexa9-vfpv3.ipk; rm /tmp/zulu-jre_1.8.0-131_cortexa9-vfpv3.ipk
  [sshexec] Removing zulu-jre (1.8.0) from root...
  [sshexec] Installing zulu-jre (1.8.0) on root
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/rt.jar': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/management/jmxremote.password.template': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/management/jmxremote.access': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/management/management.properties': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/management/snmp.acl.template': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/charsets.jar': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libsunec.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libfontmanager.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libattach.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libfreetype.so.6': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libjava_crw_demo.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libjaas_unix.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libj2pcsc.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libj2gss.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/client/Xusage.txt': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/client/libjvm.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libawt_xawt.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libhprof.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libnio.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libjsig.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libawt.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libmlib_image.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libnpt.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/jli/': Can't create '/usr/local/frc/JRE/lib/aarch32/jli'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/jli/libjli.so': Can't create '/usr/local/frc/JRE/lib/aarch32/jli/libjli.so'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libsctp.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libverify.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libsplashscreen.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/liblcms.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libnet.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libunpack.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libjsound.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libjsoundalsa.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libdt_socket.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libjdwp.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libj2pkcs11.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libjawt.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libmanagement.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libjsdt.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libinstrument.so': Write failed
  [sshexec] Warning wh
  [sshexec] en extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libawt_headless.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libjava.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libzip.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/libjpeg.so': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/aarch32/jvm.cfg': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/security/': Can't create '/usr/local/frc/JRE/lib/security'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/security/cacerts': Can't create '/usr/local/frc/JRE/lib/security/cacerts'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/security/blacklisted.certs': Can't create '/usr/local/frc/JRE/lib/security/blacklisted.certs'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/security/java.policy': Can't create '/usr/local/frc/JRE/lib/security/java.policy'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/security/US_export_policy.jar': Can't create '/usr/local/frc/JRE/lib/security/US_export_policy.jar'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/security/local_policy.jar': Can't create '/usr/local/frc/JRE/lib/security/local_policy.jar'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/security/java.security': Can't create '/usr/local/frc/JRE/lib/security/java.security'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/jsse.jar': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/cmm/': Can't create '/usr/local/frc/JRE/lib/cmm'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/cmm/LINEAR_RGB.pf': Can't create '/usr/local/frc/JRE/lib/cmm/LINEAR_RGB.pf'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/cmm/sRGB.pf': Can't create '/usr/local/frc/JRE/lib/cmm/sRGB.pf'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/cmm/CIEXYZ.pf': Can't create '/usr/local/frc/JRE/lib/cmm/CIEXYZ.pf'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/cmm/GRAY.pf': Can't create '/usr/local/frc/JRE/lib/cmm/GRAY.pf'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/cmm/PYCC.pf': Can't create '/usr/local/frc/JRE/lib/cmm/PYCC.pf'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/resources.jar': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/psfont.properties.ja': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/tzdb.dat': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/jvm.hprof.txt': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/net.properties': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/jce.jar': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/meta-index': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/applet/': Can't create '/usr/local/frc/JRE/lib/applet'
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/content-types.properties': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/currency.data': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/flavormap.properties': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/calendars.properties': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/logging.properties': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/sound.properties': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/classlist': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/lib/psfontj2d.properties': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/ASSEMBLY_EXCEPTION': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/THIRD_PARTY_README': Write failed
  [sshexec] Warning when extracting archive entry '/usr/local/frc/JRE/LICE
  [sshexec] Failed to set capabilities on file `/usr/local/frc/JRE/bin/java' (Invalid argument)
  [sshexec] usage: setcap -q] -v] (-r|-|<caps>) <filename>  ... (-r|-|<capsN>) <filenameN> ]
  [sshexec]  Note <filename> must be a regular (non-symlink) file.
  [sshexec] ///var/lib/opkg/info/zulu-jre.postinst: line 5: echo: write error: No space left on device
  [sshexec] ///var/lib/opkg/info/zulu-jre.postinst: line 6: echo: write error: No space left on device
  [sshexec] /sbin/ldconfig: Writing of cache data failed: No space left on device
  [sshexec] Collected errors:
  [sshexec]  * pkg_run_script: package "zulu-jre" postinst script returned status 1.
  [sshexec]  * opkg_configure: zulu-jre.postinst returned 1.
  [sshexec] NSE': Write failed
  [sshexec] Configuring zulu-jre.
deploy:
   [webdav] getting http://10.52.12.69/files/usr/local/frc/lib/User_Libraries.properties
     [echo] [athena-deploy] Copying code over.
   [webdav] deleting http://10.52.12.69/files/home/lvuser/FRCUserProgram.jar
   [webdav] putting /Users/amogh/Documents/TAMS/Robotics/FRC/Tank Drive/dist/FRCUserProgram.jar to http://10.52.12.69/files/home/lvuser/FRCUserProgram.jar
   [webdav] deleting http://10.52.12.69/files/home/lvuser/robotCommand
   [webdav] putting /Users/amogh/wpilib/java/current/ant/robotCommand to http://10.52.12.69/files/home/lvuser/robotCommand
     [echo] [athena-deploy] Starting program.
  [sshexec] Connecting to 10.52.12.69:22
  [sshexec] Caught exception: SSH_MSG_DISCONNECT: 2 Too many authentication failures 
BUILD SUCCESSFUL
Total time: 32 seconds


Any help would be greatly appreciated.

Looks like you have a password on the admin account on your roboRIO. You need to remove it.

This might be of help.

The issue is the filesystem on your roborio is full (“write error: No space left on device”). You probably copied something you didn’t intend to to /home/lvuser (you can log in via either ssh or use Windows Explorer to ftp://roborio-TEAM-frc.local/home/lvuser to try to figure out what’s eating all the space).

If you can get in over ssh, the command

du -h -d 1

can help you determine which folder uses so much space.

We looked at the admin accounts on the roboRIO - the admin account password is blank.

Additionally, the link that you provided (ftp://roborio-TEAM-frc.local/home/lvuser) doesn’t link to a loadable webpage.

How can we SSH in to the roboRIO? The IP address that we tried (the one that shows up as belonging to the roboRIO) - on a Macbook Pro - doesn’t work; it can’t find that connection.

Thank you for your continued help.

Did you make sure to replace TEAM with your team # and you were connected to the rio when you tried it?

I would just re-image the roboRio. Takes a few minutes to get done.

Also, be careful with your imports of other libraries. The first import line you have says:

import edu.wpi.first.wpilibj.*;

You are literally importing everything in that folder. Try to only import what you use, in this case it looks like the Talon class.

That’s because it’s not a webpage - it’s an ftp server. Connect to your RIO, open windows explorer, and enter that address into the top bar, replacing TEAM with your team number (so for you it’d probably be ftp://roborio-5212-frc.local/home/lvuser), and it will take you to the folder on the RoboRIO.

As several people have posted above, the easiest solution would be to reimage the RIO.