Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22042

IRCBot disconnects after long idle

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • ircbot-plugin
    • None
    • CentOS 5.4 x64, ircd-seven (latest), Atheme Services 7.0.x

    Description

      We have an own installation of IRCd which is running the latest version of IRCd Seven with Atheme Services (more or less the same setup as on Freenode).

      Jenkins Bot is able to join and authenticate properly and stays in the channel for some time. It is also correctly publishing notifications and responds to commands. But after a period of inactivity (we have no activity in channel during the night) it dies (basically the bot times out during the night at some point). And the only way for it to re-join is for us to restart Jenkins server which seems bad.

      Attachments

        Issue Links

          Activity

            We just had this exact issue effect us, had to restart to get moving again as well.

            Exception in thread "bot4-input" java.lang.RuntimeException: Waiting for mode response interrupted
            at org.pircbotx.Channel.getMode(Channel.java:133)
            at org.pircbotx.Channel.getModeArgument(Channel.java:182)
            at org.pircbotx.Channel.getChannelKey(Channel.java:239)
            at org.pircbotx.PircBotX.shutdown(PircBotX.java:2872)
            at org.pircbotx.PircBotX.shutdown(PircBotX.java:2833)
            at org.pircbotx.InputThread.run(InputThread.java:115)
            Caused by: java.lang.InterruptedException
            at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1301)
            at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
            at org.pircbotx.Channel.getMode(Channel.java:127)
            ... 5 more

            jimbo jim gedarovich added a comment - We just had this exact issue effect us, had to restart to get moving again as well. Exception in thread "bot4-input" java.lang.RuntimeException: Waiting for mode response interrupted at org.pircbotx.Channel.getMode(Channel.java:133) at org.pircbotx.Channel.getModeArgument(Channel.java:182) at org.pircbotx.Channel.getChannelKey(Channel.java:239) at org.pircbotx.PircBotX.shutdown(PircBotX.java:2872) at org.pircbotx.PircBotX.shutdown(PircBotX.java:2833) at org.pircbotx.InputThread.run(InputThread.java:115) Caused by: java.lang.InterruptedException at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1301) at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236) at org.pircbotx.Channel.getMode(Channel.java:127) ... 5 more

            Exception in thread "bot2-input" java.lang.RuntimeException: Waiting for mode response interrupted
            at org.pircbotx.Channel.getMode(Channel.java:133)
            at org.pircbotx.Channel.getModeArgument(Channel.java:182)
            at org.pircbotx.Channel.getChannelKey(Channel.java:239)
            at org.pircbotx.PircBotX.shutdown(PircBotX.java:2872)
            at org.pircbotx.PircBotX.shutdown(PircBotX.java:2833)
            at org.pircbotx.InputThread.run(InputThread.java:115)
            Caused by: java.lang.InterruptedException
            at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1301)
            at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
            at org.pircbotx.Channel.getMode(Channel.java:127)
            ... 5 more

            then the entire jenkins instance is stuck as no job can finish, stuck indefinitely in "IRC notifier plugin: Sending notification to:...."

            require a hard restart to get the thing moving again.

            shmget Norbert Thiebaud added a comment - Exception in thread "bot2-input" java.lang.RuntimeException: Waiting for mode response interrupted at org.pircbotx.Channel.getMode(Channel.java:133) at org.pircbotx.Channel.getModeArgument(Channel.java:182) at org.pircbotx.Channel.getChannelKey(Channel.java:239) at org.pircbotx.PircBotX.shutdown(PircBotX.java:2872) at org.pircbotx.PircBotX.shutdown(PircBotX.java:2833) at org.pircbotx.InputThread.run(InputThread.java:115) Caused by: java.lang.InterruptedException at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1301) at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236) at org.pircbotx.Channel.getMode(Channel.java:127) ... 5 more then the entire jenkins instance is stuck as no job can finish, stuck indefinitely in "IRC notifier plugin: Sending notification to:...." require a hard restart to get the thing moving again.
            urras Nick Hovaker added a comment -

            @kutzi I will once it happens again on my instance

            urras Nick Hovaker added a comment - @kutzi I will once it happens again on my instance
            kutzi kutzi added a comment -

            @urras: as you changed this to Critical: can you provide more information. I.e. how to reproduce, error entries in log file etc?

            kutzi kutzi added a comment - @urras: as you changed this to Critical: can you provide more information. I.e. how to reproduce, error entries in log file etc?
            kutzi kutzi added a comment -

            Herman, on further thoughts your issue seems to be pretty different from the originally reported issue - disconnecting and hanging on notifications is actually a totally different thing.
            Isn't it actually what you reported in JENKINS-26491?

            kutzi kutzi added a comment - Herman, on further thoughts your issue seems to be pretty different from the originally reported issue - disconnecting and hanging on notifications is actually a totally different thing. Isn't it actually what you reported in JENKINS-26491 ?

            People

              kutzi kutzi
              alexejk Alexej Kubarev
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: