question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build gui on RPi4 Ubuntu 20.04 RCS>=0.2.3

See original GitHub issue

Raspberry pi 4, 8GB RAM running Arm64 and Ubuntu 20.04

Having a lot of trouble trying to get the electron build to work.

I have tried nuking my nodejs libs, which included reinstalling various versions of Nodejs v12. As well as nuking the directory and recloning, resetting to master/origin etc. Any suggestions?

Full log/stack trace from debug.log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'electron' ]
2 info using npm@6.14.8
3 info using node@v12.18.2
4 verbose run-script [ 'preelectron', 'electron', 'postelectron' ]
5 info lifecycle chia-blockchain@~preelectron: chia-blockchain@
6 info lifecycle chia-blockchain@~electron: chia-blockchain@
7 verbose lifecycle chia-blockchain@~electron: unsafe-perm in lifecycle true
8 verbose lifecycle chia-blockchain@~electron: PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/user/chia-blockchain/chia-blockchain-gui/node_modules/.bin:/home/user/chia-blockchain/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle chia-blockchain@~electron: CWD: /home/user/chia-blockchain/chia-blockchain-gui
10 silly lifecycle chia-blockchain@~electron: Args: [ '-c', 'electron .' ]
11 silly lifecycle chia-blockchain@~electron: Returned: code: 1  signal: null
12 info lifecycle chia-blockchain@~electron: Failed to exec electron script
13 verbose stack Error: chia-blockchain@ electron: `electron .`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:315:20)
13 verbose stack     at ChildProcess.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:315:20)
13 verbose stack     at maybeClose (internal/child_process.js:1021:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid chia-blockchain@
15 verbose cwd /home/user/chia-blockchain/chia-blockchain-gui
16 verbose Linux 5.8.0-1016-raspi
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "electron"
18 verbose node v12.18.2
19 verbose npm  v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error chia-blockchain@ electron: `electron .`
22 error Exit status 1
23 error Failed at the chia-blockchain@ electron script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

CLI display:

(venv) user@user-pi4:~/chia-blockchain/chia-blockchain-gui$ npm run electron &
[2] 172590
(venv) user@user-pi4:~/chia-blockchain/chia-blockchain-gui$
> chia-blockchain@ electron /home/user/chia-blockchain/chia-blockchain-gui
> electron .

The futex facility returned an unexpected error code.
/home/user/chia-blockchain/chia-blockchain-gui/node_modules/electron/dist/electron exited with signal SIGABRT
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chia-blockchain@ electron: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chia-blockchain@ electron script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2021-02-26T23_24_31_264Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wroskocommented, Apr 27, 2021

Look up nvm and install nodejs v12 (sorry on mobile right now won’t be by computer for a while). There are some guides out there. I look dup Ubuntu stuff, but this may help you cause it’s rpi related https://linuxize.com/post/how-to-install-node-js-on-raspberry-pi/

On Mon, Apr 26, 2021, 17:48 krtpowa @.***> wrote:

I got it working. So I guess there was some weird things happening with my Nodejs install. I decided to download and install nvm and then installed Node.js 12. Then wiped the node_modules and packages-lock.json, and ran the gui scripts. It works now, so env build on my end was funky. Thanks for the help.

how i do this? i have a rpi with raspbian base, and i get the same error.electron doesn’t works… my npm version is v16

thanks!!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Chia-Network/chia-blockchain-gui/issues/105#issuecomment-827230836, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYLDAMHFBQC3PBOVRI7ESLTKYCUJANCNFSM4YJIY4ZA .

0reactions
krtpowacommented, Apr 27, 2021

I got it working. So I guess there was some weird things happening with my Nodejs install. I decided to download and install nvm and then installed Node.js 12. Then wiped the node_modules and packages-lock.json, and ran the gui scripts. It works now, so env build on my end was funky. Thanks for the help.

how i do this? i have a rpi with raspbian base, and i get the same error.electron doesn’t works… my npm version is v16

thanks!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install Ubuntu Desktop on Raspberry Pi 4
In this tutorial, we walk you through the process of installing Ubuntu Desktop on a Raspberry Pi. If you are looking to install...
Read more >
GUI Ubuntu 20.04 Server - RPI 4 - RealVNC "cannot currently ...
I use an Ubuntu desktop (regular version) on a headless RPI4, reaching it by Realvnc, if this get rid of any misunderstanding. This...
Read more >
Install Ubuntu 20.04 on Raspberry Pi 4 (without monitor)
In this tutorial you'll learn how to install Ubuntu 20.04 on Raspberry Pi 4, without needing any external monitor/keyboard/mouse.
Read more >
Install Tensorflow 2.3.0 on Raspberry Pi 4 - Stack Overflow
I am hving similar isue building on RPi, though not exact same symbol. As a workaround,you can download the whl from this link....
Read more >
Raspberry Pi 4 - Installing Ubuntu 20.10 On SSD ... - YouTube
Raspberry Pi 4 - Install UBUNTU 20.10 on SSD & OverClock To 2.3 GHZ to run the full fledge version of ubuntu 20.10...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found