Deploying robot code results in an error

Hi all,

Our code team is trying to deploy the code for a simple arcade drive style drive base but we are getting an error that is preventing the code from deploying. W basically just copied the code from this tutorial to have a starter project to work from. The code builds fine but when it gets to the deploy stage, the console gives an error saying that the target could not be found.

This is the console output during the build/deploy.

> Executing task: gradlew deploy -PteamNumber=7158  --offline - Dorg.gradle.java.home="C:\Users\Public\frc2019\jdk" <

Starting a Gradle Daemon (subsequent builds will be faster)

> Task :discoverRoborio
Discovering Target roborio
admin @ roborio-7158-FRC: Failed resolution.
  Reason: UnknownHostException
   Not enough storage is available to process this command (roborio-7158-FRC)
admin @ roborio-7158-FRC.lan: Failed resolution.
  Reason: UnknownHostException
  No such host is known (roborio-7158-FRC.lan)
admin @ roborio-7158-FRC.frc-field.local: Failed resolution.
  Reason: UnknownHostException
  No such host is known (roborio-7158-FRC.frc-field.local)
admin @ roborio-7158-FRC.local: Resolved but not connected.
  Reason: TimeoutException
  Discovery timed out.
admin @ 10.71.58.2: Resolved but not connected.
  Reason: TimeoutException
  Discovery timed out.
admin @ 172.22.11.2: Resolved but not connected.
  Reason: JSchException
  socket is not established
1 other action(s) not started.
Run with --info for more details


> Task :discoverRoborio FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':discoverRoborio'.
> A failure occurred while executing jaci.gradle.deploy.target.discovery.TargetDiscoveryWorker
   > Target roborio could not be found at any location! See above for more details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log 
output. Run with --scan to get full
insights.

* Get more help at https://help.gradle.org

 BUILD FAILED in 2m 2s
2 actionable tasks: 2 executed
Missing Target!
=============================================
Are you connected to the robot, and is it on?
=============================================
GradleRIO detected this build failed due to not being able to find "roborio"!
Scroll up in this error log for more information.
The terminal process terminated with exit code: 1

We have done everything that we can think of to fix this such as connecting via the robot radio, connecting via ethernet, or turning the robot off and on again. The only other thing that we can think of is to somehow edit the target that it is looking for in case it is wrong but we can’t figure out how to do that either.

We are all fairly new at programming the robot in java and since there is a new development environment this year, there aren’t really a lot of places to look for help. If anybody knows what is going on here please let us know. Any help is greatly appreciated!

Thanks in advance!

P.S. Here is a link to our code if you want to look at it.

Can you connect to it using other applications, like the Driver Station or roboRIO Imaging Tool, or through the web dashboard? If so, I suspect it’s not a connection issue.

The very first exception says “Not enough storage is available to process this command”. I’m not familiar enough to know if that’s referencing your RIO or laptop. Is this a freshly imaged RIO? If not, maybe reimage it (roboRIO Imaging Tool > Format Target) and try again.

We are able to connect to it via the driver station and I can ping it in the computer’s command prompt. I think that there might be some LabVIEW code installed on it right now so I can try erasing it and re-imaging the RoboRIO. I will let you know if that works after I have a chance to try it. Thank you!