Error running daedalus container - Failed at the daedalus@0.8.0 start script 'cross-env NODE_ENV=production electron ./'.
Closed this issue · 3 comments
patchkez commented
Hi,
I have troubles running daedalus container which I built from your Dockerfile.
Container is failing with this the error:
cardano-daedalus-docker git:(4fa9492) ✗ docker-compose run daedalus
WARNING: The DISPLAY variable is not set. Defaulting to a blank string.
Starting cardanodaedalusdocker_cardano-sl_1 ... done
> daedalus@0.8.0 start /home/daedalus/daedalus
> cross-env NODE_ENV=production electron ./
npm ERR! Linux 4.14.14-gentoo
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.12.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! daedalus@0.8.0 start: `cross-env NODE_ENV=production electron ./`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the daedalus@0.8.0 start script 'cross-env NODE_ENV=production electron ./'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the daedalus package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=production electron ./
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs daedalus
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls daedalus
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/daedalus/daedalus/npm-debug.log
Any idea where the problem might be?
hcvst commented
Hi, have you tried to use the start-daedalus
script?
patchkez commented
Tried with start-daedalus script but does not make any difference.
➜ ~ docker -v
Docker version 18.01.0-ce, build c97c6d6
I think I tried to pull hcvst/cardano-sl-with-daedalus-wallet from docker registry and I got the same error.
patchkez commented
So I managed to find the root cause of my problem. For some reason, DISPLAY environment variable was not propagated into container. Therefore I changed line in docker-compose.yml:
DISPLAY=$DISPLAY
and configured it statically:
DISPLAY=:0.0
After this change, Daedalus UI started without any problem.