Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Balena Etcher is broken #153537

Closed
gbtb opened this issue Jan 5, 2022 · 4 comments
Closed

Balena Etcher is broken #153537

gbtb opened this issue Jan 5, 2022 · 4 comments
Labels
0.kind: bug Something is broken

Comments

@gbtb
Copy link
Member

gbtb commented Jan 5, 2022

Describe the bug

Balena etcher app starts with blank white screen

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install etcher 1.6.0 from unstable nixpkgs
  2. Run app
  3. ...

Expected behavior

It should open UI with buttons etc...

Screenshots

Screenshot_20220105_115651

Additional context

Logs in devtools of etcher:

index.css:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
gui.js:7117 Uncaught TypeError: Cannot read properties of undefined (reading 'app')
    at appPath (gui.js:7117)
    at Object.exports.CODE_TO_ERRNO.E2BIG (gui.js:7119)
    at __webpack_require__ (gui.js:72085)
    at Object.__webpack_modules__.constructor (gui.js:5691)
    at __webpack_require__ (gui.js:72085)
    at Object.__webpack_modules__.DiskWrapper.DiskWrapper (gui.js:5686)
    at __webpack_require__ (gui.js:72085)
    at Object.<anonymous> (gui.js:5587)
    at __webpack_require__ (gui.js:72085)
    at Object.defineProperty.value (gui.js:5401)

Logs in terminal:

[Axios v1.6.0] Transitional option 'clarifyTimeoutError' has been deprecated since v1.0.0 and will be removed in the near future
[Axios v1.6.0] Transitional option 'forcedJSONParsing' has been deprecated since v1.0.0 and will be removed in the near future
[Axios v1.6.0] Transitional option 'silentJSONParsing' has been deprecated since v1.0.0 and will be removed in the near future
(node:14552) electron: The default of nativeWindowOpen is deprecated and will be changing from false to true in Electron 15.  See https://github.com/electron/electron/issues/28511 for more information.
(Use `electron --trace-warnings ...` to show where the warning was created)
ready-to-show: 1.119s
(node:14552) Warning: No such label 'ready-to-show' for console.timeEnd()

Notify maintainers

@Shou

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
 - host os: `Linux 5.10.88, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5.1`
 - channels(root): `"home-manager-21.05, nixos-22.05pre342264.5b091d4fbe3, unstable-22.05pre340506.5c37ad87222"`
 - channels(artem): `"home-manager-21.05, nixos-22.05pre340506.5c37ad87222"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@gbtb gbtb added the 0.kind: bug Something is broken label Jan 5, 2022
@brocaar
Copy link

brocaar commented Feb 1, 2022

I can reproduce the same issue using NixOS 21.11:

 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.93, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.16`
 - channels(root): `"nixos-21.11.335526.6c4b9f1a2fd, home-manager"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

@eliandoran
Copy link
Contributor

The issue is that Balena Etcher is not compatible with the version of Electron with which it was packaged on NixOS. The PR #158715 fixes this, but please be aware that it now depends on Electron 12, which is marked as End-Of-Life.

@davidak
Copy link
Member

davidak commented May 3, 2022

The issue was fixed:

Screenshot from 2022-05-03 12-43-07

But it is reported to be insecure, so you have to run it like this:

NIXPKGS_ALLOW_INSECURE=1 nix run nixpkgs#etcher --impure

@polypoyo
Copy link

polypoyo commented Nov 7, 2024

Etcher has since been removed from nixpkgs due to the electron issue. If you still need to use it, you can run from an old version of nixpkgs:

NIXPKGS_ALLOW_INSECURE=1 nix run github:nixos/nixpkgs/nixos-20.09#etcher --impure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

5 participants