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.

So I needed to build an irc server.. [SOLVED]

General support and discussion of Eggdrop bots.
Post Reply
k
kukhuvud
Voice
Posts: 4
Joined: Tue Jun 12, 2007 10:44 pm
Location: Hollywood, CA

So I needed to build an irc server.. [SOLVED]

Post by kukhuvud »

I built a Mandriva 2007 box, installed & configured the latest Unreal 3.2, and my friends and I can log into my server with no issues using various clients. Cool!

Now I wanted to add a bot to this server. I urpmi'd tcl & eggdrop, set up eggdrop.conf and launched it... and it claims to be working:

[me@mandriva eggdrop]$ ./eggdrop

Eggdrop v1.6.17 (C) 1997 Robey Pointer (C) 2004 Eggheads
[04:45] --- Loading eggdrop v1.6.17 (Tue Jun 12 2007)
[04:45] Listening at telnet port 7772 (all).
[04:45] Module loaded: dns
[04:45] Module loaded: channels
[04:45] Module loaded: server
[04:45] Module loaded: ctcp
[04:45] Module loaded: irc
[04:45] Module loaded: console (with lang support)
[04:45] Module loaded: blowfish
[04:45] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[04:45] use '.help userinfo' for commands.
[04:45] Userfile loaded, unpacking...
[04:45] === locutus: 1 channels, 1 users.
Launched into the background (pid: 8262)
[me@mandriva eggdrop]$

...but it never actually logs into the server/chan. I'm able to telnet to the bot with no issues, but the info it gives isn't informative enough to tell me what's wrong:

[04:47] #borg# servers
Server list:
my.dyndns.name:9999
my.external.ip:9999 <- I am here
my.internal.ip:9999
End of server list.
[04:48] Trying server my.internal.ip:9999
[04:48] Connected to my.internal.ip
[04:48] Disconnected from my.internal.ip
[04:49] Trying server my.dyndns.name:9999
[04:49] Connected to my.dyndns.name
[04:49] Disconnected from my.dyndns.name
[04:50] Trying server my.external.ip:9999
[04:50] Connected to my.external.ip
[04:50] Disconnected from my.external.ip

And so on. Eggdrop.log doesn't seem to have any useful info in this case, and I'm really stuck. This is my first irc server & bot setup ever, so I'm hoping that I'm just missing something small & stupid.

Can anyone here set this newbie straight? :)
Last edited by kukhuvud on Wed Jun 13, 2007 5:03 pm, edited 1 time in total.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Setting up an Eggdrop

Note: eggdrop cannot be run from root.

Code: Select all

./eggdrop -n eggdrop.conf
The above will display all connection details. CTRL + C will terminate.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
k
kukhuvud
Voice
Posts: 4
Joined: Tue Jun 12, 2007 10:44 pm
Location: Hollywood, CA

Post by kukhuvud »

Alchera wrote: Note: eggdrop cannot be run from root.

Code: Select all

./eggdrop -n eggdrop.conf
The above will display all connection details. CTRL + C will terminate.
Thanks, that -n is badass! :)

And the program makes it clear that it doesn't wanna run as root, so I run it as another user "me" :)

This is the putput from ./eggdrop -n :

[me@mandriva eggdrop]$ ./eggdrop -n

Eggdrop v1.6.17 (C) 1997 Robey Pointer (C) 2004 Eggheads
[05:58] Allocated bind table unld (flags 1)
[05:58] Allocated bind table time (flags 1)
[05:58] Allocated bind table note (flags 0)
[05:58] Allocated bind table nkch (flags 1)
[05:58] Allocated bind table load (flags 1)
[05:58] Allocated bind table link (flags 1)
[05:58] Allocated bind table filt (flags 1)
[05:58] Allocated bind table disc (flags 1)
[05:58] Allocated bind table dcc (flags 0)
[05:58] Allocated bind table chpt (flags 1)
[05:58] Allocated bind table chon (flags 1)
[05:58] Allocated bind table chof (flags 1)
[05:58] Allocated bind table chjn (flags 1)
[05:58] Allocated bind table chat (flags 1)
[05:58] Allocated bind table bot (flags 0)
[05:58] Allocated bind table bcst (flags 1)
[05:58] Allocated bind table away (flags 1)
[05:58] Allocated bind table act (flags 1)
[05:58] Allocated bind table evnt (flags 1)
[05:58] --- Loading eggdrop v1.6.17 (Tue Jun 12 2007)
[05:58] Listening at telnet port 7772 (all).
[05:58] Module loaded: dns
[05:58] Module loaded: channels
[05:58] Allocated bind table wall (flags 1)
[05:58] Allocated bind table raw (flags 1)
[05:58] Allocated bind table notc (flags 1)
[05:58] Allocated bind table msgm (flags 1)
[05:58] Allocated bind table msg (flags 0)
[05:58] Allocated bind table flud (flags 1)
[05:58] Allocated bind table ctcr (flags 1)
[05:58] Allocated bind table ctcp (flags 1)
[05:58] Module loaded: server
[05:58] Module loaded: ctcp
[05:58] Allocated bind table topc (flags 1)
[05:58] Allocated bind table splt (flags 1)
[05:58] Allocated bind table sign (flags 1)
[05:58] Allocated bind table rejn (flags 1)
[05:58] Allocated bind table part (flags 1)
[05:58] Allocated bind table nick (flags 1)
[05:58] Allocated bind table mode (flags 1)
[05:58] Allocated bind table kick (flags 1)
[05:58] Allocated bind table join (flags 1)
[05:58] Allocated bind table pubm (flags 1)
[05:58] Allocated bind table pub (flags 0)
[05:58] Allocated bind table need (flags 1)
[05:58] Module loaded: irc
[05:58] LANG: Section loaded: console
[05:58] LANG: 10 messages of 15 lines loaded from ./language/console.english.lang
[05:58] LANG: 10 adds, 0 updates to message table
[05:58] Module loaded: console (with lang support)
[05:58] Module loaded: blowfish
[05:58] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[05:58] use '.help userinfo' for commands.
[05:58] Userfile loaded, unpacking...
[05:58] === locutus: 1 channels, 1 users.
[05:58] main: entering loop
[05:58] Trying server my.dyndns.name:9999
[05:58] DNS resolved my.dyndns.name to my.external.ip
[05:58] net: connect! sock 8
[05:58] Connected to my.dyndns.name
[05:58] net: eof!(read) socket 8
[05:58] Disconnected from my.dyndns.name
[05:59] Trying server my.external.ip:9999
[05:59] net: connect! sock 8
[05:59] Connected to my.external.ip
[05:59] net: eof!(read) socket 8
[05:59] Disconnected from my.external.ip
[06:00] Writing user file...
[06:00] Writing channel file...
[06:00] Trying server my.internal.ip:9999
[06:00] net: connect! sock 8
[06:00] Connected to my.internal.ip
[06:00] net: eof!(read) socket 8
[06:00] Disconnected from my.internal.ip
[06:01] Trying server my.dyndns.name:9999
[06:01] DNS resolved my.dyndns.name to my.external.ip
[06:01] net: connect! sock 8
[06:01] Connected to my.dyndns.name
[06:01] net: eof!(read) socket 8
[06:01] Disconnected from my.dyndns.name


What does this mean? Could this be related to ssl and/or blowfish? Beats me ;)
Last edited by kukhuvud on Thu Jun 14, 2007 1:52 am, edited 1 time in total.
k
kukhuvud
Voice
Posts: 4
Joined: Tue Jun 12, 2007 10:44 pm
Location: Hollywood, CA

One more thing

Post by kukhuvud »

My servers in eggdrop.conf are set like so:

# Eggdrop has trouble detecting it when it starts up.
set my-hostname "my.dyndns.name"
#set my-ip "my.external.ip"
#set my-ip "my.internal.ip"

If I uncomment "my.external.ip" at any point before eggdrop startup, I'm told that the port isn't listening. This is very untrue; the port forwarding on the wrt54g is set exactly proper. I have only 3 machines here, so handling 3 ip's isn't exactly rocket science ;)

Perhaps a clue?
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

1) check the ircd's log
2) look through each line of your bot's conf file again.
k
kukhuvud
Voice
Posts: 4
Joined: Tue Jun 12, 2007 10:44 pm
Location: Hollywood, CA

Post by kukhuvud »

The trick seems to be that the urpmi'd tcl & eggdrop aren't good enough to function.

Downloading the eggdrop 1.6.18 tarball, patching it with ssl, and compiling it manually did the trick. Though, ./configure would complain that I had no tcl installed and this was solved by urpmi of libtcl8.4-devel and libtk8.4-devel.

:)
Last edited by kukhuvud on Thu Jun 14, 2007 1:51 am, edited 1 time in total.
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

Gah, GNU seems to be acting like Microsoft lately, I'll stick with BSD.
Glad you found and worked out your problem.
Post Reply