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

“discovery init” error #26

Closed
levackt opened this issue Oct 25, 2019 · 10 comments
Closed

“discovery init” error #26

levackt opened this issue Oct 25, 2019 · 10 comments
Assignees

Comments

@levackt
Copy link

levackt commented Oct 25, 2019

forum question

The following error message shows up when I run “discovery init”.
my environment:
ubuntu 16.04
node -v : 10.17.0 (system install without using nvm)
npm -v : 6.11.3
discovery -v: 0.1.3

added 452 packages from 338 contributors and audited 62580 packages in 25.479s
found 2 low severity vulnerabilities
run npm audit fix to fix them, or npm audit for details
? Running in SGX Hardware (HW) or Software (SW) mode? (HW/sw) sw
? About to pull Docker images. This requires 15 GB of space. Continue? (Y/n)
Pulling Enigma Docker images...
(node:15396) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'row' of undefined
at Object.module.exports.pullImage (/usr/lib/node_modules/@enigmampc/discovery-cli/src/docker.js:64:33)
at /usr/lib/node_modules/@enigmampc/discovery-cli/src/index.js:183:18
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:15396) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:15396) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@levackt levackt self-assigned this Oct 25, 2019
@levackt
Copy link
Author

levackt commented Oct 25, 2019

Seems they haven't selected Y to pull images and the cli timed out, will try reproduce before I respond.

@lacabra
Copy link

lacabra commented Oct 25, 2019

It is strange though, because I don't think there is a timeout there. It should wait "forever" for user input. My guess is that they pressed "Enter" which accepts the "Y" as the default value. So then the error is indeed with the pulling of docker images, but that is also strange if it works for the rest of us...

@levackt
Copy link
Author

levackt commented Oct 25, 2019

Yep, I'm still waiting for a timeout, which as you say probably won't happen.

@lacabra
Copy link

lacabra commented Oct 25, 2019

alternatively, hit "enter" and you'll see how no answer gets recorded, and the process continues :)

@levackt
Copy link
Author

levackt commented Oct 25, 2019

That's what I usually do so don't expect any surprise this time.
Will give it some more time anyway, just so I don't have doubts about it later, meanwhile I'm looking at how the cursor position works for the next clue.

@levackt
Copy link
Author

levackt commented Oct 25, 2019

In a different terminal I confirmed it won't print anything if I choose defaults, so that was indeed a straw :)

@levackt
Copy link
Author

levackt commented Oct 25, 2019

Will also try their node version

@levackt
Copy link
Author

levackt commented Oct 25, 2019

node 10.17 worked for me, on MacOS

I found similar issues with get-cursor-position and it was their OS, Redhat 7.4 and Raspbian

@lacabra
Copy link

lacabra commented Oct 25, 2019

ah, yes, this is related to the progress bar that displays how the downloads progress. Thanks for digging this. Not sure there is anything we can do at the moment. My suggestion is as follows:

Get back to the user and say that the installation was successful and that he has to manually pull the docker images with docker-compose pull. Once that completes, the installation will be completed, as if it had succeeded the first time.

@levackt
Copy link
Author

levackt commented Oct 25, 2019

Confirmed resolved

@levackt levackt closed this as completed Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants