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
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 ->
$ 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
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.]
Re: Getting 'bad port number' and such, all the time
On 11/19/2005, Daniel Callejas Sevilla wrote:
> 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
Sorry, there's nothing obviously wrong that I can see. But if this truly
was working a week ago and you didn't change your Cygwin installation at
all (configuration or otherwise) during that time, I would suggest looking
at things that changed external to Cygwin. For instance, have you performed
any Windows updates? Fiddled with or installed any firewall or anti-virus
FWIW, your 'cygcheck' results show that 'exim' is not running. This is
consistent with your claim that the results you're seeing are causing 'exim'
to fail to start. Perhaps it would also be worthwhile to detail your
installation and configuration steps for 'exim' and the message that you
get when you attempt to start it with 'cygrunsrv'.
Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746