Strange Issue with document upload through Web server


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Strange Issue with document upload through Web server
# 1  
Old 10-04-2012
Strange Issue with document upload through Web server

Hi ,

I am hosting a website where in users log into their account and upload documents. The website is hosted on a Apache web server(4 nodes) sitting on RHEL VM's and load balanced by radware.

The issue i am facing is that the documents that are uploaded through the web site sometimes show a "0" kb size.This happens so randomly that we are not able to reproduce at will.

The possible causes we suspect are:
1. Virus in our systems.
2. proxy issue at user end.

One more reason i suspect is that the folder path to which these documents get uploaded through http land up in the Linux servers in /attachments folder which is NFS shared across the 4 web server nodes.

Could this possibly be the problem? If so how can i check this.

Thanks
HG
# 2  
Old 10-04-2012
Just a wild shot in the dark: which NFS version do you use?

Historically, NFS (NFS, NFS2, whereas NFS3 optionally) used UDP as the transport protocol, because it was way faster than TCP in limited bandwidth environment (remember Ethernet being 10MBit/s). NFS3 could be configured to use either TCP or UDP and NFS4 uses TCP per default (exclusively? not sure).

The downside of UDP was lacking flow control (it is a connectionless protocol) and it is conceivable that under some adverse constellations a transmission could fail.

You could probably verify that (and several other network-related possible causes) by tracing the network extensively. Set up "tcpdump" with a customized filter to trace the NFS-related transfers from the load-balanced front-ends to the NFS-server behind.

Generally speaking, this sounds like a quite complex problem and you are probably best (even if not fastest) off by using methodical problem-solving skills. Write down all the steps necessary to transfer a file fron the user to where it should finally reside. Then write down any tool/driver/piece-of-software/... involved in getting the file there. For every such piece suppose that it could fail somehow and develop a test specifically designed to find out if it does (like i did with the "tcpdump"). Then falsify one of these "theories" after the other by applying this test. Eventually you should end with the failing piece.

You can probably shortcut the process by chosing suitable parts of the transmission and make sure these work. If you can make sure the error only happens past part X then all parts up to and including part X are working.

I hope this helps.

bakunin
# 3  
Old 10-05-2012
Thanks BugHunter.
We have NFS V3. Let me see if i can manage to setup tcpdump.

Thanks
HG
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Web Development

LDAP Connection Issue on Apache Web Server

Hi.. I have very limited knowledge on LDAP and its configuration and but I have been trying to figure out one issue that takes place when I am running the program that is written in php, but so far its unsuccessful. The server, I am working on is ldap server, which is running on Apache. After... (1 Reply)
Discussion started by: GomathiUoM
1 Replies

2. Shell Programming and Scripting

Strange permission issue on Linux server.

Starting sendmail throws this error: I decided to see the permission on the files under /etc/mail and this is the output: # ls -ltr total 284 -rwxr-xr-x. 1 root root 1847 Jan 27 2014 virtusertable -rwxr-xr-x. 1 root root 127 Jan 27 2014 trusted-users -rwxr-xr-x. 1 root root 92... (3 Replies)
Discussion started by: mohtashims
3 Replies

3. UNIX for Beginners Questions & Answers

LDAP, issue wont upload to Server

Its not allow upload the ldif file to LDAP Server # ldapadd -x -W -D "cn=Admin,dc=linuxoperatingsystem,dc=info" -f /root/base.ldif Enter LDAP Password: ldap _sasl_bind(SIMPLE) : Can't contact LDAP server (-1) (1 Reply)
Discussion started by: zbest1966
1 Replies

4. Shell Programming and Scripting

upload on server

salmo allim warhmat allah wa brakato i face another problem with ftp protocol i have my server when upload with ftp on my server it upload when access from internet with URL can't find any thing that i get from ftp commend that upload in Current directory is /home/user name when... (5 Replies)
Discussion started by: pua06
5 Replies

5. UNIX for Dummies Questions & Answers

How to upload to the unix server?

I am having problems uploading files to my new server. I am new at this so im sure im doing it wrong. I tried using wsftp but that didnt work. please help me!! (4 Replies)
Discussion started by: rdog157h
4 Replies
Login or Register to Ask a Question