hubot-hipchat nodejs error

I am messing with the hubot for HipChat and have made an install guide - http://www.mos-eisley.dk/display/ATLASSIAN/Setting+Up+Hubot

Its working on one Ubuntu host, but I cant make it work at another, the error is

root@moserver:/data/home/bnp# cd /opt/hal9000
root@moserver:/opt/hal9000# bin/hubot
connect deprecated multipart: use parser (multiparty, busboy, formidable) npm module instead node_modules/hubot/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:56:20
connect deprecated limit: Restrict request size at location of read node_modules/hubot/node_modules/express/node_modules/connect/lib/middleware/multipart.js:86:15
[Fri Nov 21 2014 12:14:27 GMT+0100 (CET)] DEBUG Loading adapter hipchat
[Fri Nov 21 2014 12:14:27 GMT+0100 (CET)] DEBUG HipChat adapter options: {"jid":"*****@chat.hipchat.com","password":"*****","token":"***********","rooms":"@All","rooms_blacklist":"******@conf.hipchat.com","host":"chat.hipchat.com","autojoin":true,"xmppDomain":null,"reconnect":true}
[Fri Nov 21 2014 12:14:27 GMT+0100 (CET)] INFO Connecting HipChat adapter...
[Fri Nov 21 2014 12:14:28 GMT+0100 (CET)] ERROR TypeError: Object #<Object> has no method '_extend'
  at connect (/data/opt/hal9000/node_modules/hubot-hipchat/node_modules/node-xmpp/node_modules/node-xmpp-core/node_modules/tls-connect/starttls.js:224:18)
  at Connection.setSecure (/data/opt/hal9000/node_modules/hubot-hipchat/node_modules/node-xmpp/node_modules/node-xmpp-core/lib/connection.js:224:14)
  at Connection.onStanza (/data/opt/hal9000/node_modules/hubot-hipchat/node_modules/node-xmpp/node_modules/node-xmpp-core/lib/connection.js:267:14)
  at StreamParser.Connection.startParser (/data/opt/hal9000/node_modules/hubot-hipchat/node_modules/node-xmpp/node_modules/node-xmpp-core/lib/connection.js:156:14)
  at StreamParser.EventEmitter.emit (events.js:67:17)
  at SaxLtx.StreamParser.write (/data/opt/hal9000/node_modules/hubot-hipchat/node_modules/node-xmpp/node_modules/node-xmpp-core/lib/stream_parser.js:58:22)
  at SaxLtx.EventEmitter.emit (events.js:67:17)
  at SaxLtx.module.exports.write (/data/opt/hal9000/node_modules/hubot-hipchat/node_modules/node-xmpp/node_modules/node-xmpp-core/node_modules/ltx/lib/sax_ltx.js:81:13)
  at StreamParser.write (/data/opt/hal9000/node_modules/hubot-hipchat/node_modules/node-xmpp/node_modules/node-xmpp-core/lib/stream_parser.js:102:21)
  at Connection.onData (/data/opt/hal9000/node_modules/hubot-hipchat/node_modules/node-xmpp/node_modules/node-xmpp-core/lib/connection.js:208:21)
  at Socket.Connection.setupStream.proxyEvent (/data/opt/hal9000/node_modules/hubot-hipchat/node_modules/node-xmpp/node_modules/node-xmpp-core/lib/connection.js:64:14)
  at Socket.EventEmitter.emit (events.js:88:20)
  at TCP.onread (net.js:347:14)

I am pretty sure the extend is installed:

root@moserver:/opt/hal9000# find . -name "*extend*"
./node_modules/hubot-scripts/node_modules/redis/examples/extend.js
./node_modules/node.extend
./node_modules/node.extend/lib/extend.js
./node_modules/extend
./node_modules/hubot/node_modules/express/node_modules/connect/node_modules/body-parser/node_modules/iconv-lite/lib/extend-node.js
root@moserver:/opt/hal9000#

The hubot start looks like:

#!/bin/sh
npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:node_modules/hubot-hipchat/node_modules/:$PATH"


PARAM
PARAM
 
exec node_modules/.bin/hubot --adapter hipchat "$@"

1 answer

1 accepted

0 votes
Accepted answer

Ubuntu 10.04 only "supports via apt-get install nodejs" a nodejs up til version v0.6.x

The Hip-Chat requires a newer version

nodejs must be installed and compiled, updated http://www.mos-eisley.dk/display/ATLASSIAN/Setting+Up+Hubot

So you're saying for later Ubuntu - I'm on 14.04, apt-get install nodejs is ok? And therefore the linuxcareer link at the mos-eisley page above should work?

"on 14.04, apt-get install nodejs is ok" - Yes :-) The Link is mainly for reference ideas/alternative to my description :-)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 14, 2018 in Hipchat Cloud

Hipchat Cloud and Stride End of Life: Just over 90 days away

Earlier this year we made the difficult decision to discontinue our team messaging tools, Stride and Hipchat. The end of life date for Stride and Hipchat Cloud is quickly approaching - February 15, 2...

28,449 views 0 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you