question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hubot Failed to log to Mattermost Chat

See original GitHub issue

Hello all,

When i try to launch hubot in Mattermost I got this error :

 ./bin/hubot --adapter matteruser


npm WARN hubot-help@0.2.2 requires a peer of coffee-script@^1.12.6 but none is installed. You must install peer dependencies yourself.

up to date in 1.664s
[Tue Jan 16 2018 13:48:59 GMT+0100 (CET)] INFO Logging in...
[Tue Jan 16 2018 13:48:59 GMT+0100 (CET)] INFO api url:https://182.21.221.170::8065/api/v4/users/login
[Tue Jan 16 2018 13:48:59 GMT+0100 (CET)] ERROR Login call failed
[Tue Jan 16 2018 13:48:59 GMT+0100 (CET)] INFO Reconnecting in 1000ms
[Tue Jan 16 2018 13:49:00 GMT+0100 (CET)] INFO Attempting reconnect
[Tue Jan 16 2018 13:49:00 GMT+0100 (CET)] INFO Logging in...
[Tue Jan 16 2018 13:49:00 GMT+0100 (CET)] INFO api url:https://182.21.221.170::8065/api/v4/users/login
[Tue Jan 16 2018 13:49:00 GMT+0100 (CET)] ERROR Login call failed
[Tue Jan 16 2018 13:49:00 GMT+0100 (CET)] INFO Reconnecting in 2000ms
^C


My variable are :

env | grep MATT*

MATTERMOST_HOST=182.21.221.170:8065
MATTERMOST_PASSWORD=mypassword
MATTERMOST_GROUP=myteam
MATTERMOST_USER=myuser

Hubot and Mattermost are on the same machine and when i try to connect directly with the user it works, but when i try to connect using Hubot it don’t work and i get the error above.

Can someone help me with this plz ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Hhhlycommented, Jan 19, 2018

Ok it works now.

Thanks for your answer !

1reaction
Judokuscommented, Jan 16, 2018

If it’s on the same host MATTERMOST_HOST=127.0.0.1 should work. TLS is enabled by default. What do you get when you set MATTERMOST_LOG_LEVEL=debug ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hubot and mattermost adapter - General Questions
I run the “yo hubot” command and it asks me for the adapter, ... --adapter mattermost-adapter and ended up with error login call...
Read more >
Troubleshooting hubot integration - Mattermost Forum
You can check the logs for Mattermost in the ./logs/mattermost.log file within your mattermost installation directory. If the outgoing webhooks are failing then ......
Read more >
Troubleshooting Mattermost issues
Logging for the Mattermost Push Notification Service is handled via system log with logger and is appended to /var/log/syslog . Review Mattermost environment....
Read more >
[SOLVED] Mattermost + hubot + docker - General Questions
Now, I have no error in Mattermost logs. So I can launch hubot with this configuration : MATTERMOST_ENDPOINT=/hubot/incoming
Read more >
All Time - Mattermost Discussion Forums - Mattermost Forum
3, 3644, June 29, 2016. Post API for bot using mattermost-preview docker image returns 401 error ... [SOLVED] Messages getting duplicated in chat....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found