07-26-2023 02:31 PM
When trying to deploy code, the build keeps failing. The task, ':discoverroborio' keeps failing.
We've successfully reimaged the RoboRIO via microSD card, and have run the 'build' command in gradlew. We are able to connect to the roborio via USB cable because we are still able to use the phoenix tuner.
Here's the entire error message:
> Task :discoverroborio
Discovering Target roborio
admin @ roborio-4087-FRC.frc-field.local: Failed resolution.
Reason: RuntimeException
Unknown Host
admin @ roborio-4087-FRC: Failed resolution.
Reason: RuntimeException
Unknown Host
admin @ roborio-4087-FRC.lan: Failed resolution.
Reason: RuntimeException
Unknown Host
admin @ roborio-4087-FRC.local: Failed resolution.
Reason: RuntimeException
Unknown Host
admin @ 10.40.87.2: Resolved but not connected.
Reason: RuntimeException
com.jcraft.jsch.JSchException: timeout: socket is not established
admin @ 172.22.11.2: Resolved but not connected.
Reason: RuntimeException
com.jcraft.jsch.JSchException: timeout: socket is not established
1 other action(s) not started.
Run with --info for more details
> Task :discoverroborio FAILED
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.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':discoverroborio'.
> A failure occurred while executing edu.wpi.first.deployutils.deploy.target.discovery.TargetDiscoveryWorker
> Target roborio could not be found at any location! See above for more details.
07-27-2023 12:16 PM
Hi thesofs
Thank you for sharing this information with us about the error that is showing when deploying code.
After reviewing some articles we would like to verify the following