Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a strange issue whereby my customer cannot upload a very small xml file to FTP server (passive mode).
No problem if manual upload a single xml file one bye one. The issue occur whenever our customer upload multiple xml files simultaneously using third party tool. Let say he uploads 30 files but at least 1 file will be failed with error below:
Code:
Thu Aug 25 11:58:07 2016 [pid 21870] [user1] FTP command: Client "x.x.x.x", "PASV"
Thu Aug 25 11:58:07 2016 [pid 21870] [user1] FTP response: Client "x.x.x.x", "227 Entering Passive Mode (x,x,x,x,121,4)"
Thu Aug 25 11:58:07 2016 [pid 21870] [user1] FTP command: Client "x.x.x.x", "STOR ZM02/Inbound/SalesByReceipt/POS_Sales_1794267_20160825-11524141.xml"
Thu Aug 25 11:58:07 2016 [pid 21870] [user1] FTP response: Client "x.x.x.x", "150 Ok to send data."
Thu Aug 25 12:03:07 2016 [pid 21870] [user1] FTP response: Client "x.x.x.x", "421 Data timeout. Reconnect. Sorry."`
user1 put a xml file, FTP response with "150 Ok to send data". 5 mins later FTP terminated the session (data_connection_timeout=300 is set) due to it did not receive any file. This is normal behavior for the data time out.
What is strange here is why User1 cannot upload a small file. 5 mins is more than enough to let a small xml file being transferred.
Note1: We have allowed passive port 30000-31000 in our firewall.
Note2: customer uploads file from internal server. In vsftpd.log x.x.x.x is customer's public IP. They are doing NAT from internal server to public IP.
I have a strange issue whereby my customer cannot upload a very small xml file to FTP server (passive mode).
No problem if manual upload a single xml file one bye one. The issue occur whenever our customer upload multiple xml files simultaneously using third party tool. Let say he uploads 30 files but at least 1 file will be failed with error below:
Code:
Thu Aug 25 11:58:07 2016 [pid 21870] [user1] FTP command: Client "x.x.x.x", "PASV"
Thu Aug 25 11:58:07 2016 [pid 21870] [user1] FTP response: Client "x.x.x.x", "227 Entering Passive Mode (x,x,x,x,121,4)"
Thu Aug 25 11:58:07 2016 [pid 21870] [user1] FTP command: Client "x.x.x.x", "STOR ZM02/Inbound/SalesByReceipt/POS_Sales_1794267_20160825-11524141.xml"
Thu Aug 25 11:58:07 2016 [pid 21870] [user1] FTP response: Client "x.x.x.x", "150 Ok to send data."
Thu Aug 25 12:03:07 2016 [pid 21870] [user1] FTP response: Client "x.x.x.x", "421 Data timeout. Reconnect. Sorry."`
user1 put a xml file, FTP response with "150 Ok to send data". 5 mins later FTP terminated the session (data_connection_timeout=300 is set) due to it did not receive any file. This is normal behavior for the data time out. What is strange here is why User1 cannot upload a small file. 5 mins is more than enough to let a small xml file being transferred. Here is vsftpd.conf:
Note1: We have allowed passive port 30000-31000 in our firewall.
Note2: customer uploads file from internal server. In vsftpd.log x.x.x.x is customer's public IP. They are doing NAT from internal server to public IP.
If FTP is working, I'd focus more on how the customer is sending the file(s), rather than on FTP itself. Are they using a standard FTP client, or a 'drag-n-drop' client like Filezilla? Or something homegrown that they wrote? Can they send smaller files of another data type?
If FTP is working, I'd focus more on how the customer is sending the file(s), rather than on FTP itself. Are they using a standard FTP client, or a 'drag-n-drop' client like Filezilla? Or something homegrown that they wrote? Can they send smaller files of another data type?
It is a coding from visual studio .net system not by FTP client GUI. They can send file if manual transfer one by one. Other people do not have such issue. I just want to make sure that if something needs to be done on FTP server side specifically.
Anyway, I already asked them to check their coding.
It is a coding from visual studio .net system not by FTP client GUI. They can send file if manual transfer one by one. Other people do not have such issue. I just want to make sure that if something needs to be done on FTP server side specifically. Anyway, I already asked them to check their coding.
Well, if it's working for ONE file, and others are not having any issues, it's pretty obvious the FTP server isn't having any issues.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.