| View previous topic :: View next topic |
| Author |
Message |
kukhuvud Voice
Joined: 12 Jun 2007 Posts: 4 Location: Hollywood, CA
|
Posted: Tue Jun 12, 2007 11:00 pm Post subject: So I needed to build an irc server.. [SOLVED] |
|
|
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 |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Jun 13, 2007 12:01 am Post subject: |
|
|
Setting up an Eggdrop
Note: eggdrop cannot be run from root.
| Code: | | ./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 |
|
| Back to top |
|
 |
kukhuvud Voice
Joined: 12 Jun 2007 Posts: 4 Location: Hollywood, CA
|
Posted: Wed Jun 13, 2007 12:23 am Post subject: |
|
|
| Alchera wrote: |
Note: eggdrop cannot be run from root.
| Code: | | ./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 |
|
| Back to top |
|
 |
kukhuvud Voice
Joined: 12 Jun 2007 Posts: 4 Location: Hollywood, CA
|
Posted: Wed Jun 13, 2007 1:14 am Post subject: One more thing |
|
|
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? |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Wed Jun 13, 2007 2:36 pm Post subject: |
|
|
1) check the ircd's log
2) look through each line of your bot's conf file again. |
|
| Back to top |
|
 |
kukhuvud Voice
Joined: 12 Jun 2007 Posts: 4 Location: Hollywood, CA
|
Posted: Wed Jun 13, 2007 5:06 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Thu Jun 14, 2007 1:23 am Post subject: |
|
|
Gah, GNU seems to be acting like Microsoft lately, I'll stick with BSD.
Glad you found and worked out your problem. |
|
| Back to top |
|
 |
|