Etcher: Linux x86 CLI doesn't work!

Created on 17 May 2017  ยท  3Comments  ยท  Source: balena-io/etcher

I was experimenting in some LiveCD VM images this morning to check that the 'x64' Linux programs work on a 64-bit host, and the 'x86' Linux programs work on a 32-bit host.

Turns out that the Etcher-cli-1.0.0-linux-x86.tar.gz is actually missing some required files :-(

The x64 CLI works on a 64-bit host, and has the following layout:

$ tree Etcher-cli-1.0.0-linux-x64/
Etcher-cli-1.0.0-linux-x64/
โ”œโ”€โ”€ etcher
โ”œโ”€โ”€ index.js
โ””โ”€โ”€ node_modules
    โ”œโ”€โ”€ lzma-native
    โ”‚ย ย  โ”œโ”€โ”€ binding
    โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ lzma_native.node
    โ”‚ย ย  โ”œโ”€โ”€ build
    โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Release
    โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ lzma_native.node
    โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ obj.target
    โ”‚ย ย  โ”‚ย ย          โ””โ”€โ”€ lzma_native.node
    โ”‚ย ย  โ””โ”€โ”€ deps
    โ”‚ย ย      โ”œโ”€โ”€ bin_i686
    โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ liblzma.dll
    โ”‚ย ย      โ””โ”€โ”€ bin_x86-64
    โ”‚ย ย          โ””โ”€โ”€ liblzma.dll
    โ””โ”€โ”€ mountutils
        โ””โ”€โ”€ build
            โ””โ”€โ”€ Release
                โ”œโ”€โ”€ MountUtils.node
                โ””โ”€โ”€ obj.target
                    โ””โ”€โ”€ MountUtils.node

13 directories, 9 files

However the x86 CLI errors with:

module.js:457
    throw err;
    ^

Error: Cannot find module '/path/to/Etcher-cli-1.0.0-linux-x86/node_modules/lzma-native/binding/lzma_native.node'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
[snip]

and has the following directory layout:

$ tree Etcher-cli-1.0.0-linux-x86/
Etcher-cli-1.0.0-linux-x86/
โ”œโ”€โ”€ etcher
โ”œโ”€โ”€ index.js
โ””โ”€โ”€ node_modules
    โ”œโ”€โ”€ lzma-native
    โ”‚ย ย  โ””โ”€โ”€ deps
    โ”‚ย ย      โ”œโ”€โ”€ bin_i686
    โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ liblzma.dll
    โ”‚ย ย      โ””โ”€โ”€ bin_x86-64
    โ”‚ย ย          โ””โ”€โ”€ liblzma.dll
    โ””โ”€โ”€ mountutils
        โ””โ”€โ”€ build
            โ””โ”€โ”€ Release
                โ”œโ”€โ”€ MountUtils.node
                โ””โ”€โ”€ obj.target
                    โ””โ”€โ”€ MountUtils.node

9 directories, 6 files

BTW, I guess there's no need for the Linux CLI archives to contain the Windows .dlls? ;-) And perhaps some of the duplicate *.node files can be removed too?

cli linux bug

All 3 comments

Thanks for the rapid fix @jviotti :1st_place_medal:

Please re-ping this issue when the 'fixed' Linux x86 CLI is available on https://etcher.io/cli

@luch I just re-uploaded x86. It should all be good now.

Yup, just tested in a x86 LiveCD VirtualBox, and the Linux x86 CLI seems to work fine now :+1:
BTW you pinged the wrong Github user on your last comment ;-)

Was this page helpful?
0 / 5 - 0 ratings