Details

Description

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.

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 - 2010-09-01 16:29 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?

// 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 - 2010-09-01 17:12 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 - 2010-09-02 00:30 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.

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 - 2010-09-02 09:02 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!