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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Mar 26, 2018 in Hipchat Data Center

Migration of Hipchat server to Data Center - a retrospective

...able to use the clients After a bunch of testing (rooms, memberships, check for private message history, and most importantly - the custom emoticons!) nearly everything was looking as we needed, however...

454 views 2 6
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