Cannot Deploy to RoboRIO

programming

#1

Hello,

My team is trying to deploy code to our roborio, and each time it appears its trying to download the RoboRIO JRE. However, it can only run this when I’m running the deploy command, which only works when I am exclusively connected to the RIO whether through ethernet or the wireless. We are using IntelliJ IDEA to code our robot, and our GradleRIO project can be viewed here. We have already installed the general RoboRIO image and the code does build and compile, and I have tried deploying from multiple computers to only get the same result. I have pasted the output below and I am wondering if I missed a step or if there is something wrong with our RIO.

Thanks,

Jonathan Daniel

C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019>gradlew deploy

> Task :discoverRoborio
Discovering Target roborio
Using admin@10.53.32.2:22 for target roborio

> Task :deployNativeLibsRoborio
  Artifact skipped...

> Task :deployFrcStaticFileDeployRoborio
    -C-> mkdir -p  @ /home/lvuser/deploy
      -[1]->

> Task :deployRoborioCommandsRoborio
    -C-> sed -i -e 's/^StartupDLLs/;StartupDLLs/' /etc/natinst/share/ni-rt.ini @ /home/lvuser
      -[-1]->

> Task :deployFrcJavaRoborio
    -C-> . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t 2> /dev/null @ /home/lvuser
    1 file(s) are up-to-date and were not deployed
    -C-> echo '/usr/local/frc/JRE/bin/java -Djava.library.path=/usr/local/frc/third-party/lib   -jar "/home/lvuser/RobotCode2019.jar" ' > /home/lvuser/robotCommand @ /home/lvuser
    -C-> chmod +x /home/lvuser/robotCommand; chown lvuser /home/lvuser/robotCommand @ /home/lvuser
    -C-> chmod +x "/home/lvuser/RobotCode2019.jar"; chown lvuser "/home/lvuser/RobotCode2019.jar" @ /home/lvuser
      -[-1]->
    -C-> sync @ /home/lvuser
      -[-1]->
    -C-> . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r 2> /dev/null @ /home/lvuser

> Task :deployJreRoborio
    -C-> if [[ -f "/usr/local/frc/JRE/bin/java" ]]; then echo OK; else echo MISSING; fi @ /tmp
      -[0]-> MISSING

  Deploying RoboRIO JRE (this will take a while)...

> Task :deployNativeZipRoborio FAILED
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_calib3dd.so
.3.4 -> libopencv_calib3dd.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_calib3dd.so
.3.4.debug -> libopencv_calib3dd.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_cored.so.3.
4 -> libopencv_cored.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_cored.so.3.
4.debug -> libopencv_cored.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_features2dd
.so.3.4 -> libopencv_features2dd.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_features2dd
.so.3.4.debug -> libopencv_features2dd.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_flannd.so.3
.4 -> libopencv_flannd.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_flannd.so.3
.4.debug -> libopencv_flannd.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_highguid.so
.3.4 -> libopencv_highguid.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_highguid.so
.3.4.debug -> libopencv_highguid.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_imgcodecsd.
so.3.4 -> libopencv_imgcodecsd.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_imgcodecsd.
so.3.4.debug -> libopencv_imgcodecsd.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_imgprocd.so
.3.4 -> libopencv_imgprocd.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_imgprocd.so
.3.4.debug -> libopencv_imgprocd.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_java344.so
-> libopencv_java344.so @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_java344.so.
debug -> libopencv_java344.so.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_mld.so.3.4
-> libopencv_mld.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_mld.so.3.4.
debug -> libopencv_mld.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_objdetectd.
so.3.4 -> libopencv_objdetectd.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_objdetectd.
so.3.4.debug -> libopencv_objdetectd.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_photod.so.3
.4 -> libopencv_photod.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_photod.so.3
.4.debug -> libopencv_photod.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_shaped.so.3
.4 -> libopencv_shaped.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_shaped.so.3
.4.debug -> libopencv_shaped.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_stitchingd.
so.3.4 -> libopencv_stitchingd.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_stitchingd.
so.3.4.debug -> libopencv_stitchingd.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_superresd.s
o.3.4 -> libopencv_superresd.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_superresd.s
o.3.4.debug -> libopencv_superresd.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_videod.so.3
.4 -> libopencv_videod.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_videod.so.3
.4.debug -> libopencv_videod.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_videoiod.so
.3.4 -> libopencv_videoiod.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_videoiod.so
.3.4.debug -> libopencv_videoiod.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_videostabd.
so.3.4 -> libopencv_videostabd.so.3.4 @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\opencv-cpp-3.4.4-4-linuxathenadebug.zip_fb1838f89a18efba82e3c679b6ef0c3b\linux\athena\shared\libopencv_videostabd.
so.3.4.debug -> libopencv_videostabd.so.3.4.debug @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\hal-cpp-2019.1.1-linuxathenadebug.zip_034bba773f7f7db9d75c2bd76d92b633\linux\athena\shared\libwpiHald.so -> libwpi
Hald.so @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\hal-cpp-2019.1.1-linuxathenadebug.zip_034bba773f7f7db9d75c2bd76d92b633\linux\athena\shared\libwpiHaljni.so -> libw
piHaljni.so @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\wpiutil-cpp-2019.1.1-linuxathenadebug.zip_e009205852b26420bb11324df59a30fc\linux\athena\shared\libwpiutild.so -> l
ibwpiutild.so @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\ntcore-cpp-2019.1.1-linuxathenadebug.zip_997b90312d41f81d474de2566dc2fd04\linux\athena\shared\libntcored.so -> lib
ntcored.so @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\ntcore-cpp-2019.1.1-linuxathenadebug.zip_997b90312d41f81d474de2566dc2fd04\linux\athena\shared\libntcorejni.so -> l
ibntcorejni.so @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\cscore-cpp-2019.1.1-linuxathenadebug.zip_6b786fdd7637ed019311e45ebb6b9d8e\linux\athena\shared\libcscored.so -> lib
cscored.so @ /usr/local/frc/third-party/lib
    -F-> C:\Users\HP\Documents\Toaster Tech\Robot Code\RobotCode2019\build\tmp\expandedArchives\cscore-cpp-2019.1.1-linuxathenadebug.zip_6b786fdd7637ed019311e45ebb6b9d8e\linux\athena\shared\libcscorejni.so -> l
ibcscorejni.so @ /usr/local/frc/third-party/lib

> Task :deployJreRoborio FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':deployNativeZipRoborio'.
> A failure occurred while executing jaci.gradle.deploy.artifact.ArtifactDeployWorker
   > session is down

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':deployJreRoborio'.
> A failure occurred while executing jaci.gradle.deploy.artifact.ArtifactDeployWorker
   > Could not resolve all files for configuration ':jrefrcjre'.
      > Could not resolve edu.wpi.first.jdk:roborio-2019:11.0.1u13-1.
        Required by:
            project :
         > Could not resolve edu.wpi.first.jdk:roborio-2019:11.0.1u13-1.
            > Could not get resource 'http://first.wpi.edu/FRC/roborio/maven/release/edu/wpi/first/jdk/roborio-2019/11.0.1u13-1/roborio-2019-11.0.1u13-1.pom'.
               > Could not GET 'http://first.wpi.edu/FRC/roborio/maven/release/edu/wpi/first/jdk/roborio-2019/11.0.1u13-1/roborio-2019-11.0.1u13-1.pom'.
                  > first.wpi.edu
         > Could not resolve edu.wpi.first.jdk:roborio-2019:11.0.1u13-1.
            > Could not get resource 'http://wpimirror.imjac.in/m2/release/edu/wpi/first/jdk/roborio-2019/11.0.1u13-1/roborio-2019-11.0.1u13-1.pom'.
               > Could not GET 'http://wpimirror.imjac.in/m2/release/edu/wpi/first/jdk/roborio-2019/11.0.1u13-1/roborio-2019-11.0.1u13-1.pom'.
                  > wpimirror.imjac.in

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 9s
10 actionable tasks: 8 executed, 2 up-to-date

#2

This is a known issue with the initial release of standalone GradleRIO (it does not affect teams who used the WPILib offline installer). http://wpilib.screenstepslive.com/s/currentCS/m/getting_started/l/1028964-known-issues

You need to do a single deploy with internet connected to your computer (use USB to connect to the RoboRio at the same time). Later deploys will not require internet.


#3

Do you mean connecting to the Roborio with a printer cable? And will we be able to connect normally with another computer?


#4

Yes. Once the JRE has been installed to the roboRio you should be good to go with another computer with a normal connection too.