UPDATE: Running balena-cli using the last release of node.js 22 fixes the error. node v22.20.0 , balena-cli v22.4.9
I am trying to use the balena CLI to flash images locally. I am essentially trying to use this as an alternative to Etcher as this will be part of some automation workflow. The process works on Etcher (although with issues, for example I need to run it multiple times until it accepts my image file, or flash sometimes fails with “Connection to sidecar flasher process failed” – in case any of these provides helpful context). However, with Balena CLI using the commands I paste below in the log, this errors. Could you please offer me some help about this issue?
“
C:\Windows\System32>balena util available-drives
DEVICE SIZE DESCRIPTION
\.\PhysicalDrive1 7.8 GB Compute Module
C:\Windows\System32>balena local flash “C:\flash\image.img” --drive \.\PhysicalDrive1 --yes --debug
[debug] new argv=[C:\Program Files\balena-cli\client\bin\node.exe,C:\Program Files\balena-cli\client\bin\run,local:flash,C:\flash\image.img,–drive,\.\PhysicalDrive1,–yes] length=7
[debug] Deprecation check: 0.17684 days since last npm registry query for next major version release date.
[debug] Will not query the registry again until at least 7 days have passed.
[debug] Event tracking error: Timeout awaiting ‘response’ for 0ms
EIO: i/o error, open ‘\.\PhysicalDrive1’
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
Disk 0 Online 476 GB 1024 KB *
Disk 1 Online 7456 MB 7455 MB
”