Pure-FTPD will not start - Help Please

grunshaw

Registered
May 24, 2006
4
0
151
Hi guys, i'm new to this so any help would be appriciated.

I cant seem to start pure-ftpd. I tried restarting the service in WHM but it doesn't seem to come up. I also tried checking the service status in SSH by typing "service pure-ftpd status" it comes back with stopped. I also tried before that "ftp localhsot" which is permission denied. Does anybody know how to fix this problem or what might be going on?

Regards
James
 

grunshaw

Registered
May 24, 2006
4
0
151
Yeh, I have tried by shell to start and restart but it still says that its offline. I dont know how to check the logs for it.

Thanks
James
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,221
4
193
Minneapolis, MN
Yeh, I have tried by shell to start and restart but it still says that its offline. I dont know how to check the logs for it.
Need detailed information in order to help you. Try /scripts/ftpup --force and see if that helps!
 

grunshaw

Registered
May 24, 2006
4
0
151
Hi
That didn't work. It came back with the following. Any help would be greatly appriciated! I'm tearing my hair out and about to reformat the box!!! lol!

[email protected] [~]# /scripts/ftpup --force
Ftp Setup Script Version 6.0
Fetching version information from http://updates.cpanel.net/ftpinstall/version (RELEASE)....Fetching http://updates.cpanel.net/ftpinstall/version (0)[email protected]%......Done
Done
This is the pure-ftpd 1.0.20 installer release number 17.tls for platform fedora 5
ftp://mirror.newnanutilities.org/pub/fedora/linux/extras/5/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://www.gtlib.gatech.edu/pub/fedora.redhat/linux/extras/5/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
http://ftp.gui.uva.es/sites/fedora.redhat.com/extras/5/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Nothing to do
Resetting pure-ftpd to cPanel Defaults and Installing the Latest Version
Fetching http://diff.cpanel.net/ftpinstall/pure-ftpd/fedora/5/pure-ftpd-1.0.20-17.tls.i386.rpm (0)[email protected]%...3%...5%...7%...9%...11%...13%...15%...17%...19%...21%...23%...25%...27%...29%...31%...33%...35%...37%...38%...40%...42%...44%...46%...48%...50%...52%...54%...56%...58%...60%...62%...64%...66%...68%...70%...72%...74%...75%...77%...79%...81%...83%...85%...87%...89%...91%...93%...95%...97%...99%...100%......Done
Preparing... ########################################### [100%]
1:pure-ftpd ########################################### [100%]
req [options] <infile >outfile
where options are
-inform arg input format - DER or PEM
-outform arg output format - DER or PEM
-in arg input file
-out arg output file
-text text form of request
-pubkey output public key
-noout do not output REQ
-verify verify signature on REQ
-modulus RSA modulus
-nodes don't encrypt the output key
-engine e use engine e, possibly a hardware device
-subject output the request's subject
-passin private key password source
-key file use the private key contained in file
-keyform arg key file format
-keyout arg file to send the key to
-rand file:file:...
load the file (or the files in the directory) into
the random number generator
-newkey rsa:bits generate a new RSA key of 'bits' in size
-newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'
-[digest] Digest to sign with (md5, sha1, md2, mdc2, md4)
-config file request template file.
-subj arg set or modify request subject
-multivalue-rdn enable support for multivalued RDNs
-new new request.
-batch do not ask anything during request generation
-x509 output a x509 structure instead of a cert. req.
-days number of days a certificate generated by -x509 is valid for.
-set_serial serial number to use for a certificate generated by -x509.
-newhdr output "NEW" in the header lines
-asn1-kludge Output the 'request' in a format that is wrong but some CA's
have been reported as requiring
-extensions .. specify certificate extension section (override value in config file)
-reqexts .. specify request extension section (override value in config file)
-utf8 input characters are UTF8 (default ASCII)
-nameopt arg - various certificate name options
-reqopt arg - various request text options

chmod: cannot access `/etc/ssl/private/*.pem': No such file or directory
Waiting for ftpserver to restart..............finished.


ftpserver has failed, please contact the sysadmin.
Waiting for ftpserver to restart..............finished.


ftpserver has failed, please contact the sysadmin.
Install Complete
 
Last edited:

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
You need to manually create the pem file needed for Pure-FTPd.

openssl req -new -x509 -newkey rsa:1024 -days 9999 -nodes -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem

Then chmod 0600 that file.

This is a deficiency in the pure-ftpd RPM we distribute. Any Distro using openssl 0.9.8 will face this.
 

grunshaw

Registered
May 24, 2006
4
0
151
Thank You very very much. It workded! :):) I am very happy, I wont have to reformat afterall (allthough that wouldn't have done any good lol)

Thanks again
James
 

soisix

Member
Nov 3, 2006
8
0
151
worked for me too - seems FC5 and cpanel arent fully compatible at the moment - hopefully it will work fine till cpanel gets an update to make it happier with FC5

Cheers
 

vivek

Well-Known Member
Mar 2, 2004
93
0
156
India
Thank you

Thanx...

Problem resovlved.

Vivek.
 
Last edited:

Shneur

Member
Aug 7, 2003
21
0
151
had the same issue on a new FC5 box, I'm really happy I found this thread with this solution that worked perfectly!
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
A quick update on this, the next version of PureFTPd and ProFTPd we distribute will have the Cert generation working for both openssl 0.9.8 and 0.9.7. ProFTPd 1.3.0 and PureFTPd 1.0.21 are in QA testing now.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
Due to a snafu, the RPMs we recently published for Stable, Current and Release, went out without the proper openssl fix, sorry about that. We are currently testing a new RPM that has the proper fix and a few other fixes (allows use of /etc/ftpusers to disallow logins for example).
 

mark1hos

Active Member
Jun 18, 2003
41
0
156
Somerset, UK
I have tried this fix, but it still does not work.

FTP now restarts, but no accounts can login it just hangs.