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.

need help

Old posts that have not been replied to for several years.
Locked
J
JayC

need help

Post by JayC »

I have some problems connecting some eggdrops in different places:
1) Can't connecto to <server> (Invalid NameSpace)
2) I Get Server Timeouts, i don't know why because i don't get timeouts on other irc clients.

Please HELP
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

When you say you don't get timeout's on other clients.

Are these clients on the same machine?

Are you running eggdrop on *nix or windows?
J
JayC

Post by JayC »

Timeouts I get on a Windows machine.
The first problem i would like more help on, that's on a *nix machine.
M
Mapherick

Need more info

Post by Mapherick »

from net.c:

Code: Select all

void neterror(char *s)
{
  switch (errno) {
  case EADDRINUSE:
    strcpy(s, "Address already in use");
    break;
[cut]

Code: Select all

  case EINVAL:
    strcpy(s, "Invalid namespace");
    break;
from HP-UX manpages:

Code: Select all

[EINVAL]        Invalid argument.  Some invalid argument (such as
                unmounting a device that is not currently mounted,
                mentioning an undefined signal in signal() or kill(), or
                reading or writing a file for which lseek() has generated 
                a negative pointer).
Can you supply a bit more details about your environment?
Info like eggdrop version, tcl version, OS version and compiler version are very usefull. Also: do you use custom scripts and modules? If yes, which?

So far it looks like either code from the net.c or an external module is generating this error.
J
JayC

Post by JayC »

I'm running Mandrake Linux 8.2, Tcl. version 8.3, compiler version i don't know.
I use scripts ( don't know if custom ) but i don't think that's the problem because i've unchecked them and still the same error.
I get this error on eggdrop versions 1.6.12 and 1.6.10, i haven't tried on an older version.
Last edited by JayC on Sat Aug 17, 2002 7:38 am, edited 1 time in total.
J
JayC

Post by JayC »

And on Windows i connect to Undernet in less than 3 seconds, but on windrop i get server timeouts on all servers , not only Undernet.
P.S. : I'm running Windows Xp , and i have IPv6 support installed
M
Mapherick

Post by Mapherick »

Ok. Are you able to telnet to the same irc server on that machine? Do something like:

Code: Select all

u@box# telnet
> open [server.address] 6667 
for compiler version give the command "gcc --version" (assuming that mandrake packed gcc)

You say you have winXP with IPv6, does the same go for the mandrake box? or is it IPv4?
J
JayC

Post by JayC »

Win Xp is IPv6 enabled, but i connect to IPv4 servers. I've made a test and saw that it does connect, but to localhost. I've installed psyBNC and ran the psyBNC script and it got connected, but on other servers , no.
The Mandrake box is IPv4.
I don't need to telnet because i can access very easy.
I will check later the compiler version, now it is in maintenance.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

When he was talking about telnet, I think he meant:

If eggdrop can't connect to "you.server.here" on port 6667, is telnet able to do so?

Now from somthing you stated in your last post, I am guessing you are running the IRCD on the same server as the eggdrop?
M
Mapherick

Post by Mapherick »

Wow, this ppslim-guy keeps on being right :P
As for telnet, what he said!

The idea behind it is this:
It looks like your eggdrop tries to read from a non-existent or empty/negative socket, returning the EINVAL. Theres two possibilities:
1. a misconfiguration on your mandrake box
2. an incompatibility in the few latest eggdrop versions.

Since almost every linux distro is trying to deliver an 'out-of-the-box' product nowadays, making the products unneccessary complex, it's really hard to simulate your problem on another box so i think thats a waste of time. However, if telnet doesn't fail like eggdrop does it might become interesting to do so. Any best practises?
J
JayC

Post by JayC »

JayC wrote:I've made a test and saw that it does connect, but to localhost. I've installed psyBNC and ran the psyBNC script and it got connected, but on other servers , no.
Well what i´ve ment is that i connected the eggdrop to a psyBNC on localhost, and from there to Undernet, and it worked OK. I´ve also considered what ppslim said, to connect to a local irc server, which i´ve also tried, and again everything worked ok.

Code: Select all

 [jay-c@JayC jay-c]$ gcc --version
2.96
[jay-c@JayC jay-c]$
And THE BOMB is that telnet does connect to the IRC server (not in localhost) both on Mandrake and on Windows.
I´ve also tried another thing: i´ve DNS-ed the hostnames of the Servers to find their IP´s and use them instead of their hostname cos' i heard that it connects faster, but still the same results
Oooo.. and another thing whitch bugged me.
When i start Mandrake i get an error like : could not find JayC.Galati.Astral.Ro (which is my hostname) and told me to fix it in /etc/hosts
I´ve found in it :

Code: Select all

127.0.0.1		localhost.localdomain localhost
And also i´ve found another conf file host.conf :

Code: Select all

order hosts,bind
multi on
hosts.allow:

Code: Select all

#
# hosts.allow	This file describes the names of the hosts which are
#		allowed to use the local INET services, as decided
#		by the '/usr/sbin/tcpd' server.
#
hosts.deny:

Code: Select all

#
# hosts.deny	This file describes the names of the hosts which are
#		*not* allowed to use the local INET services, as decided
#		by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!
Could something here be a problem?
J
JayC

Re: Need more info

Post by JayC »

[quote="Mapherick"]from net.c:

Code: Select all

void neterror(char *s)
{
  switch (errno) {
  case EADDRINUSE:
    strcpy(s, "Address already in use");
    break;
[cut]

Code: Select all

  case EINVAL:
    strcpy(s, "Invalid namespace");
    break;

Where do i find this file: net.c ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Now we are getting to the route of the problem.

net.c is locate in the eggdrop src directory, and contains the code for eggdrop managment of network connections.

The hostname you have above does not exist, or at least does not resolve. As such, this is causing the error about "not found".

Have you setup your name servers correctly in resolve.conf

Have you tried adding the IRC server to the /etc/hosts file
/etc/hosts wrote: 127.0.0.1 localhost.localdomain localhost
125.231.120.144 irc.server.name.here
(replacing the values correctly)

then try eggdrop.

If this works, it sounds like it may be a system configuration issue else where.
Last edited by ppslim on Mon Aug 19, 2002 8:47 am, edited 1 time in total.
J
JayC

Post by JayC »

ppslim wrote:Now we are getting to the route of the problem.

net.c is locate in the eggdrop src directory, and contains the code for eggdrop managment of network connections.

The hostname you have above does not exist, or at least does not resolve. As such, this is causing the error about "not found".

Have you setup your name servers correctly in resolve.conf

Have you tried adding the IRC server to the /etc/hosts file
/etc/hosts wrote: 127.0.0.1 localhost.localdomain localhost
125.231.120.144 irc.server.name.here
(replacing the values correctly)

then try eggdrop.

If this works, it sounds like it may be a system configuration issue else where.
Where is net.c? In eggdrop src directory?
I don't have any src directory in any eggdrop.
As for resolve.conf... I only have it in windrop 1.6.13 cvs.
And i will try as you said about the hosts file.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The resolve.conf file is part of the OS.

.conf files are spoken standard (non official, but used for simplicity and wide conformation)

It should be located in the /etc/ directory.

IE, this is not the eggdrop config file.

Another thing to check, what is the exact server name specified int he bot's config file.

It sounds like the hostname you have set on the linux box, is conflicting with this server name.

Maybe setting a proper value for hostname in root would help. IE login to root and type "hostname localhost". See if that helps.
Locked