Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th December 2006, 01:06
marsvin marsvin is offline
Junior Member
 
Join Date: Dec 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default PureFTPd and MySQL: error exit status 252

Hi All,

I'm having some trouble getting pureftpd to run as advertised in Virtual Hosting With PureFTPd And MySQL

I installed pure and mysql with aptitude but when I try to run it it exits with error 252:

Code:
Starting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -j -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -A -E -B
invoke-rc.d: initscript pure-ftpd-mysql, action "start" failed.
dpkg: error processing pure-ftpd-mysql (--configure):
 subprocess post-installation script returned error exit status 252
I found another post by someone with the same problem (post) and checked all the settings mentioned there, everything seems fine. The MySQL user is present and I'm able to log in and alter the db under its credentials. MySQL is running and the socket file is present (I tried connecting through tcp as well, same result.)

MySQL logs don't show anything at all outside my own creation of the test-user and the pureftpd log doesn't even seem to have been generated yet.

Oh it may be important to note, during the aptitude install process I was asked one question not mentioned in the howto, do I want to chroot all users? I answered yes. If I remove the package and reinstall it now, the question doesn't come up any more so I'm not sure how to undo that if it is the problem.

Any more thoughts anyone?
Reply With Quote
Sponsored Links
  #2  
Old 26th December 2006, 17:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Does this error come up during installtion, or when you try to start Pureftpd? Are you logged in as root?

Quote:
Originally Posted by marsvin
Oh it may be important to note, during the aptitude install process I was asked one question not mentioned in the howto, do I want to chroot all users? I answered yes. If I remove the package and reinstall it now, the question doesn't come up any more so I'm not sure how to undo that if it is the problem.
I don't know if this is a problem, you you can run
Code:
dpkg-reconfigure pure-ftpd-mysql
to change it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 26th December 2006, 18:15
marsvin marsvin is offline
Junior Member
 
Join Date: Dec 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did install everything as root and just tried the reconfigure thing (useful to know ) but it returns an error too.

Code:
root:/# dpkg-reconfigure pure-ftpd-mysql
/usr/sbin/dpkg-reconfigure: pure-ftpd-mysql is broken or not fully installed
That error 252 only showed for the first time when I installed the packages (before anything was configured) but it persists now that I have set up the mysql user pureftpd user and database and so on.

Starting the server from the command line just gives me a general error message:
Code:
root:/# invoke-rc.d pure-ftpd-mysql start
Starting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -j -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -A -E -B
invoke-rc.d: initscript pure-ftpd-mysql, action "start" failed.
But reinstalling gives me the full thing:
Code:
root:/# aptitude install pure-ftpd-mysql
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following NEW packages will be automatically installed:
  pure-ftpd-common
The following NEW packages will be installed:
  pure-ftpd-common pure-ftpd-mysql
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/345kB of archives. After unpacking 922kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Preconfiguring packages ...
Selecting previously deselected package pure-ftpd-common.
(Reading database ... 29797 files and directories currently installed.)
Unpacking pure-ftpd-common (from .../pure-ftpd-common_1.0.21-5_all.deb) ...
Selecting previously deselected package pure-ftpd-mysql.
Unpacking pure-ftpd-mysql (from .../pure-ftpd-mysql_1.0.21-5_amd64.deb) ...
Setting up pure-ftpd-common (1.0.21-5) ...

Setting up pure-ftpd-mysql (1.0.21-5) ...
Starting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -j -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -A -E -B
invoke-rc.d: initscript pure-ftpd-mysql, action "start" failed.
dpkg: error processing pure-ftpd-mysql (--configure):
 subprocess post-installation script returned error exit status 252
Errors were encountered while processing:
 pure-ftpd-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up pure-ftpd-mysql (1.0.21-5) ...
Starting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -j -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -A -E -B
invoke-rc.d: initscript pure-ftpd-mysql, action "start" failed.
dpkg: error processing pure-ftpd-mysql (--configure):
 subprocess post-installation script returned error exit status 252
Errors were encountered while processing:
 pure-ftpd-mysql
I wish it'd show a better error message or some log to check out because I've no idea where to start looking.

I just triple-checked, the user, password and socket in /etc/pure-ftpd/db/mysql.conf are set right. I even ran some of the select lines in the config to see if they work properly, everything seems to be fine.

I did the exact same installation on another machine and it's working fine too. I'm starting to think I may be missing some dependencies? But apt should warn me about those.


edit: By the way, I should say I'm running this on Etch rather than Sarge. Don't think it should make that much difference but it may be worth mentioning.

Last edited by marsvin; 26th December 2006 at 20:22.
Reply With Quote
  #4  
Old 27th December 2006, 16:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by marsvin
I did install everything as root and just tried the reconfigure thing (useful to know ) but it returns an error too.

Code:
root:/# dpkg-reconfigure pure-ftpd-mysql
/usr/sbin/dpkg-reconfigure: pure-ftpd-mysql is broken or not fully installed
That's a major problem... Maybe you should start over with a clean system...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 27th December 2006, 18:13
marsvin marsvin is offline
Junior Member
 
Join Date: Dec 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Mmm that's what I was afraid of. Fortunately it's a virtualized server, that makes it a little easier but isn't there any way to remove all cached information about a package and try again from the start?

It seems a little drastic to have to do a full reinstall just because one package didn't configure properly.
Reply With Quote
  #6  
Old 28th December 2006, 00:03
marsvin marsvin is offline
Junior Member
 
Join Date: Dec 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well I just set up a fresh os template in my vps and got the exact same result. It seems there's something wrong with my base installation or at least something missing that pure needs.. I'll see if I can find some knowledgeable pure-ftpd peeps and report back if I find out what the cause is.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Hosting With PureFTPd And MySQL troubles Mave HOWTO-Related Questions 2 25th November 2006 03:08
Fedora 5 pureftpd mysql authentication error unclecameron HOWTO-Related Questions 8 19th September 2006 15:25
PureFTPD and Mysql Questions chrchcol Server Operation 1 3rd September 2006 23:07
Pureftpd exit 252 Tortanick Server Operation 7 4th June 2006 10:52


All times are GMT +2. The time now is 18:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.