Hubot stopped working on Hipchat Server v2.0.7 and later
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
This is for an outdated version of Hipchat Server
This article applies to a version of Hipchat Server which will be deprecated soon. After that period the version will no longer be supported.
You should upgrade to a more recent version of Hipchat Server as soon as you can to take advantage of new features, and security and bug fixes.
問題
Hubot (with hubot-hipchat 2.12.0-6) stopped working on Hipchat Server v2.0.7 and later. The following is seen in Hubot logs:
[Sat Dec 31 2016 05:04:32 GMT+0000 (UTC)] INFO Connecting HipChat adapter...
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] INFO Connection went offline
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] DEBUG Disconnecting here
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] INFO Connection went offline
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] DEBUG Disconnecting here
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] INFO Connection went offline
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] DEBUG Disconnecting here
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] INFO Connection went offline
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] DEBUG Disconnecting here
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] INFO Connection went offline
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] DEBUG Disconnecting here
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] INFO Connection went offline
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] DEBUG Disconnecting here
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] INFO Connection went offline
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] DEBUG Disconnecting here
[Sat Dec 31 2016 05:05:33 GMT+0000 (UTC)] INFO Connection went offline
You would see the same message above when testing Hubot connection to a single room, or all rooms.
原因
Hubot is utilising hubot adapter which uses XMPP and in Hipchat Server v2.0.7 and later, we have disabled XMPP over 5222 and 5223 by default. To learn more about this, see: External XMPP ports 5222, 5223 disabled by default in Hipchat Server 2.0.7
回避策
Enable XMPP over ports 5222 and 5223 on Hipchat Server through the server's terminal/command line via hipchat network --enable-xmpp-ports