Groups | Blog | Home
all groups > iis ftp > april 2005 >

iis ftp : FYI: if FTP on IIS6 W2k3 SP1 hangs when logging in you might like to read this...


Paul V
4/7/2005 12:00:00 AM
I just thought I'd post this as it is a strange problem and I managed to
solve it but I was wondering if anyone else could test and/or recreate this
problem.

Essentially, up until we installed SP1 on our servers, we had a multi-line
welcome message including a simple legal notice etc. After installing SP1,
no-one could login to our FTP service and all the clients hung after
receiving the first line of the FTP welcome message.

After two or three restarts of the service, I thought that I'd just change
the message to see if it really was anything to do with the problem so I
copied the original into notepad and replaced it with the word Welcome.

Lo and behold, everything worked. I was amazed that it was the welcome
message so I put my original multi-line message back in again to see what
would happen and everything stopped working again.

My next thing was to look at the message and see if there was anything
special about it.... Nothing really.... it just read.

Welcome to ***********
Any unauthorized access will be prosecuted under English law.


As a stab in the dark, I changed the message to ....

Welcome to ***********. Any unauthorized access will be prosecuted under
English law.

..... thereby removing the carriage return and now, after re-testing several
times the FTP service logins work fine.


Bernard
4/11/2005 12:00:00 AM
Mmm.... unbelievable :)
My ftp works fine after SP1, though I don't have any welcome msg :).

--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/


[quoted text, click to view]

Paul V
4/11/2005 12:00:00 AM
[quoted text, click to view]

Based totally on empiracle evidence :) It was hanging, now it's not... The
only difference, the multi-line welcome message....

Paul

Alun Jones [MSFT]
4/12/2005 11:32:55 AM
[quoted text, click to view]

Was the FTP server hanging, or the FTP client?

In other words, if someone connected in to your FTP server, and was stalled,
could someone else try and make a connection and also see the message (and
get stalled)?

There are some FTP clients that assume that the entire welcome message will
be written in the first IP packet received.

Alun.
~~~~
--
Software Design Engineer, Internet Information Server (FTP)
This posting is provided "AS IS" with no warranties, and confers no rights.

Paul V
4/16/2005 12:00:00 AM
[quoted text, click to view]

I tried this with a few FTP clients (Bullet Proof, SmartFTP, LeechFTP) and
they all hung at the same point. I even tried good old DOS ftp and that got
stuck at the same place...

At the time, it appeared to be the server hanging on each connection as the
clients could all connect but they all stopped at the same point after the
first line of the message.....

I haven't seen the problem since but I haven't gone back to a multi-line
welcome message seeing as this is a production server, I don't intend on
experimenting either :).

Paul

Bernard
4/18/2005 12:00:00 AM
Ok. I rebuild one of my virtual pc. tested it before and after sp1, I can't
repro you error.
this is my output -

C:\>ftp localhost
Connected to netsvr.
220-Microsoft FTP Service
my banner
220 my banner line 2
User (netsvr:(none)): ftp
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230-welcome 1
welcome 2
230 Anonymous user logged in.
ftp>


--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button