GithubHelp home page GithubHelp logo

Comments (13)

mgrodrigues avatar mgrodrigues commented on June 12, 2024

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.

downright770 avatar downright770 commented on June 12, 2024

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.

mgrodrigues avatar mgrodrigues commented on June 12, 2024

You have a typo in MATTERMOST_HOST value.
It should be :
http://127.0.0.1:8065

from hubot-matteruser.

downright770 avatar downright770 commented on June 12, 2024

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.

downright770 avatar downright770 commented on June 12, 2024

still not working though

from hubot-matteruser.

mgrodrigues avatar mgrodrigues commented on June 12, 2024

Still a typo. You forgot the colon symbol after http

http://127.0.0.1:8065

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.

downright770 avatar downright770 commented on June 12, 2024

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.

mgrodrigues avatar mgrodrigues commented on June 12, 2024

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.

downright770 avatar downright770 commented on June 12, 2024

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.

downright770 avatar downright770 commented on June 12, 2024

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.

mgrodrigues avatar mgrodrigues commented on June 12, 2024

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.

downright770 avatar downright770 commented on June 12, 2024

No it has to be set to the url. So mine I had to change to inter

from hubot-matteruser.

loafoe avatar loafoe commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.