Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-18-2008, 02:21 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 23

Rep: Reputation: 15
Question Pure-FTPd 421 Connection closed by remote host

I'm really baffled by this one...

I'm running openSuSE 11.0 on a 10-year old machine. I recently setup Pure-FTPd, primarily so I could have friends & family members send me large files, without having to use a third-party service.

When I first setup Pure-FTPd, I am using PAM authentication (in addition to UNIX authentication), which was what I thought was the source of the problems I was experiencing. However, the problem even happens with "virtual" users.

I can log onto the server without an issue & obtain directory listings, create folders, and download without any issues.

When I try to upload a file, I get a "Connection closed by remote host".

This is also happening from any PC on my home network, as well as the physical machine itself that is hosting Pure-FTPd (ftp localhost).

When I ftp to localhost, the error message has error code 421, followed by the "Connection closed" message.

If I was not having this issue with localhost, I would say that it was a network configuration issue.

Doing a netstat -tan shows the following for port 21
tcp 0 0* LISTEN

As I mentioned, it is ONLY when uploading... I could understand if I couldn't issue any commands (what is really baffling is the creation of folders/directories works), but it is just on an upload.

I made myself a member of the ftp group, and that is the only group that the virtual users are set for.


Old 07-18-2008, 06:49 PM   #2
LQ Newbie
Registered: Feb 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Looking in the log, I think I found the problem, but don't know how to fix it.

"kernal: pure-ftpd[port]: segfault at [address1] ip [address2] sp [address3] error 6 in pure-ftpd[8048000+22000]"

port: 9931
address1: bf784c80
address2: 0805423d
address2: bf784c80

port: 8710
address1: bf597aa0
address2: 0805423d
address3: bf597aa0

Old 07-18-2008, 07:59 PM   #3
LQ Newbie
Registered: Feb 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Ok, so after some more digging, it turns out that it isn't just me who is having this problem... someone messed up the build that is in the OSS repo.

The link that Ben posted is now out-of-date. Here is the directory of the SUSE_Factory:

I just downloaded & installed using "Install Software" -- note: do NOT install with the "Install with YAST" option, as it'll go out & get the Repo version 9since it is newer).

Uninstall the Repo version before installing this one.


closed, connection, ftp, pureftpd

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
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 12:21 AM
ssh_exchange_identification: Connection closed by remote host sailu_mvn Linux - Networking 5 07-09-2008 09:47 AM
A Strange - 421 Service not available, remote server has closed connection - problem vincelaw Linux - Networking 1 03-14-2007 02:43 PM
Debian Pure-ftpd dpkg report 421 service error icry0000 Linux - Software 0 04-18-2005 05:44 AM
421 Service not available, remote server has closed connection dwarf007 Linux - Networking 1 10-09-2004 07:00 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:46 PM.

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