• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • ircbot-plugin
    • None
    • Hudson 1.351
      Windows 2000
      Tomcat 5.5
      Java 1.6.01 JDK

      I installed the IRC plugin a few days ago and configured it for my environment and customized each build's config appropriately, and the IRC bot does connect to my IRC Server (and for a bit everything worked perfectly), however, somewhere along the way the configurations for each build got lost and I don't have the options on their individual configuration screens any longer. The configuration for the IRC client under the Manage Hudson > Configure System is also missing, however, the bot does connect to the server still (but doesn't do anything because each build's configuration is missing). When looking at the Manage Hudson > Manage Plugins > Installed it does show that Hudson IRC plugin is installed.

      Installed Plugins:
      http://screencast.com/t/NzA0MGE2ZDk

      Example project missing IRC options:
      http://screencast.com/t/YWU3YzdlO

      IRC Channel - Hudson is online:
      http://screencast.com/t/YzJiMzAxNWMt

          [JENKINS-5978] IRC Configurations Not Available

          Code changed in hudson
          User: : kutzi
          Path:
          trunk/hudson/plugins/instant-messaging/src/main/java/hudson/plugins/im/AuthenticationHolder.java
          trunk/hudson/plugins/instant-messaging/src/main/java/hudson/plugins/im/IMConnectionProvider.java
          trunk/hudson/plugins/instant-messaging/src/main/java/hudson/plugins/im/bot/Bot.java
          trunk/hudson/plugins/ircbot/src/main/java/hudson/plugins/ircbot/v2/IRCConnection.java
          trunk/hudson/plugins/ircbot/src/main/java/hudson/plugins/ircbot/v2/IRCConnectionProvider.java
          trunk/hudson/plugins/jabber/src/main/java/hudson/plugins/jabber/im/transport/JabberIMConnection.java
          trunk/hudson/plugins/jabber/src/main/java/hudson/plugins/jabber/im/transport/JabberIMConnectionProvider.java
          http://jenkins-ci.org/commit/33296
          Log:
          JENKINS-5233 JENKINS-5978 Jabber/ircbot section wasn't showing up in global configuration page

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kutzi Path: trunk/hudson/plugins/instant-messaging/src/main/java/hudson/plugins/im/AuthenticationHolder.java trunk/hudson/plugins/instant-messaging/src/main/java/hudson/plugins/im/IMConnectionProvider.java trunk/hudson/plugins/instant-messaging/src/main/java/hudson/plugins/im/bot/Bot.java trunk/hudson/plugins/ircbot/src/main/java/hudson/plugins/ircbot/v2/IRCConnection.java trunk/hudson/plugins/ircbot/src/main/java/hudson/plugins/ircbot/v2/IRCConnectionProvider.java trunk/hudson/plugins/jabber/src/main/java/hudson/plugins/jabber/im/transport/JabberIMConnection.java trunk/hudson/plugins/jabber/src/main/java/hudson/plugins/jabber/im/transport/JabberIMConnectionProvider.java http://jenkins-ci.org/commit/33296 Log: JENKINS-5233 JENKINS-5978 Jabber/ircbot section wasn't showing up in global configuration page

          kutzi added a comment - - edited

          Could you please try the attached plugin snapshots to confirm if they fix the problem?

          kutzi added a comment - - edited Could you please try the attached plugin snapshots to confirm if they fix the problem?

          rshelley added a comment -

          Tried these two new HPIs and got the following error:

          Exception in thread "IM-Reconnector-Thread" java.lang.NoSuchMethodError: hudson.plugins.ircbot.v2.IRCConnectionProvider.getAuthentication()Lorg/aceg security/Authentication;
          at hudson.plugins.ircbot.v2.IRCConnectionProvider.createConnection(IRCConnectionProvider.java:36)
          at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:56)
          at hudson.plugins.im.IMConnectionProvider.access$2(IMConnectionProvider.java:54)
          at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:171)
          at java.lang.Thread.run(Thread.java:619)
          Sep 1, 2010 1:47:42 PM hudson.plugins.im.DummyConnection setPresence
          INFO: Set presence via dummy connection: 'AVAILABLE' : 'Yawn, I'm so bored. Don't you have some work for me?'

          My Installed Plugins shows the versions:

          Hudson IM Plugin - 1.9-SNAPSHOT (private-07/28/2010 15:44-kutzi)
          Hudson IRC Plugin - 2.5

          rshelley added a comment - Tried these two new HPIs and got the following error: Exception in thread "IM-Reconnector-Thread" java.lang.NoSuchMethodError: hudson.plugins.ircbot.v2.IRCConnectionProvider.getAuthentication()Lorg/aceg security/Authentication; at hudson.plugins.ircbot.v2.IRCConnectionProvider.createConnection(IRCConnectionProvider.java:36) at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:56) at hudson.plugins.im.IMConnectionProvider.access$2(IMConnectionProvider.java:54) at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:171) at java.lang.Thread.run(Thread.java:619) Sep 1, 2010 1:47:42 PM hudson.plugins.im.DummyConnection setPresence INFO: Set presence via dummy connection: 'AVAILABLE' : 'Yawn, I'm so bored. Don't you have some work for me?' My Installed Plugins shows the versions: Hudson IM Plugin - 1.9-SNAPSHOT (private-07/28/2010 15:44-kutzi) Hudson IRC Plugin - 2.5

          rshelley added a comment -

          I should also note that we upgraded our Hudson instance to 1.372 recently.

          rshelley added a comment - I should also note that we upgraded our Hudson instance to 1.372 recently.

          kutzi added a comment -

          Sorry, i had attached an old version of the ircbot plugin. Please try with the new attachement.
          The version should be 2.6-SNAPSHOT

          kutzi added a comment - Sorry, i had attached an old version of the ircbot plugin. Please try with the new attachement. The version should be 2.6-SNAPSHOT

          rshelley added a comment -

          Same as before.

          I'm logging all my connections, user and service, and I never see the IRC bot connect. Instead, I see:

          Sep 1, 2010 3:01:22 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run
          INFO: Trying to reconnect
          Sep 1, 2010 3:01:22 PM hudson.plugins.ircbot.v2.IRCConnection connect
          INFO: connected to IRC
          Sep 1, 2010 3:01:22 PM hudson.plugins.ircbot.v2.IRCConnection getGroupChat
          INFO: Trying to join channel #welcome

          Out of curiosity, I connected to IRC manually with the same user and password, and my connect log shows the connection and the session is established. Funny thing is, if I stay connected, the IRC bot from Hudson will try to reconnect and fail saying the nick is already taken. Thinking that maybe the bot is connecting as a service, I check my services log and I see my ChanServ bot connect, but not the IRC bot from Hudson.

          Does the pIRCBot try to connect to IRC as a service or as a regular user?

          rshelley added a comment - Same as before. I'm logging all my connections, user and service, and I never see the IRC bot connect. Instead, I see: Sep 1, 2010 3:01:22 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect Sep 1, 2010 3:01:22 PM hudson.plugins.ircbot.v2.IRCConnection connect INFO: connected to IRC Sep 1, 2010 3:01:22 PM hudson.plugins.ircbot.v2.IRCConnection getGroupChat INFO: Trying to join channel #welcome Out of curiosity, I connected to IRC manually with the same user and password, and my connect log shows the connection and the session is established. Funny thing is, if I stay connected, the IRC bot from Hudson will try to reconnect and fail saying the nick is already taken. Thinking that maybe the bot is connecting as a service, I check my services log and I see my ChanServ bot connect, but not the IRC bot from Hudson. Does the pIRCBot try to connect to IRC as a service or as a regular user?

          rshelley added a comment -

          It's timing out here:

          // TODO: how to check that join was successful (channelJoined is called later -
          // how long should we possibly wait until we declare that join was unsuccessful?)
          this.bots.add(new Bot(new IRCChannel(channel.getName(), this.pircConnection),
          this.descriptor.getNick(), this.descriptor.getHost(),
          this.descriptor.getCommandPrefix(), this.authentication));

          The Plugin will keep trying to reconnect, but something about the connection isn't going through. I've tried messaging the plugin's nick from my account while the plugin attempts to connect and it doesn't register as being connected. I'm not sure if the connection failed but it thinks it hasn't so it seems to be trying to join a channel and timing out. I'm not sure though...

          rshelley added a comment - It's timing out here: // TODO: how to check that join was successful (channelJoined is called later - // how long should we possibly wait until we declare that join was unsuccessful?) this.bots.add(new Bot(new IRCChannel(channel.getName(), this.pircConnection), this.descriptor.getNick(), this.descriptor.getHost(), this.descriptor.getCommandPrefix(), this.authentication)); The Plugin will keep trying to reconnect, but something about the connection isn't going through. I've tried messaging the plugin's nick from my account while the plugin attempts to connect and it doesn't register as being connected. I'm not sure if the connection failed but it thinks it hasn't so it seems to be trying to join a channel and timing out. I'm not sure though...

          kutzi added a comment -

          Wait, we are talking about 2 different issues now:
          I) IRC configuration options not available
          II) ircbot cannot connect - which is a new issues AFAIR

          Any updates on I?

          Regarding II, as a wild guess: has this anything to do with JENKINS-6600?
          If not please open a new issue for that problem.

          kutzi added a comment - Wait, we are talking about 2 different issues now: I) IRC configuration options not available II) ircbot cannot connect - which is a new issues AFAIR Any updates on I? Regarding II, as a wild guess: has this anything to do with JENKINS-6600 ? If not please open a new issue for that problem.

          rshelley added a comment -

          Gah! Sorry! Yes! The configs ARE available again in both the Hudson Configure and job Configure screens, and yes on JENKINS-600 with my current issue. I'll follow up there. Sorry for the confusion, and thanks for the effort you've put in to following up on this issue!

          rshelley added a comment - Gah! Sorry! Yes! The configs ARE available again in both the Hudson Configure and job Configure screens, and yes on JENKINS-600 with my current issue. I'll follow up there. Sorry for the confusion, and thanks for the effort you've put in to following up on this issue!

          kutzi added a comment -

          Thanks for retesting this

          kutzi added a comment - Thanks for retesting this

            kutzi kutzi
            rshelley rshelley
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: