ARMmaster17 / JeffBot

(Yet another) comical and extensible chat bot.
https:\\jeffchatbot.herokuapp.com
MIT License
9 stars 2 forks source link

Backend Server Timeout #16

Closed FreekingDean closed 8 years ago

FreekingDean commented 8 years ago

It looks like your backend server is timing out.

I also see you're using RabbitMQ for message passing in order to process messages. Heroku will automatically sleep an app with no activity in the past (some number) minutes. Message passing will then not be received by the sleeping server which is the backend service in this case. Unfortunately the best/only way to fix this I know of is to pay 💸 . I think hobby dynos are something like 6$ a month though.

ARMmaster17 commented 8 years ago

It may just be a problem with the JavaScript of the front-end site. The GroupMe interface is working from a sleeping state (with about 5-10 seconds of delay). Will investigate further.

ARMmaster17 commented 8 years ago

The backend servers should 'wake up' at the same time as the web servers.

FreekingDean commented 8 years ago

Ah! Are they running on the same Heroku app?

ARMmaster17 commented 8 years ago

Yes, they are defined as two different nodes inside ~/Procfile, but they run under the same app.

FreekingDean commented 8 years ago

Ah! I should have looked at that first

ARMmaster17 commented 8 years ago

That's weird. I just tested the front end and it keeps timing out. The GroupMe interface on the other hand happens within a few seconds. PaperTrail is returning H12 (router-level timout after 30 seconds).

ARMmaster17 commented 8 years ago

a31ac23 will redirect users for now. Keeping open as master thread.

FreekingDean commented 8 years ago

This is due to an error in the sinatra code, I am updating it an releasing a seperate JeffBot-Web version to fix.

FreekingDean commented 8 years ago

https://github.com/FreekingDean/JeffBot-Web fixes this. We could/should close this when #28 is merged.

ARMmaster17 commented 8 years ago

Closing from #28