This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Missing messages in logfiles

General support and discussion of Eggdrop bots.
Post Reply
l
lxsg
Voice
Posts: 6
Joined: Wed Sep 09, 2009 7:28 pm

Missing messages in logfiles

Post by lxsg »

I'm trying to log the conversation on an IRC channel, and I've set up an Eggdrop on my VPS based on these two guides:
http://www.arkinex.com/guides/65/instal ... op-debian/
http://www.cyberarmy.net/library/article/207

The eggdrop.log shows that it's able to connect to the IRC server, but when I connect as another user from my PC, the bot is not on the user list. And the logfile doesn't contain any public messages other than these two lines:

[07:45] username joined #CHANNELNAME.
[07:45] #CHANNELNAME: mode change '+nt ' by irc.HOSTNAME.net

The corresponding option in eggdrop.conf:
logfile jpk #CHANNELNAME"/home/eggdrop/CHANNELNAME.log"

And here's the output from eggdrop -n beginning from the JOIN command:
[07:45] [s->] JOIN #CHANNELNAME
[07:45] [@] USERNAME!~USERNAME@IP.ADD.RE.SS JOIN :#CHANNELNAME
[07:45] USERNAME joined #CHANNELNAME.
[07:45] [!m] MODE #CHANNELNAME +b
[07:45] [m->] MODE #CHANNELNAME +b
[07:45] [!m] MODE #CHANNELNAME +e
[07:45] [m->] MODE #CHANNELNAME +e
[07:45] [!m] MODE #CHANNELNAME +I
[07:45] [!m] MODE #CHANNELNAME
[07:45] [!m] WHO #CHANNELNAME
[07:45] [!m] TOPIC #CHANNELNAME
[07:45] [@] irc.HOSTNAME.net MODE #CHANNELNAME +nt
[07:45] #CHANNELNAME: mode change '+nt ' by irc.HOSTNAME.net
[07:45] [@] irc.HOSTNAME.net 353 USERNAME = #CHANNELNAME :@USERNAME
[07:45] [@] irc.HOSTNAME.net 366 USERNAME #CHANNELNAME :End of /NAMES list.
[07:45] [@] irc.HOSTNAME.net 368 USERNAME #CHANNELNAME :End of Channel Ban List
[07:45] [@] irc.HOSTNAME.net 349 USERNAME #CHANNELNAME :End of Channel Exception List
[07:45] [m->] MODE #CHANNELNAME +I
[07:45] [@] irc.HOSTNAME.net 347 USERNAME #CHANNELNAME :End of Channel Invite List
[07:45] [m->] MODE #CHANNELNAME
[07:45] [@] irc.HOSTNAME.net 324 USERNAME #CHANNELNAME +nt
[07:45] [@] irc.HOSTNAME.net 329 USERNAME #CHANNELNAME 1252539918
[07:45] [m->] WHO #CHANNELNAME
[07:45] [@] irc.HOSTNAME.net 352 USERNAME #CHANNELNAME ~USERNAME IP.ADD.RE.SS irc.HOSTNAME.net USERNAME H@ :0 /msg USERNAME hello
[07:45] [@] irc.HOSTNAME.net 315 USERNAME #CHANNELNAME :End of /WHO list.
[07:45] [m->] TOPIC #CHANNELNAME
[07:45] [@] irc.HOSTNAME.net 331 USERNAME #CHANNELNAME :No topic is set.
[07:48] [@] PING :irc.HOSTNAME.net
[07:48] [m->] PONG :irc.HOSTNAME.net
[07:50] @#CHANNELNAME (+tn) : [m/1 o/1 h/0 v/0 n/0 b/0 e/0 I/0]
[07:50] [m->] PING :1252540200
[07:50] [@] irc.HOSTNAME.net PONG irc.HOSTNAME.net :1252540200

Any idea what could have caused this issue?
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

I'm not entirely sure I understand your question but I would make three observations.

1. If you are saying that when you connect to IRC from an alternative computer and find that your bot does not seem to be amongst the IRC channel users, then you are possibly connecting to to a different network server that is split from the one your bot is on.

2. The channel log definition in your .conf file would not generally need a full path for the file it creates to log channel events. It is normally saved to the logs subdirectory of your bot installation. You seem to be saving it to your bots root directory anyway.

3. There seems to be a space missing in the channel log definition in your .conf file unless this was simply an error in pasting the information to this forum.

Taking 2 and 3 above into account, change

logfile jpk #CHANNELNAME"/home/eggdrop/CHANNELNAME.log"

to

logfile jpk #CHANNELNAME "logs/CHANNELNAME.log"

I don't know if this helps or I have completely misunderstood your question.
I must have had nothing to do
l
lxsg
Voice
Posts: 6
Joined: Wed Sep 09, 2009 7:28 pm

Post by lxsg »

arfer wrote:I'm not entirely sure I understand your question but I would make three observations.

1. If you are saying that when you connect to IRC from an alternative computer and find that your bot does not seem to be amongst the IRC channel users, then you are possibly connecting to to a different network server that is split from the one your bot is on.

2. The channel log definition in your .conf file would not generally need a full path for the file it creates to log channel events. It is normally saved to the logs subdirectory of your bot installation. You seem to be saving it to your bots root directory anyway.

3. There seems to be a space missing in the channel log definition in your .conf file unless this was simply an error in pasting the information to this forum.

Taking 2 and 3 above into account, change

logfile jpk #CHANNELNAME"/home/eggdrop/CHANNELNAME.log"

to

logfile jpk #CHANNELNAME "logs/CHANNELNAME.log"

I don't know if this helps or I have completely misunderstood your question.
Thanks for your reply, Arfer.

1. I joined the channel via a few clients simultaneously and I do see the same user list, so I don't think it was split.

2. Erm, I don't think the log path really matters. After all, the log gets written in the correct path.

3. Yea I missed a space there while copying the text. The original .conf file has it.

Ok let me summarize my original post into two questions:
1. Why does my eggdrop not appear in the user list even though its log says that it's connected to the server?
2. Why is my eggdrop unable to log the public conversation?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Basically, either they're not connected to the same server (or servers on the same irc network), or the irc server(s) are playing a trick on you.

Taking into account the debug output in your first post, your eggdrop sees itself joining a channel where it instantly gains operator privileges, and is the sole channel-member (in essence, it "created" the channel).

Since you say you've got several other clients connected, which can see eachother but not your eggdrop, this only means that your clients and your eggdrop are in fact not joining the same channel. Either the channel-names are messed up, the server-names messed up, or your irc server(s) are playing tricks on you (I don't suppose you're using !channels ?)
NML_375
l
lxsg
Voice
Posts: 6
Joined: Wed Sep 09, 2009 7:28 pm

Post by lxsg »

nml375 wrote:Basically, either they're not connected to the same server (or servers on the same irc network), or the irc server(s) are playing a trick on you.

Taking into account the debug output in your first post, your eggdrop sees itself joining a channel where it instantly gains operator privileges, and is the sole channel-member (in essence, it "created" the channel).

Since you say you've got several other clients connected, which can see eachother but not your eggdrop, this only means that your clients and your eggdrop are in fact not joining the same channel. Either the channel-names are messed up, the server-names messed up, or your irc server(s) are playing tricks on you (I don't suppose you're using !channels ?)
Thanks for the quick reply.

Hmm...based on your observation, my guess is that my bot entered the wrong channel. Can I discuss with you about this over #eggdrop?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Feel free to try and catch me online, though I tend to be idle on irc every now and then these days..
NML_375
l
lxsg
Voice
Posts: 6
Joined: Wed Sep 09, 2009 7:28 pm

Post by lxsg »

nml375 wrote:Feel free to try and catch me online, though I tend to be idle on irc every now and then these days..
Thanks a lot for helping me troubleshoot this and getting it fixed over IRC! I owe you one for this.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Re: Missing messages in logfiles

Post by speechles »

lxsg wrote:I'm trying to log the conversation on an IRC channel, and I've set up an Eggdrop on my VPS based on these two guides:
http://www.arkinex.com/guides/65/instal ... op-debian/
http://www.cyberarmy.net/library/article/207
..snipped over quoting irrelevant parts, they've been omitted..

Any idea what could have caused this issue?
The 1st url you give appears to download, compile, make, etc the eggdrop. The 2nd url appears to do the same with added benefit of a simplified (albeit incomplete) eggdrop.conf setup. Using strictly these 2 urls to configure your eggdrop cause this behavior.

Code: Select all

# What is your network?
#   0 = EFnet
#   1 = IRCnet
#   2 = Undernet
#   3 = DALnet
#   4 = +e/+I/max-modes 20 Hybrid
#   5 = Others
set net-type 0
The default is set to efnet. Simply put, it starts out at 0. Unless you change this to what network-type your connecting to (and neither url above does, hence my mentioning incomplete up there), and it just so happens it isn't efnet. Well, you've just discovered what happens. ;)

Edit: solved before I saw it. But..was I right?
l
lxsg
Voice
Posts: 6
Joined: Wed Sep 09, 2009 7:28 pm

Re: Missing messages in logfiles

Post by lxsg »

speechles wrote:
lxsg wrote:I'm trying to log the conversation on an IRC channel, and I've set up an Eggdrop on my VPS based on these two guides:
http://www.arkinex.com/guides/65/instal ... op-debian/
http://www.cyberarmy.net/library/article/207
..snipped over quoting irrelevant parts, they've been omitted..

Any idea what could have caused this issue?
The 1st url you give appears to download, compile, make, etc the eggdrop. The 2nd url appears to do the same with added benefit of a simplified (albeit incomplete) eggdrop.conf setup. Using strictly these 2 urls to configure your eggdrop cause this behavior.

Code: Select all

# What is your network?
#   0 = EFnet
#   1 = IRCnet
#   2 = Undernet
#   3 = DALnet
#   4 = +e/+I/max-modes 20 Hybrid
#   5 = Others
set net-type 0
The default is set to efnet. Simply put, it starts out at 0. Unless you change this to what network-type your connecting to (and neither url above does, hence my mentioning icomplete up there), and it just so happens it isn't efnet. Well, you've just discovered what happens. ;)
I've changed that to "5" after reading through the entire .conf file (thanks to the 2 die statements embedded in there :lol: ).
l
lxsg
Voice
Posts: 6
Joined: Wed Sep 09, 2009 7:28 pm

Post by lxsg »

To anyone else reading this topic and hoping to find a solution for a similar issue, mine was just a misspelling of the channel name as nml375 has diagnosed for me; the eggdrop is working great now.
Post Reply