Giter Site home page Giter Site logo

Comments (24)

MZAWeb avatar MZAWeb commented on May 24, 2024

I'm having the exact same problem

from hubot-slack.

plukevdh avatar plukevdh commented on May 24, 2024

same here.

from hubot-slack.

erunion avatar erunion commented on May 24, 2024

From what I've seen, they need to be able to hit the Hubot URL in the integration config.

from hubot-slack.

plukevdh avatar plukevdh commented on May 24, 2024

Is there anything magical needed to set that up? Just the ENV param?

from hubot-slack.

evansolomon avatar evansolomon commented on May 24, 2024

You need a URL in the slack config. Slack hits your hubot server with post requests for each message, so it needs to be accessible from a URL.

I'm not really sure if I understand the question, particularly the "self hosted" description, but the URL but is definitely important.

from hubot-slack.

matt-oakes avatar matt-oakes commented on May 24, 2024

I have hubot with hubot-slack installed using dokku on our own publicly accessible server. I've tried setting the HEROKU_URL config variable, but that doesn't seem to help. Any idea?

from hubot-slack.

desmondmorris avatar desmondmorris commented on May 24, 2024

@evansolomon thanks for this. To be clear when I say self-hosted, I mean installed somewhere other than Heroku.

Can you give more details on what the POST payload to that URL looks like? My understanding is that hubot does not open any web accessible ports by default. What endpoint is slack hitting? What response is it expecting?

from hubot-slack.

desmondmorris avatar desmondmorris commented on May 24, 2024

As a test, I set the hubot url in the configuration options to a requestbin endpoint http://requestb.in/1gemf3r1?inspect.

After reloaded my hubot, I am not seeing any requests posted to the requestbin endpoint. Any ideas @evansolomon?

from hubot-slack.

MZAWeb avatar MZAWeb commented on May 24, 2024

Hubot's default port is 8080. Try your public ip / domain :8080

from hubot-slack.

desmondmorris avatar desmondmorris commented on May 24, 2024

@MZAWeb good call! Thanks, I will take a look.

from hubot-slack.

evansolomon avatar evansolomon commented on May 24, 2024

Hubot runs an instance of Express, so all of the web server stuff is just an Express server. You can customize the port by setting the PORT env variable.

For an easy test, you should be able to hit /hubot/version and get a response with the hubot version you're running.

from hubot-slack.

evansolomon avatar evansolomon commented on May 24, 2024

@matto1990 you don't need to set HEROKU_URL if you're not using Heroku. I think it's only used for pinging that URL on some interval to prevent dynos from sleeping.

from hubot-slack.

matt-oakes avatar matt-oakes commented on May 24, 2024

Thanks Evan. I read that after I posted. Still can't figure out why it
doesn't work on non-heroku installs though. It's definitely accessible from
the web and slack is point to the right URL.
On 28 Feb 2014 17:55, "Evan Solomon" [email protected] wrote:

@matto1990 https://github.com/matto1990 you don't need to set
HEROKU_URL if you're not using Heroku. I think it's only used for pinging
that URL on some interval to prevent dynos from sleeping.

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

from hubot-slack.

matt-oakes avatar matt-oakes commented on May 24, 2024

I just solved this by making sure the URL in Slack has a slash after it. It
all works now!
On 28 Feb 2014 18:39, "Matt Oakes" [email protected] wrote:

Thanks Evan. I read that after I posted. Still can't figure out why it
doesn't work on non-heroku installs though. It's definitely accessible from
the web and slack is point to the right URL.
On 28 Feb 2014 17:55, "Evan Solomon" [email protected] wrote:

@matto1990 https://github.com/matto1990 you don't need to set
HEROKU_URL if you're not using Heroku. I think it's only used for pinging
that URL on some interval to prevent dynos from sleeping.

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

from hubot-slack.

bdefore avatar bdefore commented on May 24, 2024

what would be the suggested configuration to run hubot on the same server that's running jenkins (which by default fires up jetty at 8080)? we use hubot to do some common engineering tasks on our ci machine.

from hubot-slack.

bdefore avatar bdefore commented on May 24, 2024

i was able to open up 8081 on my ec2 instance, set PORT=8081 as an env variable, restart hubot, and update my integration settings Hubot URL to http://ec2-xxx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com:8081/ and now it's working

from hubot-slack.

desmondmorris avatar desmondmorris commented on May 24, 2024

I think I can put the fork in this one.

Thank you @MZAWeb @evansolomon @matto1990 for helping figure this out.

from hubot-slack.

matt-oakes avatar matt-oakes commented on May 24, 2024

Just a side note for @tinyspeck: it would be great if Slack could detect if you hadn't added the trailing slash and add one.

from hubot-slack.

stv-io avatar stv-io commented on May 24, 2024

hey guys, I'm currently setting this up in our env, and was thinking, perhaps @tinyspeck could help, what are the public IPs which we can whitelist from our firewall to connect through to the Hubot listener?

from hubot-slack.

clintmiller avatar clintmiller commented on May 24, 2024

I've got a similar setup where I'm not hosting Hubot on Heroku. In the Slack Hubot integration, there is no field to enter a "Hubot URL." How is this supposed to work?

from hubot-slack.

gbougeard avatar gbougeard commented on May 24, 2024

Hi, I have the same issue : I deployed a containerized hubot-slack on ec2 and it cannot connect to slack.
When I run the container on my machine, the connection is done and successful.
I think it does not work on EC2 beacuse my instance might be private but as I do not see any point about how hubot-slack and slack communicate, I don't get what I miss.
Btw, there is no more Hubot URL configuration in the Slack Hubot integration.

from hubot-slack.

evansolomon avatar evansolomon commented on May 24, 2024

@gbougeard this sounds like a security group egress rule issue. The client connects to Slack by a websocket, so you need to make sure the server can access the internet (this is disabled in AWS by default I think since they switched to VPCs).

from hubot-slack.

gbougeard avatar gbougeard commented on May 24, 2024

Yes I finally successfully configure my security groups.
Thanks

from hubot-slack.

memelet avatar memelet commented on May 24, 2024

Configured the security exactly how? I have opened all egress ports to 0.0.0.0 and still cannot connect to slack.

from hubot-slack.

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.