commandmonitor not working for at least one user

Upload core product.
Post Reply
centdir
Posts: 10
Joined: Mon Jul 06, 2009 1:40 pm

commandmonitor not working for at least one user

Post by centdir »

We are having an issue with at least one of our users where the "commandmonitor" returns errors. This user is on a Mac OSX 10.5.8 and has tried uploading with both Safari 5.0.3 and Firefox 3.6.12.

The java console reports the following when the commandmonitor is started (and called every 2 minutes):

Code: Select all

[INFO] CommandMonitor - COMMANDMONITOR started (120000 ms)
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] FTPUploadTransfer - org.apache.commons.net.MalformedServerReplyException: Truncated server reply: 
[INFO] FTPTransfer - Completing from COMMANDMONITOR transfer error: 0
[INFO] CommandMonitor - COMMANDMONITOR completed
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 1
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 2
 
As is expected with large files (small files have no problems), the file does completely upload, but the command port appears to close so the applet never receives the message (eventually, the ftp session is closed after our server's 15 minute time-out period is reached). Other users have been able to upload large files (even beyond the time it took for this client to upload his file) so the commandmonitor appears to work for most users.

Any ideas what would cause this to occur for this particular user? Could it be related to proxy issues (this user appears to connect through a proxy)?

Thanks,
Cid

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: commandmonitor not working for at least one user

Post by support »

For this user, upload has worked? or not? It could be a problem with Proxy or Firewall closing the command channel.

centdir
Posts: 10
Joined: Mon Jul 06, 2009 1:40 pm

Re: commandmonitor not working for at least one user

Post by centdir »

The file completed uploading, but the applet never received the message so it just hung at 100%. Our ftp server timeouts after 15 minutes so when it closed the connection the applet finally showed the transfer done (the java console does show the connection closed exception errors). Here's the full console log, in case it might help, with the urls removed in case of forum spiders/bots:

Code: Select all

[INFO] MApplet - JFileUpload 2.7 Build FINAL.001
Wed Dec 08 09:30:48 EST 2010 JEP creating applet jfileupload.upload.client.JSMApplet (http://www.xxxxxxxxxxxxx.xxx/xxxxx/)
<<< ProxyClassLoader: defined LiveConnectProxy class. >>>
<<< Here're the permissions you've got: >>>
<<< java.security.Permissions@85e403 (
 (java.net.SocketPermission www.xxxxxxxxxxxxx.xxx connect,accept,resolve)
)
 >>>
[INFO] FTPTransfer - Control encoding: ISO-8859-1
[INFO] FTPTransfer - FTP buffer size = 16384
[INFO] JSMApplet - JSAPI 2.7
[INFO] FilePreview - ImagePreview loaded - 140x140 - scaling=subsample
[INFO] FTPTransfer - Connected to ftp://ftp.xxxxxxx.xxx
[INFO] FTPTransfer - 220 Microsoft FTP Service

[INFO] FTPTransfer - PASV enabled
[INFO] FTPUploadTransfer - Upload started : /Users/jsherber/Clients/NB/mailings/2010 holiday card/82281.zip
[INFO] CommandMonitor - COMMANDMONITOR started (120000 ms)
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] FTPUploadTransfer - org.apache.commons.net.MalformedServerReplyException: Truncated server reply: 
[INFO] FTPTransfer - Completing from COMMANDMONITOR transfer error: 0
[INFO] CommandMonitor - COMMANDMONITOR completed
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 1
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 2
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 3
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 4
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 5
[ERROR] FTPTransfer - java.net.SocketTimeoutException: Read timed out
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 6
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received.  Server closed connection.
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 7
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received.  Server closed connection.
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 8
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 9
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 10
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
[INFO] FTPTransfer - Completing from COMMANDMONITOR error: 11
[ERROR] FTPTransfer - org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
[INFO] FTPTransfer - Abort completing for COMMANDMONITOR error: 12
[INFO] FTPUploadTransfer - Upload completed
[INFO] FTPTransfer - Disconnected from ftp://ftp.xxxxxxx.xxx
[INFO] MApplet - JFileUpload 2.7 Build FINAL.001
Wed Dec 08 09:54:50 EST 2010 JEP creating applet jfileupload.upload.client.JSMApplet (http://www.xxxxxxxxxxxxx.xxx/xxxxx/)
[INFO] FTPTransfer - Control encoding: ISO-8859-1
[INFO] FTPTransfer - FTP buffer size = 16384
<<< ProxyClassLoader: defined LiveConnectProxy class. >>>
<<< Here're the permissions you've got: >>>
<<< java.security.Permissions@82169b (
 (java.net.SocketPermission www.xxxxxxxxxxxxx.xxx connect,accept,resolve)
)
 >>>
[INFO] JSMApplet - JSAPI 2.7
I did some further testing (behind our firewall, through local network) and noticed there were read timeout errors for the command monitor as well (I shortened the commandmonitor and timeout jsapp parameters so I could see the command monitor calls). The upload completed as normal since the entire process took only a couple of minutes (so it didn't encounter any timeout issues for the command channel), but I don't recall receiving the read timeout errors before (though I could be mistaken as it's been a while since I looked at the java console for an upload). In any event, here's my console log as well:

Code: Select all

Java Plug-in 1.6.0_22
Using JRE version 1.6.0_22-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\sugiokac
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


[INFO] MApplet - JFileUpload 2.7 Build FINAL.001
[INFO] FTPTransfer - Control encoding: ISO-8859-1
[INFO] FTPTransfer - FTP buffer size = 16384
[INFO] JSMApplet - JSAPI 2.7
[INFO] FilePreview - ImagePreview loaded - 140x140 - scaling=subsample
[INFO] FTPTransfer - Connected to ftp://ftp.xxxxxxx.xxx
[INFO] FTPTransfer - 220 Microsoft FTP Service

[INFO] FTPTransfer - PASV enabled
[INFO] FTPUploadTransfer - Upload started : C:\_LOCAL\PostalOne-Mail.dat stuff\debug.log
[INFO] CommandMonitor - COMMANDMONITOR started (30000 ms)
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[ERROR] CommandMonitor - java.net.SocketTimeoutException: Read timed out
[INFO] FTPUploadTransfer - Upload completed
[INFO] FTPTransfer - Disconnected from ftp://ftp.xxxxxxx.xxx
[INFO] CommandMonitor - COMMANDMONITOR completed
Is the "Read timed out" errors normal behavior? Also note, as far as I know, this particular user is the only one that encounters timeout problems. In fact, yesterday we had a different user upload a file that took 20 minutes and everything processed correctly (though she was uploading from Chrome/8.0.552.215 on a Win 7 PC).

Thanks,
Cid

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: commandmonitor not working for at least one user

Post by support »

It seems your FTP server, does not support periodic NOOP request. Which FTP server are you using?

centdir
Posts: 10
Joined: Mon Jul 06, 2009 1:40 pm

Re: commandmonitor not working for at least one user

Post by centdir »

Sorry for the late reply (and Happy New Year)!...

We are using Microsoft FTP Server on a Win2k3 box. When I manually ftp to our server I am able to send a NOOP command (and do receive "200 NOOP command successful." back). I believe the NOOP command worked in the past as we initially started using the commandmonitor after we first installed JFileUpload and ran into timeout issues with most of our users (I seem to recall the java log without any error messages when we first started using the commandmonitor, but I could be mistaken as that was some time ago).

Thanks,
Cid

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: commandmonitor not working for at least one user

Post by support »

Maybe you could send a testing FTP account to support(at)jfileupload(dot)com?

Post Reply