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.
Recent comments
11 hours 58 min ago
16 hours 57 min ago
18 hours 23 min ago
19 hours 16 min ago
20 hours 59 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 4 hours ago
1 day 17 hours ago
1 day 19 hours ago