Steveorevo / node-red-contrib-nbrowser

Provides a virtual web browser (a.k.a. "headless browser") appearing as a node.
34 stars 13 forks source link

not working on ubuntu #11

Closed igisho closed 6 years ago

igisho commented 6 years ago

Hi, nbrowser node is installed int node-red correcly eather via palettemanager or via console but after i place node into flow. and deploy it i get error.

Flows stopped due to missing node types. nbrowser

tried on several installs of ubuntu Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-62-generic x86_64)

mito commented 6 years ago

i this it is because of ubuntu not having latest node.js in default repos

Steveorevo commented 6 years ago

What version of node.js are you using? On the command line type:

node -v
igisho commented 6 years ago

Hi firs part of problem was in wrong node version. Now im using v8.10.0 but nbrowser node always stuck at some method. Status of node sasy for example: running:gotoURL and nothing is happening.

mito commented 6 years ago

If I put multiple methods in node, it seems like it is stuck always on last one. No error rised anywhere :(

igisho commented 6 years ago

Version of operating system:

Distributor ID: Ubuntu Description: Ubuntu 16.04.4 LTS Release: 16.04 Codename: xenial

igisho commented 6 years ago

node -v: v8.11.0 npm -v: 5.6.0 Node-RED version: v0.18.4

mito commented 6 years ago

tried different versions of nodejs and electron, no difference also tried running electrons quickstart and simple examples, everything ends with exit code 1

Steveorevo commented 6 years ago

Electron is based on Chromium. Let’s see if you have the prerequisites to run a viable browser; do you have a desktop with a version of Chrome browser running successfully?

mito commented 6 years ago

ok, i seems it is running on ubuntu Desktop, my previous tries were on ubuntu server, is it possible to run it on headless server?

mito commented 6 years ago

this is working xvfb-run node-red

mito commented 6 years ago

here you can find more info on nightmare/electron on headless server https://github.com/segmentio/nightmare/issues/224

Steveorevo commented 6 years ago

Closing for now; duplicate question/issue for

https://github.com/Steveorevo/node-red-contrib-nbrowser/issues/5

Thank you for your feedback