Page MenuHomeVyOS Platform

"add system image" produces confusing errors when download fails due to 401/Unuthorized errors
Open, NormalPublicBUG

Description

Support you are downloading an image from a server that requires authentication.

vyos@vyos-lab-1:~$ wget http://192.168.56.1:8000/vyos-2025.04.29-0019-rolling-generic-amd64.iso
--2025-04-29 10:40:44--  http://192.168.56.1:8000/vyos-2025.04.29-0019-rolling-generic-amd64.iso
Connecting to 192.168.56.1:8000... connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

When you try to install an image from that server and do not specify credentials, it will fail in a way that makes it look as if the image is malformed.

vyos@vyos-lab-1:~$ add system image http://192.168.56.1:8000/vyos-2025.04.29-0019-rolling-generic-amd64.iso
Validating signature
Signature is not valid. Do you want to continue with installation? [y/N] y
Validating image compatibility
The new image version data does not specify architecture, cannot check compatibility (is it a legacy release image?)
The new image version data does not specify flavor, cannot check compatibility (is it a legacy release image?)
Image compatibility check failed, aborting installation.
Cleaning up
Removing temporary files
Exiting from VyOS installation

While the correct thing to do would be to tell the user that image download failed due to missing/incorrect credentials.

Details

Version
1.5
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)