Control Web Panel

WebPanel => FTP => Topic started by: kushan on October 02, 2014, 10:50:05 AM

Title: FTP Login
Post by: kushan on October 02, 2014, 10:50:05 AM
Hi,

FTP server is indicating as suspended on Services Status on the server.
cannot start/restart the FTP server. When i tried to login  through FTP client(fileZilla) i got this error message "421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb".

(http://roomsbook.net/FTP.jpg)


Please let me know any suggestions regarding this matter.

Regards,
Kushan
Title: Re: FTP Login
Post by: donTomppa on October 02, 2014, 02:30:00 PM
Have the exact same problem!
Title: Re: FTP Login
Post by: donTomppa on October 02, 2014, 02:33:43 PM
In my server setup the pureftpd.conf refers to file pureftpd.pdb at "/etc/pure-ftpd/pureftpd.pdb"
That file doesn't however exist...
I don't know if it should exist, as the pure-ftp should use the user account details as ftp username/password (like given when creating the user in the webpanel). Or at least it should be created and updated automatically...
Title: Re: FTP Login
Post by: Administrator on October 02, 2014, 02:53:00 PM
all our test servers works fine with new ftp + virtal ftp users, you should contact support to check that.
http://centos-webpanel.com/contact
Title: Re: FTP Login
Post by: donTomppa on October 02, 2014, 03:43:48 PM
Hmm... was there anykind of update? To Webpanel, PureFTP or something else? Anything you'd know of?
Earlier this week it all worked just fine... Did during the last two days nothing but added one new user and deleted one old test user...

Stopping/restarting pure-ftp from console gives an error too:
[root@v01 ~]# pure-ftpd restart
Unable to start a standalone server: Address already in use
[root@v01 ~]# pure-ftpd stop
Unable to start a standalone server: Address already in use

Like there'd be something already running.
Anyway. After that I went ahead and killed the running PureFTP process.

After this, the Dashboard still shows "suspended" for FTP. After killing the proces I'd assume it being stopped...
Any comment on this?

---
Another approach:

The xinetd refers to Pureftp in the config files too. Could there be something?
The "pure-ftpd" include file for xinetd.d says however that it's disabled:"
# default: off
# description: pure-ftpd server, xinetd version.
# Don't run the standalone version if you run
# this and remember do set "Daemonize" to "no"
# in /etc/pure-ftpd/pure-ftpd.conf
service ftp
{
        disable = yes
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/pure-config.pl
        server_args             = /etc/pure-ftpd/pure-ftpd.conf
        log_on_success          += DURATION USERID
        log_on_failure          += USERID
        nice                    = 10
}
"



Title: Re: FTP Login
Post by: donTomppa on October 03, 2014, 05:47:13 PM
Anything new on this?
Of course there's the workaround that you just allow ssh/sftp for the new account... not quite optimal and wouldn't use it for client projects, but for my own stuff it works ;)
Title: Re: FTP Login
Post by: donTomppa on October 03, 2014, 05:48:19 PM
Hmm... something is updated. Webpanel dashboard looks a bit different now... and FTP is up and running.
Admins? Comments on this?
Title: Re: FTP Login
Post by: PsyberTech on October 03, 2014, 06:26:31 PM
Same problem here on one of my accounts. 

Response:   421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb

Root FTP and other accounts work fine, but this one...

Status:   Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:   220-You are user number 1 of 50 allowed.
Response:   220-Local time is now 20:24. Server port: 21.
Response:   220-IPv6 connections are also welcome on this server.
Response:   220 You will be disconnected after 15 minutes of inactivity.
Command:   USER standout
Response:   331 User standout OK. Password required
Command:   PASS ********
Response:   421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb
Title: Re: FTP Login
Post by: Administrator on October 03, 2014, 09:48:21 PM
CWP 0.9.5 is now using pure-ftpd as default FTP server
you can contact support so we can check this issue on your server

http://centos-webpanel.com/contact
Title: Re: FTP Login
Post by: PsyberTech on October 07, 2014, 06:29:17 PM
Just so you know... 
Same problem here.  Brand new server, fresh install on CentOS 6.5 

Root can connect just fine with SFTP, but new accounts always get:

Response:   421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb
Error:   Could not connect to server
Status:   Waiting to retry...

Has the staff responded to anyone about this yet?  I just built 4 new servers and I have the same error on all 4.
Title: Re: FTP Login
Post by: PsyberTech on October 07, 2014, 06:43:22 PM
The Admins have not responded to my initial support requests from last week, so I went tinkering.  Please know that I am NOT any type of Linux Guru.

How I fixed all my servers from: Response:   421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb

SSH into your server.  (Putty.exe)

Enter: yum remove pure-***d
Answer "y" to remove the program

Enter: yum install pure-***d
Answer "y" to install the program

In your CWP panel, restart the FTP server.

Problem solved.  CWP has a bug in the install setup scripts or something.

Title: Re: FTP Login
Post by: Administrator on October 08, 2014, 01:06:33 AM
do not use yum remove because you will break all virtal ftp users!!!
if you have issue you will need to contact support so we can check that more detailed on the server!
Title: Re: FTP Login
Post by: Dexxa on October 12, 2014, 01:17:18 PM
I've found a easy work around

As the main account ftp comes up with this error, To get a working account  Login to your customers panel. Click on FTP Accounts then create another account so the user will be user@yourdomain.com and login to ftp with that account and it logs in
Title: Re: FTP Login
Post by: Administrator on October 14, 2014, 05:36:19 PM
fix for this is released and it will be fixed/updated on all servers in next 24 hours.
Title: Re: FTP Login
Post by: erm3nda on October 15, 2014, 02:57:19 AM
I've found a easy work around

As the main account ftp comes up with this error, To get a working account  Login to your customers panel. Click on FTP Accounts then create another account so the user will be user@yourdomain.com and login to ftp with that account and it logs in

I got same error and that was my solution too, login to user and create a new account.
Title: Re: FTP Login
Post by: fuzoos on November 01, 2014, 10:10:25 PM
I just installed a fresh copy on a new server.  Setup a bunch of accounts in the Admin - unless the user is created with shell access it won't connect to via FTP or SFTP.

ERROR
421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb

I only run this control panel on my local testing machine.  So, giving shell access to the accounts I create isn't a problem.

It would be great to have the ability to setup FTP accounts in the admin panel.
Title: Re: FTP Login
Post by: Administrator on November 02, 2014, 03:50:11 AM
SFTP requires shell access
FTP requires user account created or within users panel you can create a Virtual FTP user accounts.
Title: Re: FTP Login
Post by: fla-br on November 04, 2014, 03:13:26 PM
is there a clear answer to solve this problem
give shell access solves nothing
I do not know where I can create an ftp account in CWP
thanks
Francois
Title: Re: FTP Login
Post by: Administrator on November 04, 2014, 06:50:41 PM
Quote
SFTP requires shell access
FTP requires user account created or within users panel you can create a Virtual FTP user accounts.
you have all informations in the previous answer

If you need FTP then all you need is to create a new account, if you need additional accounts then from the users panel you can create additional accounts!
Title: Re: FTP Login
Post by: fla-br on November 04, 2014, 08:01:13 PM
This post has been viewed more than 400 times, so I'm not the only one to have lost  time on a problem that should not exist.
To solve, create an FTP account on the user, but another pb come, you can not create a folder at the same level as public_html, practical in many cases...
The solution back to the first reflex, connect FTP directly to the user account and then, like a miracle the connection is established without pb. After, you can then connect to any user without the need to create additional FTP account.

I thank the developers for this interface, but do not try to compete with Cpanel or Plesk which I think are a little too heavy to manage sites. Facilitate security, implementation and daily functioning as backups and more jobs is a general need.

Thanks
Francois
Title: Re: FTP Login
Post by: Administrator on November 05, 2014, 12:39:47 AM
issue with ftp was fixed in the previous versions, its related with the virtual users database and if you are experiencing this issue, adding one virtual user will fix it again.

Title: Re: FTP Login
Post by: apmuthu on November 09, 2014, 09:40:06 PM
The only difference in /etc/pure-ftpd/pure-ftpd.conf between yum remove / yum install and the original install is that the line in the latter:
Code: [Select]
PureDB /etc/pure-ftpd/pureftpd.pdbis commented out in the former:
Code: [Select]
PureDB /etc/pure-ftpd/pureftpd.pdb.

The actual line in the original web installer that did it is:
Code: [Select]
sed -i 's|.*pureftpd.pdb.*|PureDB /etc/pure-ftpd/pureftpd.pdb|g' /etc/pure-ftpd/pure-ftpd.conf
But this can remain so and the creation of one FTP user in a domain will set right the password table. There appears to be no separate MySQL database associated with the PureFTPd. Possibly it will use the regular user table in the root_cwp db itself or from a file containing virtual users.

The two files pureftpd.passwd and pureftpd.pdb get created in the /etc/pure-ftpd folder in the correct format now.

root user by default cannot FTP but can SFTP.
Title: Re: FTP Login
Post by: Gogo on March 06, 2015, 11:45:17 PM
Same error:  421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb

On all created user accounts.

EDIT:  I restarted the FTP server and is now working properly. For every new account i'm restart ftp server and its work.  o.O
Title: Re: FTP Login
Post by: pixelpadre on July 05, 2015, 02:36:13 PM
Filezilla question.

When you create a new user for example newuser@myhost.com, how do you set up filezilla?

Hostname=
user =

thanks
Title: Re: FTP Login
Post by: Administrator on July 05, 2015, 09:20:21 PM
tip, visit this url
http://wiki.centos-webpanel.com/ftp-connection-failed
Title: Re: FTP Login
Post by: pixelpadre on July 06, 2015, 09:37:53 AM
I would like to use filezilla to upload files not file manager.

Thanks.