Comments (13)
Hi downright770,
I'm new to hubot too and i make it work yesterday.
I guess you are missing some variables.
#Assuming your mattermost is accessible on port 8065
MATTERMOST_WSS_PORT=8065
Should be the same as MATTERMOST_WSS_PORT
MATTERMOST_HTTP_PORT=8065
#if you are not using SSL certificates you must set the following 2 variables to false (default is true)
MATTERMOST_TLS_VERIFY=false
MATTERMOST_USE_TLS=false
#You may want to increase log level to have more details about what is happening
MATTERMOST_LOG_LEVEL=debug
Hope it helps
from hubot-matteruser.
Tied that log file showing
[Fri Oct 14 2016 14:50:09 GMT-0700 (PDT)] INFO Logging in...
[Fri Oct 14 2016 14:50:09 GMT-0700 (PDT)] DEBUG POST /users/login
[Fri Oct 14 2016 14:50:09 GMT-0700 (PDT)] ERROR Login call failed
[Fri Oct 14 2016 14:50:09 GMT-0700 (PDT)] INFO Reconnecting in 1000ms
from hubot-matteruser.
You have a typo in MATTERMOST_HOST value.
It should be :
http://127.0.0.1:8065
from hubot-matteruser.
yeah changed that here is the file
#!/bin/sh
export MATTERMOST_HOST=http//127.0.0.1:8065
export MATTERMOST_WSS_PORT=8065
export MATTERMOST_HTTP_PORT=8065
export MATTERMOST_TLS_VERIFY=false
export MATTERMOST_USE_TLS=false
export MATTERMOST_USER=gizmo
export MATTERMOST_PASSWORD=secret
export MATTERMOST_GROUP=internal
export MATTERMOST_LOG_LEVEL=debug
cd /home/spike/myhubot
bin/hubot --adapter matteruser > /var/log/hubot.log 2>&1
from hubot-matteruser.
still not working though
from hubot-matteruser.
Still a typo. You forgot the colon symbol after http
Type that URL in your browser and ensure mattermost is up and running.
Don't forget to source the file before running hubot.
from hubot-matteruser.
Thank you for all the help
I fixed my error but still getting login error.
I retested the password in my web browser and works fine.
When you did your user name did you do it as a email address at all.
from hubot-matteruser.
You're welcome,
I created the user using the invite link. The email address I set is not a valid one.
For MATTERMOST_USER I've setup the email address not the uername. Give it a try and post the logs.
Also, MATTERMOST_GROUP should be used to setup the team name and not a private group.
from hubot-matteruser.
Still getting logging in errors.
I've changed user to an email address and verified I could log in with it.
GROUP is correct.
here's the file.
#!/bin/sh
export MATTERMOST_HOST=http://127.0.0.1:8065
export MATTERMOST_WSS_PORT=8065
export MATTERMOST_HTTP_PORT=8065
export MATTERMOST_TLS_VERIFY=false
export MATTERMOST_USE_TLS=false
export MATTERMOST_USER=[email protected]
export MATTERMOST_PASSWORD=Xirtam770
export MATTERMOST_GROUP=internal
export MATTERMOST_LOG_LEVEL=debug
cd /home/spike/myhubot
bin/hubot --adapter matteruser > /var/log/hubot.log 2>&1
Log file
Mon Oct 17 2016 09:52:28 GMT-0700 (PDT)] INFO Logging in...
[Mon Oct 17 2016 09:52:28 GMT-0700 (PDT)] DEBUG POST /users/login
[Mon Oct 17 2016 09:52:28 GMT-0700 (PDT)] ERROR Login call failed
[Mon Oct 17 2016 09:52:28 GMT-0700 (PDT)] INFO Reconnecting in 1000ms
from hubot-matteruser.
So have got first part now just need it to connect to the room.
Can't have this
export MATTERMOST_HOST=http://127.0.0.1:8065
needed to be
export MATTERMOST_HOST=127.0.0.1
This is the new error
INFO Connecting...
[Mon Oct 17 2016 10:39:52 GMT-0700 (PDT)] ERROR Failed to get subscribed channels list from server.
from hubot-matteruser.
You're right.
Well done. Congrats
Sorry to be insistent but i think that your MATTERMOST_GROUP variable is not set correctly.
This variable should point to your team name. Is your team named "internal" ?
somewhere in the logs you should see this kind of line
[Mon Oct 17 2016 21:11:38 GMT+0200 (CEST)] DEBUG Found 1 teams.
[Mon Oct 17 2016 21:11:38 GMT+0200 (CEST)] DEBUG Testing mich == mich
from hubot-matteruser.
No it has to be set to the url. So mine I had to change to inter
from hubot-matteruser.
@downright770 did you check the suggestion of @mgrodrigues ? The group detection should indeed show up in your logs. Please let us know, thx.
from hubot-matteruser.
Related Issues (20)
- Lost integration when sending an attachments.
- Messages missed
- Send multiple messages with .send and messageRoom with one async function but still miss order. HOT 1
- Question about Dockerized version and custom scripts HOT 1
- Question: why do we add this.robot.name before the message when DM HOT 4
- Add unit tests for matteruser
- Avoid multiline format for log stack
- 🐛 Error building docker image HOT 3
- connect mattermost not reply in channels
- unable to connect with mattermost client. HOT 1
- Mattermost 7.7 Support
- No compatible version found: mattermost-client@^6.0.0 HOT 3
- Interactive dialogs HOT 3
- Do not cite author in replies
- whitelist of channels to join
- Migrating hubot to a bot account breaks it partially HOT 3
- Feature Request: mattermost-client to mattermost-client-node HOT 3
- Create user account via plugin
- hubot replies result in "Invalid RootId parameter" messages and no output HOT 11
- Need correction on channel name HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubot-matteruser.