LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 03-08-2007, 03:02 AM   #1
indoorman
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
VSFTP - uploaded files get scrambled


Hi Everyone.

My Debian (Etch) server has vsftpd installed on it and everything seems to be working correctly, except this scrambling problem.
When remote users upload, say an mp3 file, it gets jumpy and incorrectly put together on the server.

I imagine it could be a bad connection or something, maybe bad NICS. I'm trying it on another NIC now.

My remote friend tells me he gets kicked a lot of times, the connection times out etc.

I am was behind a OpenBSD box yesterday but installed pfSense, in case that was the problem, but it wasn't.

Does anyone have an idea how to fix this or how to troubleshoot it?

Here is my vsftp.conf

CODE]listen=YES
xferlog_file=/var/log/vsftpd.log
anonymous_enable=NO
local_enable=YES
write_enable=YES
#anon_upload_enable=NO
#anon_mkdir_write_enable=NO
xferlog_enable=YES
data_connection_timeout=6000
nopriv_user=ftp
chroot_local_user=YES
#ls_recurse_enable=YES
ascii_download_enable=YES
ascii_upload_enable=YES

hide_ids=YES
ssl_enable=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/etc/vsftpd/vsftpd.pem
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
#max_clients=0
#max_per_ip=0
pasv_min_port=65000
pasv_max_port=65030
userlist_enable=YES
userlist_file=/etc/vsftpd/vsftpd.user_list
listen_port=15001

# Debian customization
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
[/CODE]

The time out was the default 300 sec, last time my friend tried,
I don't know if it will help.

I'm also using XFS on the partition with the ftp directory.

I've tried withe to different friends, and it's the same problem with both of them.

Any help would be greatly appreciated, as I've been looking into sftp with chroot etc, but that's a lot of hassle.
I would rather just get this working.

And if this thread does not belong in the networking forum, please move it. I just thought it would be the most appropriate place to post it.

Jon
 
Old 03-10-2007, 10:46 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
This could have any of a large number of possible causes. Your server might be overloaded. You might have problems with hardware. Your friend might have problems with his computer.

The first thing that I would do is check the system logs to see if there are messages that would help determine what is going wrong. Depending on how your system is configured you should look in /var/log/messages and /var/log/syslog at a minimum.

I would install Wire Shark (formerly Ethereal) and watch the packets.

You should run Wire Shark on all of the computers involved, not necessarily at the same time.

If you have a lot of dropped packets + a lot of packets out of order you may have a bad NIC somewhere in the path between your server and your client for example.

You can also try other things like running ping for a long time between the client and the server. See if the traffic is smooth or intermittent.

You can also try enabling other network services on the server and testing their performance. The client could pound away at services like finger or rwho or other things that normally should not be enabled. Again you would be watching packets via Wire Shark looking for dropped packets, corrupt packets, retransmitted packets, out of order packets, and delays.

That's where I would start.
 
Old 03-12-2007, 12:33 PM   #3
indoorman
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Hi.

Thanks for the reply.

I have looked in the logs etc. but there doesn't seem to be any error messages.
I figure it might be easier to try to set up rssh instead of the troubleshooting, so maybe I'll try that first.

But anyway, thanks for the reply.

Jon
 
  


Reply

Tags
ftp, networking, vsftpd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Vsftpd uploaded files Permissions silver05 Linux - Software 2 09-30-2005 09:22 AM
video encoding from uploaded files dtra Linux - Software 5 04-14-2005 02:05 AM
Uploaded Files permissions (proftpd) Wynand1 Linux - Security 1 01-28-2005 04:32 AM
Renaming files as they are uploaded Cr4wford Linux - Software 1 04-26-2004 04:41 PM
Lost permission on uploaded files beatlelane Linux - Security 5 09-11-2003 03:36 AM


All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration