 |
 |
Domain Technologie Control Forum Take the control of your domain name
|
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
Maurizio1230
Joined: 12 Oct 2007 Posts: 26
 |
Posted: Sat Oct 13, 2007 4:51 pm Post subject: pure ftp error |
 |
|
I got this error when I try to configure dtc:
| Quote: |
fx3432:~# apt-get install dtc
Reading Package Lists... Done
Building Dependency Tree... Done
dtc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 274 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up pure-ftpd-mysql (1.0.21- ...
Starting ftp server: Running: /usr/sbin/pure-ftpd-mysql -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -u 1000 -E -O clf:/var/log/pure-ftpd/transfer.log -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
dpkg: dependency problems prevent configuration of dtc:
dtc depends on pure-ftpd-mysql | proftpd-mysql; however:
Package pure-ftpd-mysql is not configured yet.
Package proftpd-mysql is not installed.
dpkg: error processing dtc (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pure-ftpd-mysql
dtc
E: Sub-process /usr/bin/dpkg returned an error code (1)
fx3432:~# |
What can I do?
Thanks |
|
| |
|
|
|
 |
 |
 |
 |
 |
gplhost Site Admin

Joined: 16 Feb 2005 Posts: 2199 Location: Tampa, florida and Singapore, Malaisia  |
Posted: Sun Oct 14, 2007 3:15 am Post subject: |
 |
|
Read the other posts, it was written there already.
You should have check if you have the "default linux capabilities" kernel module under "security -> enable different security models" in the kernel (the module name is capability.ko). This is a problem that has been sent to the maintainer of the pure-ftpd package, but he doesn't seem to care much about it.
Thomas _________________ GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description. |
|
| |
|
|
|
 |
 |
 |
 |
 |
Maurizio1230
Joined: 12 Oct 2007 Posts: 26
 |
Posted: Sun Oct 14, 2007 9:48 am Post subject: |
 |
|
It's the same for proftp-mysql?
How can I enable/configure/install this capability.ko module?
Bye and thanks
Edit: With Proftp I don't see this bug |
|
| |
|
|
|
 |
 |
 |
 |
 |
RichWater
Joined: 09 Nov 2007 Posts: 5
 |
Posted: Mon Nov 12, 2007 9:04 pm Post subject: |
 |
|
I have the same problem.
Trying the command "modprobe capability", but I get the message:
FATAL: Could not load /lib/modules/2.6.18-8.1.14.el5.028stab045.1/modules.dep: No such file or directory
This Debian 4 install is from an ostemplate, I did not compile the kernel myself.
How can I install this module?
Thanks in advance |
|
| |
|
|
|
 |
 |
 |
 |
 |
gplhost Site Admin

Joined: 16 Feb 2005 Posts: 2199 Location: Tampa, florida and Singapore, Malaisia  |
Posted: Tue Nov 13, 2007 9:04 am Post subject: |
 |
|
Just recompile the kernel then, or remove the capability option from the pure-ftpd package (which shouldn't be very hard, it's only an option in the ./configure)!
Thomas _________________ GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description. |
|
| |
|
|
|
 |
 |
 |
 |
 |
RichWater
Joined: 09 Nov 2007 Posts: 5
 |
Posted: Tue Nov 13, 2007 10:17 am Post subject: |
 |
|
Would be so kind to explain a bit more detailed?
Honestly I'm a beginner on Linux.
What commands I have to run?
My current task is to compare DTC is to Lxadmin. Lxadmin is already installed on the test machine from the hostinabox template, but I would like to see DTC too, because I hope it is better.
Thanks,
Laszlo |
|
| |
|
|
|
 |
 |
 |
 |
 |
gplhost Site Admin

Joined: 16 Feb 2005 Posts: 2199 Location: Tampa, florida and Singapore, Malaisia  |
Posted: Tue Nov 13, 2007 11:12 am Post subject: |
 |
|
Do this:
| Code: |
apt-get install build-essential devscripts debhelper libpam-dev libcap-dev libldap2-dev libmysqlclient15-dev libpq-dev postgresql-dev libssl-dev openssl fakeroot
mkdir tmp
cd tmp
apt-get source pure-ftpd
cd pure-ftpd-1.0.21/debian |
Then edit the "rules" file, add --without-capabilities at the end of line 12. Then do this:
| Code: |
cd ..
dpkg-buildpackage -rfakeroot
cd ..
ls |
Then as you can see, this produced the pure-ftpd package (with the capability option changed). Simply reinstall the packages with dpkg -i:
| Code: |
| dpkg -i pure-ftpd-common_1.0.21-8_all.deb pure-ftpd-mysql_1.0.21-8_amd64.deb |
then it should be fine!
What's cool is that you just have lean how to get the sources of a package in Debian, modify it, recompile it and install the produced package.
Note that this capability problem is a known bug filled in the Debian BTS (Bug Tracking System), but the package maintainer doesn't seem very active.
Thomas _________________ GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description. |
|
| |
|
|
|
 |
 |
 |
 |
 |
Lordandmaker
Joined: 25 Mar 2008 Posts: 1 Location: London  |
Posted: Tue Mar 25, 2008 11:49 pm Post subject: |
 |
|
I've just had the same problem, and thought I'd post a follow-up to it. Emailed Thomas, got an incredibly useful reply. Very, very happy!
I can't find a page for donations. Is there one?
Copied and appended from my ~/.bash_history: Not meaning to belittle anything earlier, but more goes can't hurt
This is on Debian 4 (etch) x86_64.
Make a directory for the work, and cd into it:
| Code: |
mkdir pureftp
cd pureftp
|
Get the source for the package (downloaded to current directory) then cd into its directory, then the debian directory
| Code: |
apt-get source pure-ftpd
cd pure-ftpd-1.0.21/
cd debian
|
Edit the `rules` file, and add `--without-capabilites` to the end of the line full of other --xxxxxxx-xxx (replace `vim` with your favourite text editor)
Build the dependencies:
| Code: |
apt-get build-dep pure-ftpd
|
wait
wait some more
build the ftp server
| Code: |
dpkg-buildpackage pure-ftpd
|
*wait*
*ditto*
cd back to the directory you first got the source into, and install the appropriae deb file
| Code: |
cd ..
cd ..
dpkg -i pure-ftpd-mysql_1.0.21-8_amd64.deb
|
Should I put this in the wiki? |
|
| |
|
|
|
 |
 |
 |
 |
 |
gplhost Site Admin

Joined: 16 Feb 2005 Posts: 2199 Location: Tampa, florida and Singapore, Malaisia  |
Posted: Wed Mar 26, 2008 3:38 pm Post subject: |
 |
|
Yes please, put this in the wiki, as a separate page, with a link to it in the main one (as it's a specific issue).
Thomas _________________ GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description. |
|
| |
|
|
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
 |