HTML v5 error when installing

731 views
Skip to first unread message

Phill. Whiteside

unread,
Dec 4, 2018, 10:34:58 AM12/4/18
to bigblueb...@googlegroups.com
Hi, 
 after issuing sudo apt-get install -y bbb-html5 All seems to go well until....

Setting up node-slide (1.1.4-1) ...
Setting up npm (3.5.2-0ubuntu4) ...
Setting up bbb-webrtc-sfu (1:2.0.0-78) ...

> buffe...@1.2.1 install /usr/local/bigbluebutton/bbb-webrtc-sfu/node_modules/bufferutil
> node-gyp rebuild

/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:354:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-140-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/bigbluebutton/bbb-webrtc-sfu/node_modules/bufferutil
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 

npm ERR! Linux 4.4.0-140-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "rebuild"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! buffe...@1.2.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the buffe...@1.2.1 install script 'node-gyp rebuild'.
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 bufferutil package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bufferutil
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bufferutil
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /usr/local/bigbluebutton/bbb-webrtc-sfu/npm-debug.log
Reloading nginx.service using systemd
Adding bbb-webrtc-sfu.service to autostart using systemd
Created symlink from /etc/systemd/system/multi-user.target.wants/bbb-webrtc-sfu.service to /usr/lib/systemd/system/bbb-webrtc-sfu.service.
Adding kurento-media-server.service to autostart using systemd
Synchronizing state of kurento-media-server.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable kurento-media-server
Setting up bbb-html5 (1:2.0.0-479) ...
Installing meteor packages (this may take a moment)
Updating Node packages for bbb-html5 (this may take a moment)
loadDep:uuid → mapToRegis ▐ ╢████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine har-va...@5.1.3: wanted: {"node":">=6"} (current: {"node":"4.2.6loadDep:punycode → reques ▐ ╢████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine puny...@2.1.1: wanted: {"node":">=6"} (current: {"node":"4.2.6","np
> fib...@2.0.0 install /usr/share/meteor/bundle/programs/server/node_modules/fibers
> node build.js || nodejs build.js

sh: 1: node: not found
/usr/bin/env: ‘node’: No such file or directory
node-gyp exited with code: 127
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
Alpine users please run: `sudo apk add python make g++`
meteor-d...@0.0.0 /usr/share/meteor/bundle/programs/server
├─┬ ch...@0.5.1 
│ ├── ansi-...@1.1.0 
│ ├── escape-str...@1.0.5 
│ ├─┬ has-...@0.1.0 
│ │ └── ansi-...@0.2.1 
│ ├── strip...@0.3.0 
│ └── support...@0.2.0 
├── meteor-...@0.8.6 
├─┬ mult...@1.0.2 
│ ├─┬ dupl...@0.1.4 
│ │ └─┬ readabl...@2.3.3 
│ │   ├── core-u...@1.0.2 
│ │   ├── isa...@1.0.0 
│ │   ├── process-ne...@1.0.7 
│ │   ├── safe-...@5.1.1 
│ │   ├── string_...@1.0.3 
│ │   └── util-de...@1.0.2 
│ └── object...@4.1.1 
├─┬ node...@3.8.0 
│ ├─┬ fst...@1.0.11 
│ │ └── inhe...@2.0.3 
│ ├─┬ gl...@7.1.3 
│ │ ├── fs.re...@1.0.0 
│ │ ├─┬ infl...@1.0.6 
│ │ │ └── wra...@1.0.2 
│ │ ├─┬ mini...@3.0.4 
│ │ │ └─┬ brace-e...@1.1.11 
│ │ │   ├── balance...@1.0.0 
│ │ │   └── conca...@0.0.1 
│ │ ├── on...@1.4.0 
│ │ └── path-is-...@1.0.1 
│ ├── grace...@4.1.15 
│ ├─┬ mkd...@0.5.1 
│ │ └── mini...@0.0.8 
│ ├─┬ no...@3.0.6 
│ │ └── abb...@1.1.1 
│ ├─┬ npm...@4.1.2 
│ │ ├─┬ are-we-t...@1.1.5 
│ │ │ └── dele...@1.0.0 
│ │ ├── console-con...@1.1.0 
│ │ ├─┬ ga...@2.7.4 
│ │ │ ├── apr...@1.2.0 
│ │ │ ├── has-u...@2.0.1 
│ │ │ ├── signa...@3.0.2 
│ │ │ ├─┬ string...@1.0.2 
│ │ │ │ ├── code-p...@1.1.0 
│ │ │ │ ├─┬ is-fullwidt...@1.0.0 
│ │ │ │ │ └── number...@1.0.1 
│ │ │ │ └─┬ strip...@3.0.1 
│ │ │ │   └── ansi-...@2.1.1 
│ │ │ ├─┬ strip...@3.0.1 
│ │ │ │ └── ansi-...@2.1.1 
│ │ │ └── wide-...@1.1.3 
│ │ └── set-bl...@2.0.0 
│ ├─┬ os...@0.1.5 
│ │ ├── os-ho...@1.0.2 
│ │ └── os-t...@1.0.2 
│ ├─┬ req...@2.88.0 
│ │ ├── aws-...@0.7.0 
│ │ ├── aw...@1.8.0 
│ │ ├── case...@0.12.0 
│ │ ├─┬ combine...@1.0.7 
│ │ │ └── delayed...@1.0.0 
│ │ ├── ext...@3.0.2 
│ │ ├── foreve...@0.6.1 
│ │ ├─┬ form...@2.3.3 
│ │ │ └── asyn...@0.4.0 
│ │ ├─┬ har-va...@5.1.3 
│ │ │ ├─┬ a...@6.6.1 
│ │ │ │ ├── fast-de...@2.0.1 
│ │ │ │ ├── fast-json-sta...@2.0.0 
│ │ │ │ ├── json-schem...@0.4.1 
│ │ │ │ └─┬ uri...@4.2.2 
│ │ │ │   └── puny...@2.1.1 
│ │ │ └── har-s...@2.0.0 
│ │ ├─┬ http-si...@1.2.0 
│ │ │ ├── asser...@1.0.0 
│ │ │ ├─┬ jsp...@1.4.1 
│ │ │ │ ├── extsp...@1.3.0 
│ │ │ │ ├── json-...@0.2.3 
│ │ │ │ └── ver...@1.10.0 
│ │ │ └─┬ ss...@1.15.2 
│ │ │   ├── as...@0.2.4 
│ │ │   ├── bcrypt...@1.0.2 
│ │ │   ├── dash...@1.14.1 
│ │ │   ├── ecc-...@0.1.2 
│ │ │   ├── get...@0.1.7 
│ │ │   ├── js...@0.1.1 
│ │ │   ├── safer-...@2.1.2 
│ │ │   └── twee...@0.14.5 
│ │ ├── is-typ...@1.0.0 
│ │ ├── isst...@0.1.2 
│ │ ├── json-stri...@5.0.1 
│ │ ├─┬ mime-...@2.1.21 
│ │ │ └── mim...@1.37.0 
│ │ ├── oauth...@0.9.0 
│ │ ├── perform...@2.1.0 
│ │ ├── q...@6.5.2 
│ │ ├── safe-...@5.1.2 
│ │ ├─┬ tough-...@2.4.3 
│ │ │ ├── p...@1.1.29 
│ │ │ └── puny...@1.4.1 
│ │ ├── tunnel...@0.6.0 
│ │ └── uu...@3.3.2 
│ ├── rim...@2.6.2 
│ ├── sem...@5.3.0 
│ ├─┬ t...@2.2.1 
│ │ └── block-...@0.0.9 
│ └─┬ wh...@1.3.1 
│   └── is...@2.0.0 
├─┬ node-p...@0.6.36 
│ ├── no...@4.0.1 
│ ├─┬ r...@1.2.8 
│ │ ├── deep-...@0.6.0 
│ │ ├── i...@1.3.5 
│ │ ├── mini...@1.2.0 
│ │ └── strip-jso...@2.0.1 
│ └─┬ tar-...@3.4.1 
│   ├─┬ de...@2.6.9 
│   │ └── m...@2.0.0 
│   ├── fstream...@1.0.5 
│   └── uid-n...@0.0.6 
├─┬ pro...@8.0.1 
│ └── as...@2.0.6 
├── sem...@5.4.1 
├─┬ source-ma...@0.3.2 
│ └─┬ sourc...@0.1.32 
│   └── amde...@1.0.1 
├─┬ spl...@2.1.1 
│ └─┬ thro...@2.0.3 
│   └── xt...@4.0.1 
└── under...@1.5.2 

npm WARN meteor-d...@0.0.0 No description
npm WARN meteor-d...@0.0.0 No repository field.
npm WARN meteor-d...@0.0.0 No license field.
npm ERR! Linux 4.4.0-140-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! fib...@2.0.0 install: `node build.js || nodejs build.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the fib...@2.0.0 install script 'node build.js || nodejs build.js'.
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 fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js || nodejs build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fibers
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls fibers
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /usr/share/meteor/bundle/programs/server/npm-debug.log
dpkg: error processing package bbb-html5 (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.10) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 bbb-html5
E: Sub-process /usr/bin/dpkg returned an error code (1)

Regards,
Phill.

Anton Georgiev

unread,
Dec 4, 2018, 11:56:35 AM12/4/18
to neeraj
Hey Phill,

Your node is too old
> npm ERR! node v4.2.6

We require node v8.

Best regards,
Anton Georgiev

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/d/optout.

Fred Dixon

unread,
Dec 4, 2018, 11:56:49 AM12/4/18
to bigblueb...@googlegroups.com
Hi Phil,

Can you try using bbb-install.sh to install the HTML5 client, see


For many standard installs it does all the steps listed in the documentation (except making any changes to the Firewall).  Try using bbb-install.sh and let us know if it gets you any further.

Regards,... Fred

On Tue, Dec 4, 2018 at 10:34 AM Phill. Whiteside <phil...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/d/optout.


--
BigBlueButton Developer
@bigbluebutton

Phill. Whiteside

unread,
Dec 5, 2018, 6:22:48 AM12/5/18
to bigblueb...@googlegroups.com
Hi Fred,

I did as you suggested, it did not go well :/ I then re-ran the command as
wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v xenial-200 > log.txt
attached is the log file with appended to the end what was on the console.
Regards,

Phill.
log.txt

Fred Dixon

unread,
Dec 5, 2018, 7:57:47 AM12/5/18
to bigblueb...@googlegroups.com
Hi Phil,

You have an older version of node installed and the bbb-html5 package can't complete it's installation whenever an apt-get install command is run.  Running bbb-install.sh needs to run apt-get install to install new packages, but the commands don't finish as bbb-html5 can't finish it's installation.

Let's try the following
   
  sudo apt-get purge -y bbb-html5

to remove the existing HTML5 package (we're going to re-install it when we get the old version of nodejs removed).

After the above, do
 
   sudo apt-get purge -y nodejs

to purge the older version of nodejs.  After trying the above two commands, make sure that apt-get can finish with

  sudo apt-get install hello

The above "Hello World" package should install without errors.  If so, then try the bbb-install.sh command again.


Regards,... Fred

Phill. Whiteside

unread,
Dec 5, 2018, 11:17:06 AM12/5/18
to bigblueb...@googlegroups.com
Hi Fred,

this time different errors... attached is the log.txt

Regards,

Phill.
log.txt

Phill. Whiteside

unread,
Dec 5, 2018, 11:56:00 AM12/5/18
to bigblueb...@googlegroups.com
Hi,

sorry, attached the initial log file, please find attached the correct one!!

Regards,
Phill.
log.txt

Phill. Whiteside

unread,
Dec 5, 2018, 12:03:09 PM12/5/18
to bigblueb...@googlegroups.com
Also on console is:

/usr/bin/bbb-conf: line 1644: node: command not found
/usr/bin/bbb-conf: line 1645: /usr/bin/mongod: No such file or directory
nc: port number invalid: 37.59.167.10

Regards,

Phill.

Fred Dixon

unread,
Dec 6, 2018, 8:11:16 AM12/6/18
to BigBlueButton-dev
Hi Phill,

Thanks for giving us a closer look at your machine.  The errors you saw were from the manual installation of the HTML5 client which didn't complete because it was using the older version of nodejs.  

After using bbb-install.sh script to setup the HTML5 client (using the '-t' option), the script detected the older version of nodjs, uninstalled it, and installed the proper version.  



However, because the previous installation had not completed, Ubuntu had masked the systemd script for kurento-media-server.service and would not run it.  Using `systemctl status kurento-media-server` revealed

# systemctl status kurento-media-server
● kurento-media-server.service
   Loaded: masked (/dev/null; bad)
   Active: inactive (dead) since Wed 2018-12-05 16:12:11 GMT; 20h ago
 Main PID: 10017 (code=exited, status=0/SUCCESS)

We unmasked the service

# systemctl unmask kurento-media-server.service
Removed symlink /etc/systemd/system/kurento-media-server.service.

and then restarted BigBlueButton.  After that, the HTML5 client with audio and video.  You can make the HTML5 client default



Regards,... Fred
Reply all
Reply to author
Forward
0 new messages