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.