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

electron-prebuilt error when deployed to Heroku #223

Closed
dylanvalade opened this issue Sep 15, 2015 · 7 comments
Closed

electron-prebuilt error when deployed to Heroku #223

dylanvalade opened this issue Sep 15, 2015 · 7 comments

Comments

@dylanvalade
Copy link

My app works locally using the CNN example. However, after a Heroku build and deploy this error is logged when Nightmare is called.

Error: spawn /tmp/build_aa182f5bde01ee44f4dcea91b391b552/node_modules/nightmare/node_modules/electron-prebuilt/dist/electron ENOENT
     at exports._errnoException (util.js:837:11)
     at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
     at onErrorNT (internal/child_process.js:344:16)
     at doNTCallback2 (node.js:429:9)
     at process._tickCallback (node.js:343:17)
 events.js:141
      throw er; // Unhandled 'error' event
      ^

 Error: IPC channel is already disconnected
     at ChildProcess.target.disconnect (internal/child_process.js:630:26)
     at process.<anonymous> (/app/node_modules/nightmare/lib/nightmare.js:58:15)
     at emitOne (events.js:82:20)
     at process.emit (events.js:169:7)
     at process._fatalException (node.js:211:26)

package.json includes

"dependencies": {
    "ejs": "^2.0.0",
    "express": "^4.0.0",
    "nightmare": "^2.0.2",
    "vo": "^1.0.3"
  },
  "engines": {
    "node": "4.0.x"
  },
@reinpk
Copy link
Contributor

reinpk commented Sep 27, 2015

looks like the same issue as #224

@yoz
Copy link
Contributor

yoz commented Dec 10, 2015

This is very different from #224 - this fails trying to start electron-prebuilt.

It looks like the /tmp/build... path comes from electron-prebuilt using __dirname in its install script, which has unexpected behavior on Heroku. This gets written into path.txt in electron-prebuilt. So I'm fairly sure it's a bug in electron-prebuilt.

@yoz
Copy link
Contributor

yoz commented Dec 11, 2015

(Regretfully, after fixing this it does run into the same issue as #224 .)

@felixcrive
Copy link

Hi, I am having the same issue on OS X (10.10.5) any ideas? Thanks.

@yoz
Copy link
Contributor

yoz commented Jan 4, 2016

@felixcrive the fix I referenced above should be fixed in electron 0.36.0 - does it work if you use the electronPath option with that newer electron?

@felixcrive
Copy link

@yoz I doesn't work I have electron-prebuilt@0.36.2 and Nightmare@2.1.2 pointing to electronPath.

@rosshinkley
Copy link
Contributor

Given the age of this issue, I'm going to close it. If you're still experiencing this issue, feel free to open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants