hubot-hipchat nodejs error

B_ Normann P_ Nielsen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2014

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
Answer accepted
B_ Normann P_ Nielsen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2014

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

theeditor December 25, 2014

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?

B_ Normann P_ Nielsen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2014

"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
TAGS
AUG Leaders

Atlassian Community Events