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


Hello,

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 ftp.ya.com
lftp: ftp: no such tcp service

$ ftp ftp.ya.com
ftp: ftp/tcp: unknown service

$ telnet ftp.ya.com 21
Trying 62.151.2.67...
Connected to ftp.ya.com.
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 ->
/cygdrive/c/WINDOWS/SYSTEM32/DRIVERS/ETC/services

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

$ 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.

Dani.

[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:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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