Bug 202746
Summary: | file upload fails if destination is nfs volume | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Vilius Šumskas <vilius> |
Component: | vsftpd | Assignee: | Martin Nagy <mnagy> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 4.4 | CC: | djuran, hripps, mbarabas, mnagy, nalin |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | vsftpd-2.0.1-5.EL4.5 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-02-04 08:23:32 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Vilius Šumskas
2006-08-16 09:02:52 UTC
*** Bug 202747 has been marked as a duplicate of this bug. *** I had the exact same problem after installing the latest RHEL4 update set and rebooting. The vsftpd processes would attempt to obtain a lock and then would be forever stuck in disk sleep waiting on rpc_ex. It appears that rpc.statd is not able to start via the init scripts. I needed to manually execute /sbin/rpc.statd after booting to resolve the problem. I can confirm this bug as fixed in RHEL5. There was a change between vsftpd-2.0.1-5.EL4.3 and vsftpd-2.0.1-5.EL4.5 in the way files were handled for uploads. This involved including locking code for both reads and writes and means the daemon will attempt to obtain locks on any file it reads on a GET/PUT operation. If the file is NFS mounted then the NFS locking systems also need to work. There is a workaround if you are not worried about simultaneous uploads to the same file. Simply add lock_upload_files=NO to the /etc/vsftpd/vsftpd.conf file and restart the daemon. Are other applications which attempt to use file locking on the NFS volume also getting stuck attempting to obtain a lock? If so, then I think this would point to a problem in nfs-utils rather than in vsftpd itself. I don't have RHEL4 anymore, but as far as I remember it worked with simple MC copy file command to NFS volume. Also as I pointed out, this doesn't happen in RHEL5. I can reproduce this issue on RHEL-4.6 after I kill rpc.statd, otherwise it works okay, so it appears there was some bug in RHEL-4.4 in nfs-utils but is already resolved in RHEL-4.6. Thus closing as CURRENTRELEASE. |