GithubHelp home page GithubHelp logo

Comments (4)

RamblingCookieMonster avatar RamblingCookieMonster commented on May 28, 2024

Here's some log output now that we're running at a higher logging level!

DataTime             Class           Method         Severity LogLevel Message                                   Data
--------             -----           ------         -------- -------- -------                                   ----                  
2017-08-16 20:35:52Z SlackBackend    ReceiveMessage Normal   Debug    Message type is [reconnect_url]. Ignoring     
2017-08-16 21:43:06Z Bot             Disconnect     Normal   Verbose  Disconnecting from backend chat network       
2017-08-16 21:43:06Z SlackConnection Disconnect     Normal   Info     Closing websocket                             
2017-08-16 21:43:06Z SlackConnection Disconnect     Normal   Info     Stopping receive job [1]                      
2017-08-16 21:43:06Z Bot             Disconnect     Normal   Verbose  Disconnecting from backend chat network       
2017-08-16 21:43:06Z SlackConnection Disconnect     Normal   Info     Closing websocket                             

So, ~ 1 hour goes by and it just... disconnects. The time seems arbitrary. Some times it will be days.
I don't know if it's activity/idle time related though, given that this was the middle of the day. Haven't traced through the code to see where other debug logging might be helpful, should have time over the next few weeks

Cheers!

from poshbot.

devblackops avatar devblackops commented on May 28, 2024

Thanks @RamblingCookieMonster. I haven't seen this issue with the backend disconnecting randomly but I did add some reconnection logic in commit f070972. I tested this by:

  1. Starting the bot and verifying it is connected and processing messages/commands
  2. Disabling the NIC
  3. Watching the logs to see the disconnect happen and the reconnection logic trigger repeatedly (every 5 seconds)
  4. Re-enabling the NIC
  5. Observe the backend immediately logging into Slack again and begin processes messages.

Mind given this version a go?

from poshbot.

devblackops avatar devblackops commented on May 28, 2024

@RamblingCookieMonster Are the connection drops still an issue after the reconnection logic f070972 was put in?

from poshbot.

RamblingCookieMonster avatar RamblingCookieMonster commented on May 28, 2024

Nope, that worked perfectly, closing this out - thanks!

from poshbot.

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.