wpilibsuite / 2024Beta

Repository for Beta Testing of 2024 Software
32 stars 5 forks source link

Invalid Image Exception, roboRIO image is missing the FRC_ prefix #6

Closed Jm-Taylor closed 9 months ago

Jm-Taylor commented 11 months ago

When deploying

admin @ 172.22.11.2: Connected. Reason: InvalidImageException Could not parse image version! /etc/natinst/share/scs_imagemetadata.ini contents: [ImageMetadata] IMAGEDESCRIPTION = "" IMAGEID = "{979268BF-16F8-4042-BAA6-7AF50D001CEE}" IMAGETITLE = "roboRIO2 Image" IMAGEVERSION = "roboRIO2_2024_v1.1"

reported that its missing the FRC_ prefix

Edit: This applies to both roboRIO 1 & 2

PeterJohnson commented 11 months ago

Our version detector regex (https://github.com/wpilibsuite/GradleRIO/blob/main/src/main/java/edu/wpi/first/gradlerio/deploy/roborio/RoboRIO.java#L128) looks for a version that starts with FRC_roboRIO.

As a workaround, you can ssh in and edit the /etc/natinst/share/scsimagemetadata.ini file to add the FRC prefix.

sciencewhiz commented 11 months ago

As a simpler workaround, you should be able to add checkImage = false to the roborio block in build.gradle.

PeterJohnson commented 11 months ago

Workaround implemented in WPILib Beta 2 release.

Jm-Taylor commented 9 months ago

Fixed in NI 2024 Beta Release 2 with v2.0 image.