Session/Server Hanging

Think you've found a bug? Post a description here.

Moderator: Serin

Post Reply
LesDes
New User
Posts: 4
Joined: Tue Apr 19, 2005 3:42 am

Session/Server Hanging

Post by LesDes » Tue Apr 19, 2005 3:49 am

I have installed the latest beta but still have the problem below.

I frequently find that an FTP session still shows as active when it has long finished or failed.

Trying to end the session does nothing.

It also seems to interfere sometimes with further sessions from the same location.

I used to terminate the Cerberus task and then re-start Cerberus through the user interface.

Now with the beta version I cannot end the task nor stop the service - I have to re-boot.
Les

User avatar
Serin
Site Administrator
Posts: 1785
Joined: Sat Jan 01, 2005 6:57 pm
Location: United States
Contact:

Post by Serin » Tue Apr 19, 2005 4:42 pm

What FTP client are you using to connect to Cerberus?

LesDes
New User
Posts: 4
Joined: Tue Apr 19, 2005 3:42 am

Post by LesDes » Tue Apr 19, 2005 5:29 pm

The FTP client built into Windows [1]. Usually Windows 2000 Server, but the odd W2K Pro and XP Pro

A bit of background. The client machines are using a simple batch file to zip up some files and then FTP them over to my server.

File sizes range from a few MB to over 200 MB sometimes.

Fortunately the hang is not that frequent so I have not been keeping a log to see if there is a pattern. I do not think size is a factor.
===========

[1] I have been experimenting with several backup programs that can send files to an FTP server.

I have had to abandon them because I keep hitting a size problem around 28MB+ Above that size the transfer always hangs. I think the file actually does get transfered but the backup hangs and does not terminate the FTP session. I have found this problem with all the programs I tried and I have tried GuildFTPd with the same result.

If you want to get your teeth into this problem I would be happy to try again.
Les

User avatar
Serin
Site Administrator
Posts: 1785
Joined: Sat Jan 01, 2005 6:57 pm
Location: United States
Contact:

Post by Serin » Mon May 09, 2005 5:15 pm

Thanks,

Will look into the problem.

LesDes
New User
Posts: 4
Joined: Tue Apr 19, 2005 3:42 am

Post by LesDes » Tue May 24, 2005 4:19 am

Happened to - first for quite a while.

I list below the logs from my own batch file and from the server's log.

The tranfer failed for some reason (not the reported "file locked" error as the actual transfer had started - seems like about 65K had been transfered.

The file being uploaded is now (9am) locked on the server machine.

I cannot end the Cerberus service and must re-boot.

Actual data size 107MB and it is regularly transfered each night.
==================================

Log from FTP client - batch file
--------------------------------------------
E:\yyyyyyD\FTP Backup CTRL>ftp -i -n -s:ZipOffsite.txt xxxxgroup.demon.co.uk
Connected to xxxxgroup.demon.co.uk
220-Welcome to Cerberus FTP Server
220 Created by Grant Averett
ftp> Username User
yyyyyy
331 User yyyyyy, password please

230 Password Ok, User logged in
ftp> ftp>
cd /upload
250 Change directory ok
ftp> binary
200 Type Binary
ftp> put c:\temp\AllData.zip
200 Port command received
150 Opening data connection
500 File transfer failed
ftp: 65535 bytes sent in 10.33Seconds 6.34Kbytes/sec.
ftp> close
221 Goodbye
ftp> bye
3: FTP Done: Tue 24/05/2005 1:23:14.03

===========================================

Log from FTP server
-----------------------------

Tue May 24 01:34:01 2005 54 Incoming connection request on interface 10.27.27.3
Tue May 24 01:34:01 2005 54 Connection request accepted from 195.147.111.1
Tue May 24 01:34:02 2005 54 USER yyyyyy
Tue May 24 01:34:02 2005 54 331 User yyyyyy, password please
Tue May 24 01:34:02 2005 54 PASS ***********
Tue May 24 01:34:02 2005 54 230 Password Ok, User logged in
Tue May 24 01:34:02 2005 54 CWD /upload
Tue May 24 01:34:02 2005 54 250 Change directory ok
Tue May 24 01:34:02 2005 54 TYPE I
Tue May 24 01:34:02 2005 54 200 Type Binary
Tue May 24 01:34:02 2005 54 PORT 195,147,111,1,11,180
Tue May 24 01:34:02 2005 54 200 Port command received
Tue May 24 01:34:02 2005 54 STOR AllData.zip
Tue May 24 01:34:02 2005 54 Data connection established
Tue May 24 01:34:02 2005 54 150 Opening data connection
Tue May 24 01:34:02 2005 54 Unable to open file: The process cannot access the file because it is being used by another process.

Tue May 24 01:34:12 2005 54 500 File transfer failed
Tue May 24 01:34:12 2005 54 QUIT
Tue May 24 01:34:12 2005 54 The connection was closed by the remote socket.
Tue May 24 01:34:12 2005 54 Connection terminated.
===============================

The Connection tab shows

Last Command: STOR
Command Status: In Progress
Les

Caradog
New User
Posts: 3
Joined: Wed Oct 12, 2005 9:55 am

Experiencing same problem

Post by Caradog » Tue Dec 13, 2005 10:19 am

Funny, I'm have the same problem as well. Recently started to connect to my server via PASV after opening up enough ports for it. Since then I get infrequent, but still annoying, session hands. The file seems to have completed upload but it never release teh session, just hangs there.

I have seen this in two clients:

1. Xceed ftp component for .net, progamitcally uploading a back up every day, and like the previous poster, sizes range from 20mb to 200mb. Occsionally the session will hang after the file has been uploaded.

2. Just seen it myself using DOpus (Directory Opus 8) file manager. Has worked flawlessly for years, but twice today I have had a large file hang after what should have been a completed upload.

Using latest version of the stable server, on a win2k3 server.

LesDes
New User
Posts: 4
Joined: Tue Apr 19, 2005 3:42 am

Post by LesDes » Tue Dec 13, 2005 1:34 pm

In my case I think I was not using PASV nor a proper client - just a batch file using the FTP command.

Because of the hangs I have since switched first to FileZilla Server and then to Gene6 Pro.
Les

SmartWombat
Posts: 2
Joined: Sun Mar 12, 2006 2:21 pm

Post by SmartWombat » Sun Mar 12, 2006 2:27 pm

Me too.

If a users's session abends, usually because their internet connections bombs; then they are left logged in, connected, and the file transfer is in progress.

Using the Terminate User right-click menu command on either the connection or the transfer doesn't work.

I also see errors coming in but can't get any more informaiton on them.
"Warning: Improperly formatted FTP message received"

Usually happens twice when a Mac user is trying to send files.
But not for PC users <shrug>
PAul

FHoffmann
Posts: 2
Joined: Fri May 19, 2006 2:53 am

Having hangs too

Post by FHoffmann » Fri May 19, 2006 3:33 am

We're also evaluate Cerberus FTP 2.32 running as a service on Windows 2003 Server with SP1.

McAfee's Updater hangs on one of the test clients updating his lokal virus definitions. This is the one who blocks the inputing of updates from internet to intranet. Hint: The underlaying mode of McAfee is PASV mode.

We also have the trouble, that the hanging session cannot be terminate by clicking on the server process GUI option when OPTIMIZED TRANSFER is enabled.

I would consider this as a bug, though it should be fixed (as SERIN said).

Hopefully this will be fixed, otherwise we have to evaluate another FTP server, sorry.

everettwolf
Posts: 1
Joined: Thu Jan 18, 2007 12:15 pm

Any resolution?

Post by everettwolf » Thu Jan 18, 2007 12:30 pm

I see the original post to this question was in 2005. I'm experiencing the identical problem and am wondering if anyone has done anything to address it.

In my case, I'm using sockets in code to connect to FTP, switching to PASV mode and sending the STOR command. If I pull my ethernet cable from the machine running the code, I'll see in the Cerberus log "The connection was closed by the remote socket" but in the Connections tab it shows the connection, the last command as "STOR" and the command status as "In Progress".

In my code, I handle a connection drop and retry over a period of time, but once a connection is re-established, I cannot upload that file because Cerberus has it locked and keeps it locked until it is shutdown.

Manually doing a restart on Cerberus when it's in this state causes it to hang, so either I have to kill its process or reboot the machine to clear its connections. Thanks

User avatar
Serin
Site Administrator
Posts: 1785
Joined: Sat Jan 01, 2005 6:57 pm
Location: United States
Contact:

Post by Serin » Fri Jan 19, 2007 12:47 pm

Hello,

I will be testing the issue this weekend, and if i can duplicate the problem by following your steps I should have a fix ready by next week sometime.

Post Reply