This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Getting 'bad port number' and such, all the time


I'm having a generalised problem with my cygwin installation. Any
attempt to resolve a port name into a port number (e.g. 'smtp' -> 25)
always result in the error 'bad port number'. These are some examples:

$ telnet localhost http
http: bad port number

$ telnet localhost 80
(everything o.k., it connects to my apache--not a cygwin port, but a win32 port)

$ tail /var/log/exim/exim_panic.log
2005-11-16 17:43:41 Exim configuration error:
  TCP port "smtp" not found
2005-11-17 16:38:08 Exim configuration error:
  TCP port "smtp" not found

$ lftp
lftp: ftp: no such tcp service

$ ftp
ftp: ftp/tcp: unknown service

$ telnet 21
Connected to
Escape character is '^]'.
220-(welcome message here, etc...)

I have checked the following:

$ ls -l /etc/services
lrwxrwxrwx  1 Dani Ninguno 49 Nov 15 16:34 /etc/services ->

$ ls -l /cygdrive/c/WINDOWS/SYSTEM32/DRIVERS/ETC/services
-rwxrwxrwx  1 Administradores root 7826 Oct 31 03:46

$ cat /etc/services | grep 'ftp\|smtp\|http'
ftp-data           20/tcp                           #FTP, datos
ftp                21/tcp                           #FTP. control
smtp               25/tcp    mail                   #Protocolo simple
de transferencia de correo (SMTP)
tftp               69/udp                           #Transferencia de
archivos trivial
http               80/tcp    www www-http           #World Wide Web
https             443/tcp    MCom
https             443/udp    MCom

This keeps my Exim from starting, my scripts using lftp from working
and my head constantly spinning at a high speed :(.

This has happened for one week now, but as far as I remember, there
were no changes to my installation one week ago. Everything was
working fine before.

I attach the mandatory cygcheck.out and my /etc/services and some
lines from my Exim logs.

Any help will be appreciated.


[I'm new to this mailing list, so please excuse me if I didn't use the
proper methods for reporting my problem.]

Attachment: cygcheck.out
Description: Binary data

Attachment: services
Description: Binary data

Attachment: exim_panic.log
Description: Binary data

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]