Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting problems with Hubot and Openfire #64

Open
marsanla opened this issue Mar 7, 2014 · 11 comments
Open

Getting problems with Hubot and Openfire #64

marsanla opened this issue Mar 7, 2014 · 11 comments
Labels

Comments

@marsanla
Copy link

marsanla commented Mar 7, 2014

Hi I installed Openfire and hubot, and both of them are working. Hubot is working in CLI mode. And Openfire is working, i connect with a LDAP and i created a user for hubot, and everything is correct until there.

I follow this http://www.lordofthejars.com/2012/10/installing-and-running-hubot-terminator.html

Enviroments config:

export HUBOT_XMPP_USERNAME='hubot'
export HUBOT_XMPP_PASSWORD='password'
export HUBOT_XMPP_ROOMS='hubot@conference.company.com'
export HUBOT_XMPP_HOST='http://localhost'
export HUBOT_XMPP_PORT='5222'
export HUBOT_XMPP_LEGACYSSL='0'

Command executed in Terminal

./bin/hubot --name hubot--adapter xmpp

This is the error what i got after executing:

Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
[Fri Mar 07 2014 06:02:15 GMT-0500 (EST)] INFO { username: 'hubot',
  password: '********',
  host: 'http://localhost',
  port: '5222',
  rooms: [ { jid: 'hubot@conference.company.com', password: false } ],
  keepaliveInterval: 30000,
  legacySSL: '0',
  preferredSaslMechanism: undefined,
  disallowTLS: undefined }

... And nothing happends after this...

My nodeJs version (Using nvm) is

v0.10.26

My "npm ls" is


hosted-hubot@2.7.1 /opt/hubot
├─┬ hubot@2.7.2
│ ├── coffee-script@1.6.3
│ ├─┬ express@3.3.4
│ │ ├── buffer-crc32@0.2.1
│ │ ├─┬ commander@1.2.0
│ │ │ └── keypress@0.1.0
│ │ ├─┬ connect@2.8.4
│ │ │ ├── bytes@0.2.0
│ │ │ ├── formidable@1.0.14
│ │ │ ├── pause@0.0.1
│ │ │ ├── qs@0.6.5
│ │ │ └── uid2@0.0.2
│ │ ├── cookie@0.1.0
│ │ ├── cookie-signature@1.0.1
│ │ ├── debug@0.7.4
│ │ ├── fresh@0.1.0
│ │ ├── methods@0.0.1
│ │ ├── mkdirp@0.3.5
│ │ ├── range-parser@0.0.4
│ │ └─┬ send@0.1.3
│ │   └── mime@1.2.11
│ ├── log@1.4.0
│ ├── optparse@1.0.4
│ └── scoped-http-client@0.9.8
├─┬ hubot-scripts@2.5.8
│ └── redis@0.8.4
└─┬ hubot-xmpp@0.1.9
  └─┬ node-xmpp@0.10.0
    ├── blueimp-md5@1.1.0
    ├── browser-request@0.3.1
    ├─┬ browserify@2.33.1
    │ ├─┬ browser-builtins@2.0.4
    │ │ ├─┬ buffer-browserify@0.2.2
    │ │ │ └── base64-js@0.0.2
    │ │ ├── console-browserify@1.0.3
    │ │ ├── constants-browserify@0.0.1
    │ │ ├── crypto-browserify@1.0.9
    │ │ ├─┬ http-browserify@0.1.14
    │ │ │ └── Base64@0.1.4
    │ │ ├── os-browserify@0.1.1
    │ │ ├── punycode@1.2.4
    │ │ ├─┬ vm-browserify@0.0.4
    │ │ │ └── indexof@0.0.1
    │ │ └─┬ zlib-browserify@0.0.3
    │ │   └─┬ tape@0.2.2
    │ │     ├── deep-equal@0.0.0
    │ │     ├── defined@0.0.0
    │ │     └── jsonify@0.0.0
    │ ├─┬ browser-pack@0.11.1
    │ │ └─┬ combine-source-map@0.2.0
    │ │   ├── convert-source-map@0.2.6
    │ │   ├── inline-source-map@0.2.5
    │ │   └─┬ source-map@0.1.33
    │ │     └── amdefine@0.1.0
    │ ├─┬ browser-resolve@1.1.4
    │ │ └── resolve@0.5.1
    │ ├─┬ concat-stream@1.0.1
    │ │ └─┬ bops@0.0.6
    │ │   ├── base64-js@0.0.2
    │ │   └── to-utf8@0.0.1
    │ ├─┬ deps-sort@0.1.1
    │ │ └── minimist@0.0.8
    │ ├── duplexer@0.1.1
    │ ├── inherits@1.0.0
    │ ├─┬ insert-module-globals@1.3.1
    │ │ ├── commondir@0.0.1
    │ │ ├── duplexer@0.0.4
    │ │ ├─┬ JSONStream@0.4.4
    │ │ │ └── jsonparse@0.0.5
    │ │ ├─┬ lexical-scope@0.0.15
    │ │ │ └─┬ astw@0.0.0
    │ │ │   └── esprima@1.0.2
    │ │ ├── process@0.5.2
    │ │ └── through@2.2.7
    │ ├─┬ JSONStream@0.6.4
    │ │ ├── jsonparse@0.0.5
    │ │ └── through@2.2.7
    │ ├─┬ module-deps@1.0.2
    │ │ ├─┬ detective@2.1.2
    │ │ │ ├─┬ escodegen@0.0.15
    │ │ │ │ └─┬ source-map@0.1.33
    │ │ │ │   └── amdefine@0.1.0
    │ │ │ └── esprima@1.0.2
    │ │ ├── minimist@0.0.8
    │ │ └── resolve@0.4.3
    │ ├─┬ optimist@0.5.2
    │ │ └── wordwrap@0.0.2
    │ ├── parents@0.0.2
    │ ├── shell-quote@0.0.1
    │ ├── stream-combiner@0.0.4
    │ ├─┬ syntax-error@0.0.1
    │ │ └── esprima@0.9.9
    │ ├── through@2.3.4
    │ └─┬ umd@1.1.1
    │   ├─┬ rfile@1.0.0
    │   │ ├── callsite@1.0.0
    │   │ └── resolve@0.3.1
    │   ├── ruglify@1.0.0
    │   └─┬ uglify-js@2.2.5
    │     ├─┬ optimist@0.3.7
    │     │ └── wordwrap@0.0.2
    │     └─┬ source-map@0.1.33
    │       └── amdefine@0.1.0
    ├─┬ faye-websocket@0.7.2
    │ └── websocket-driver@0.3.2
    ├─┬ ltx@0.4.0
    │ └── sax@0.6.0
    ├─┬ node-expat@2.1.4
    │ └── nan@0.6.0
    └─┬ request@2.34.0
      ├── aws-sign2@0.5.0
      ├── forever-agent@0.5.2
      ├─┬ form-data@0.1.2
      │ ├── async@0.2.10
      │ └─┬ combined-stream@0.0.4
      │   └── delayed-stream@0.0.5
      ├─┬ hawk@1.0.0
      │ ├── boom@0.4.2
      │ ├── cryptiles@0.2.2
      │ ├── hoek@0.9.1
      │ └── sntp@0.2.4
      ├─┬ http-signature@0.10.0
      │ ├── asn1@0.1.11
      │ ├── assert-plus@0.1.2
      │ └── ctype@0.5.2
      ├── json-stringify-safe@5.0.0
      ├── mime@1.2.11
      ├── node-uuid@1.4.1
      ├── oauth-sign@0.3.0
      ├── qs@0.6.6
      ├─┬ tough-cookie@0.12.1
      │ └── punycode@1.2.4
      └── tunnel-agent@0.3.0

And... when i am installing hubot with "npm install", i get these errors:

npm http GET http://registry.npmjs.org/hubot-xmpp
npm http 304 http://registry.npmjs.org/hubot-xmpp
npm http GET http://registry.npmjs.org/node-xmpp/0.10.0
npm http 304 http://registry.npmjs.org/node-xmpp/0.10.0
npm http GET http://registry.npmjs.org/node-expat
npm http GET http://registry.npmjs.org/ltx
npm http GET http://registry.npmjs.org/request
npm http GET http://registry.npmjs.org/browser-request
npm http GET http://registry.npmjs.org/faye-websocket
npm http GET http://registry.npmjs.org/blueimp-md5
npm http GET http://registry.npmjs.org/browserify
npm http 304 http://registry.npmjs.org/node-expat
npm http 304 http://registry.npmjs.org/browser-request
npm http 304 http://registry.npmjs.org/ltx
npm http 304 http://registry.npmjs.org/request
npm http 304 http://registry.npmjs.org/faye-websocket
npm http 304 http://registry.npmjs.org/browserify
npm http 304 http://registry.npmjs.org/blueimp-md5
npm http GET http://registry.npmjs.org/websocket-driver
npm http GET http://registry.npmjs.org/qs
npm http GET http://registry.npmjs.org/json-stringify-safe
npm http GET http://registry.npmjs.org/node-uuid
npm http GET http://registry.npmjs.org/forever-agent
npm http GET http://registry.npmjs.org/mime
npm http GET http://registry.npmjs.org/tough-cookie
npm http GET http://registry.npmjs.org/form-data
npm http GET http://registry.npmjs.org/tunnel-agent
npm http GET http://registry.npmjs.org/http-signature
npm http GET http://registry.npmjs.org/oauth-sign
npm http GET http://registry.npmjs.org/hawk
npm http GET http://registry.npmjs.org/aws-sign2
npm http GET http://registry.npmjs.org/sax
npm http 304 http://registry.npmjs.org/websocket-driver
npm http 304 http://registry.npmjs.org/json-stringify-safe
npm http 304 http://registry.npmjs.org/forever-agent
npm http 304 http://registry.npmjs.org/node-uuid
npm http 304 http://registry.npmjs.org/qs
npm http 304 http://registry.npmjs.org/mime
npm http 304 http://registry.npmjs.org/tough-cookie
npm http 304 http://registry.npmjs.org/form-data
npm http 304 http://registry.npmjs.org/tunnel-agent
npm http 304 http://registry.npmjs.org/http-signature
npm http 304 http://registry.npmjs.org/hawk
npm http 304 http://registry.npmjs.org/aws-sign2
npm http 304 http://registry.npmjs.org/sax
npm http 304 http://registry.npmjs.org/oauth-sign
npm http GET http://registry.npmjs.org/combined-stream
npm http GET http://registry.npmjs.org/async
npm http 304 http://registry.npmjs.org/async
npm http 304 http://registry.npmjs.org/combined-stream
npm http GET http://registry.npmjs.org/assert-plus/0.1.2
npm http GET http://registry.npmjs.org/asn1/0.1.11
npm http GET http://registry.npmjs.org/ctype/0.5.2
npm http 304 http://registry.npmjs.org/assert-plus/0.1.2
npm http 304 http://registry.npmjs.org/asn1/0.1.11
npm http 304 http://registry.npmjs.org/ctype/0.5.2
npm http GET http://registry.npmjs.org/delayed-stream/0.0.5
npm http GET http://registry.npmjs.org/punycode
npm http 304 http://registry.npmjs.org/delayed-stream/0.0.5
npm http GET http://registry.npmjs.org/hoek
npm http GET http://registry.npmjs.org/boom
npm http GET http://registry.npmjs.org/sntp
npm http GET http://registry.npmjs.org/cryptiles
npm http 304 http://registry.npmjs.org/boom
npm http 304 http://registry.npmjs.org/hoek
npm http 304 http://registry.npmjs.org/cryptiles
npm http 304 http://registry.npmjs.org/sntp
npm http 304 http://registry.npmjs.org/punycode
npm http GET http://registry.npmjs.org/deps-sort
npm http GET http://registry.npmjs.org/shell-quote
npm http GET http://registry.npmjs.org/through
npm http GET http://registry.npmjs.org/duplexer
npm http GET http://registry.npmjs.org/stream-combiner
npm http GET http://registry.npmjs.org/concat-stream
npm http GET http://registry.npmjs.org/insert-module-globals
npm http GET http://registry.npmjs.org/syntax-error
npm http GET http://registry.npmjs.org/browser-resolve
npm http GET http://registry.npmjs.org/browser-builtins/2.0.4
npm http GET http://registry.npmjs.org/inherits
npm http GET http://registry.npmjs.org/optimist
npm http GET http://registry.npmjs.org/JSONStream
npm http GET http://registry.npmjs.org/umd
npm http GET http://registry.npmjs.org/parents
npm http GET http://registry.npmjs.org/module-deps
npm http GET http://registry.npmjs.org/browser-pack
npm http 304 http://registry.npmjs.org/shell-quote
npm http 304 http://registry.npmjs.org/through
npm http 304 http://registry.npmjs.org/duplexer
npm http 304 http://registry.npmjs.org/stream-combiner
npm http 304 http://registry.npmjs.org/deps-sort
npm http 304 http://registry.npmjs.org/concat-stream
npm http 304 http://registry.npmjs.org/insert-module-globals
npm http 304 http://registry.npmjs.org/syntax-error
npm http 304 http://registry.npmjs.org/optimist
npm http 304 http://registry.npmjs.org/browser-resolve
npm http 304 http://registry.npmjs.org/inherits
npm http 304 http://registry.npmjs.org/JSONStream
npm http 304 http://registry.npmjs.org/parents
npm http 304 http://registry.npmjs.org/browser-builtins/2.0.4
npm http 304 http://registry.npmjs.org/umd
npm http 304 http://registry.npmjs.org/module-deps
npm http 304 http://registry.npmjs.org/browser-pack
npm http GET http://registry.npmjs.org/bops/0.0.6
npm http GET http://registry.npmjs.org/rfile
npm http GET http://registry.npmjs.org/ruglify
npm http GET http://registry.npmjs.org/uglify-js
npm http GET http://registry.npmjs.org/minimist
npm http 304 http://registry.npmjs.org/minimist
npm http 304 http://registry.npmjs.org/ruglify
npm http GET http://registry.npmjs.org/esprima
npm http 304 http://registry.npmjs.org/uglify-js
npm http 304 http://registry.npmjs.org/bops/0.0.6
npm http 304 http://registry.npmjs.org/esprima
npm http 304 http://registry.npmjs.org/rfile
npm http GET http://registry.npmjs.org/callsite
npm http GET http://registry.npmjs.org/resolve
npm http GET http://registry.npmjs.org/resolve/0.5.1
npm http GET http://registry.npmjs.org/combine-source-map
npm http 304 http://registry.npmjs.org/resolve
npm http 304 http://registry.npmjs.org/callsite
npm http 304 http://registry.npmjs.org/combine-source-map
npm http 304 http://registry.npmjs.org/resolve/0.5.1
npm http GET http://registry.npmjs.org/wordwrap
npm http GET http://registry.npmjs.org/commondir
npm http GET http://registry.npmjs.org/lexical-scope
npm http GET http://registry.npmjs.org/process
npm http 304 http://registry.npmjs.org/wordwrap
npm http 304 http://registry.npmjs.org/commondir
npm http 304 http://registry.npmjs.org/process
npm http 304 http://registry.npmjs.org/lexical-scope
npm http GET http://registry.npmjs.org/base64-js/0.0.2
npm http GET http://registry.npmjs.org/to-utf8/0.0.1
npm http 304 http://registry.npmjs.org/to-utf8/0.0.1
npm http 304 http://registry.npmjs.org/base64-js/0.0.2
npm http GET http://registry.npmjs.org/source-map
npm http GET http://registry.npmjs.org/convert-source-map
npm http GET http://registry.npmjs.org/inline-source-map
npm http 304 http://registry.npmjs.org/source-map
npm http 304 http://registry.npmjs.org/convert-source-map
npm http 304 http://registry.npmjs.org/inline-source-map
npm http GET http://registry.npmjs.org/detective
npm http 304 http://registry.npmjs.org/detective
npm http GET http://registry.npmjs.org/jsonparse/0.0.5
npm http GET http://registry.npmjs.org/esprima/1.0.2
npm http GET http://registry.npmjs.org/escodegen/0.0.15
npm http 304 http://registry.npmjs.org/jsonparse/0.0.5
npm http 304 http://registry.npmjs.org/escodegen/0.0.15
npm http 304 http://registry.npmjs.org/esprima/1.0.2
npm http GET http://registry.npmjs.org/amdefine
npm http GET http://registry.npmjs.org/console-browserify
npm http GET http://registry.npmjs.org/crypto-browserify
npm http GET http://registry.npmjs.org/vm-browserify
npm http GET http://registry.npmjs.org/http-browserify
npm http GET http://registry.npmjs.org/buffer-browserify
npm http GET http://registry.npmjs.org/zlib-browserify
npm http GET http://registry.npmjs.org/constants-browserify
npm http GET http://registry.npmjs.org/os-browserify
npm http 304 http://registry.npmjs.org/amdefine
npm http GET http://registry.npmjs.org/astw
npm http 304 http://registry.npmjs.org/console-browserify
npm http 304 http://registry.npmjs.org/buffer-browserify
npm http 304 http://registry.npmjs.org/vm-browserify
npm http 304 http://registry.npmjs.org/constants-browserify
npm http 304 http://registry.npmjs.org/crypto-browserify
npm http 304 http://registry.npmjs.org/http-browserify
npm http 304 http://registry.npmjs.org/zlib-browserify
npm http 304 http://registry.npmjs.org/os-browserify
npm http 304 http://registry.npmjs.org/astw
npm http GET http://registry.npmjs.org/indexof/0.0.1
npm http GET http://registry.npmjs.org/tape
npm http 304 http://registry.npmjs.org/indexof/0.0.1
npm http 304 http://registry.npmjs.org/tape
npm http GET http://registry.npmjs.org/defined
npm http GET http://registry.npmjs.org/jsonify
npm http GET http://registry.npmjs.org/deep-equal
npm http 304 http://registry.npmjs.org/deep-equal
npm http 304 http://registry.npmjs.org/defined
npm http 304 http://registry.npmjs.org/jsonify
npm http GET http://registry.npmjs.org/Base64
npm http 304 http://registry.npmjs.org/Base64
npm http GET http://registry.npmjs.org/nan
npm http 304 http://registry.npmjs.org/nan

> node-expat@2.1.4 install /opt/hubot/node_modules/hubot-xmpp/node_modules/node-xmpp/node_modules/node-expat
> node-gyp rebuild

make: Entering directory `/opt/hubot/node_modules/hubot-xmpp/node_modules/node-xmpp/node_modules/node-expat/build'
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
../deps/libexpat/lib/xmltok.c:471:1: warning: missing initializer [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:471:1: warning: (near initialization for ‘latin1_encoding_ns.isName2’) [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:484:1: warning: missing initializer [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:484:1: warning: (near initialization for ‘latin1_encoding.isName2’) [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:504:1: warning: missing initializer [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:504:1: warning: (near initialization for ‘ascii_encoding_ns.isName2’) [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:517:1: warning: missing initializer [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:517:1: warning: (near initialization for ‘ascii_encoding.isName2’) [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:730:1: warning: missing initializer [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:730:1: warning: (near initialization for ‘little2_encoding_ns.isName2’) [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:749:1: warning: missing initializer [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:749:1: warning: (near initialization for ‘little2_encoding.isName2’) [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:762:1: warning: missing initializer [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:762:1: warning: (near initialization for ‘internal_little2_encoding_ns.isName2’) [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:775:1: warning: missing initializer [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:775:1: warning: (near initialization for ‘internal_little2_encoding.isName2’) [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:871:1: warning: missing initializer [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:871:1: warning: (near initialization for ‘big2_encoding_ns.isName2’) [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:890:1: warning: missing initializer [-Wmissing-field-initializers]
../deps/libexpat/lib/xmltok.c:890:1: warning: (near initialization for ‘big2_encoding.isName2’) [-Wmissing-field-initializers]
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  AR(target) Release/obj.target/deps/libexpat/libexpat.a
  COPY Release/libexpat.a
  CXX(target) Release/obj.target/node_expat/node-expat.o
  SOLINK_MODULE(target) Release/obj.target/node_expat.node
  SOLINK_MODULE(target) Release/obj.target/node_expat.node: Finished
  COPY Release/node_expat.node
make: Leaving directory `/opt/hubot/node_modules/hubot-xmpp/node_modules/node-xmpp/node_modules/node-expat/build'

> node-xmpp@0.10.0 postinstall /opt/hubot/node_modules/hubot-xmpp/node_modules/node-xmpp
> browserify -d -o node-xmpp-browser.js -r request:browser-request -i node-stringprep -i faye-websocket -i ./srv -i dns ./lib/node-xmpp-browserify.js

hubot-xmpp@0.1.10 node_modules/hubot-xmpp
└── node-xmpp@0.10.0 (browser-request@0.3.1, blueimp-md5@1.1.0, faye-websocket@0.7.2, request@2.34.0, ltx@0.4.0, browserify@2.33.1, node-expat@2.1.4)

WHERE IS THE PROBLEM?

THANKS!!

@Jaglag
Copy link

Jaglag commented Mar 7, 2014

try running him with:

export HUBOT_LOG_LEVEL="debug"
then you can see more infos whats wrong after hes connecting in your log

@markstory
Copy link
Contributor

None of those look like actual errors. The StringPrep line comes from a library hubot-xmpp uses and can be safely ignored. All the other output is informational logging from npm.

I would recommend trying debug logging as well.

@marsanla
Copy link
Author

marsanla commented Mar 7, 2014

After doing:

export HUBOT_LOG_LEVEL="debug"

I have these, but nothing more happends...

[Fri Mar 07 2014 07:51:04 GMT-0500 (EST)] DEBUG Loading adapter xmpp
Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
[Fri Mar 07 2014 07:51:04 GMT-0500 (EST)] INFO { username: 'hubot',
  password: '********',
  host: 'http://localhost',
  port: '5222',
  rooms: [ { jid: 'hubot@conference.13genius.com', password: false } ],
  keepaliveInterval: 30000,
  legacySSL: '0',
  preferredSaslMechanism: undefined,
  disallowTLS: undefined }

@marsanla
Copy link
Author

marsanla commented Mar 7, 2014

any help?

@markstory
Copy link
Contributor

Normally the next thing that happens is the bot shows itself going on line and joining rooms.

@marsanla
Copy link
Author

The same problem... could be the problem in the node version (0.10.26)? or because i am using ldap with openfire?

PS: i try to connect hubot with hipchat and is working... perfectly

@markstory
Copy link
Contributor

Well I can try installing openfire and see if I can reproduce, but I don't really have the time/knowledge to set up an ldap server.

@mdarveau
Copy link
Contributor

Hi Marcos,

I am using openfire 3.9.1 with hubot without any problem. What exactly do
you expect to see in the console?
AFAIK, the output you send is normal and you should see your bot connected
on the jabber server.

What are you expecting to see/get?

Manuel

On Mon, Mar 10, 2014 at 8:54 AM, Mark Story notifications@github.comwrote:

Well I can try installing openfire and see if I can reproduce, but I don't
really have the time/knowledge to set up an ldap server.

Reply to this email directly or view it on GitHubhttps://github.com//issues/64#issuecomment-37178696
.

@PhoenixGrey
Copy link

Hi, I had the same problem today, then I have checked the log in openfire, and it is handshake problem with node-xmpp. So I found solution from http://www.lordofthejars.com/2012/10/installing-and-running-hubot-terminator.html

There are few tips here, you may account:

  1. don't set HUBOT_XMPP_LEGACYSSL or DISALLOW_TLS at all
  2. try to create a room without password, since some client such as Message on Mac, it doesn't really support room with password. When you want to test, logging with a none-hubot user, the password may be the problem
  3. if you check the log of hubot from command line, it will show the online message, but may not the joining room message, in which case, you can check room setting on openfire, it will show something like 1/30 (refresh the page), then you will know your hubot is joining the room

I am using 3.8.2 openfire. Since this problem is not caused by the xmpp-server side(openfire), I don't think the version will matter.

Good luck with your hubot.

@sedlund
Copy link

sedlund commented Nov 11, 2014

Mine was not connecting to my openfire 3.9.1 when specifying HUBOT_XMPP_USERNAME=user@server.fqdn.com

I was getting authentication failure.

I used the shortname of the server and its working now.

@dmbarber7
Copy link

I'm getting a: "ERROR Received error XMPP authentication failure" when starting my bot. I've run out of options for debugging. I'm trying to connect to Openfire 4.0.4.

I have tried rolling back to previous versions of Openfire (3.9.1 and 3.7.1) and disabling TLS as advised in http://www.lordofthejars.com/2012/10/installing-and-running-hubot-terminator.html. Have there been any changes since these posts were listed?

My environment variables are:
HUBOT_XMPP_PASSWORD=password
HUBOT_LOG_LEVEL=debug
HUBOT_XMPP_USERNAME=aga@iguana
HUBOT_XMPP_HOST=127.0.0.1
HUBOT_XMPP_PORT=5222
HUBOT_XMPP_ROOMS=mapchat@conference.iguana

I can't fault these.

I'm using hubot-xmpp 0.2.4 and running nodejs v6.9.2.

User accounts and chat rooms are all set-up on the server and can be connected to and used by a client.

Any pointers for resolving this would be much appreciated. I'm guessing its something simple I've missed? Happy to provide more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

7 participants