Discussion:
Bug#870624: proftpd postinst hangs
(too old to reply)
Matus UHLAR - fantomas
2017-08-03 14:20:01 UTC
Permalink
Package: proftpd-basic
Version: 1.3.5b-4

installation of proftpd hangs immediately after starting proftpd proces:

Warning: The home dir /run/proftpd you specified can't be accessed: No such file or directory
Adding system user `proftpd' (UID 110) ...
Adding new user `proftpd' (UID 110) with group `nogroup' ...
Not creating home directory `/run/proftpd'.
Adding system user `ftp' (UID 111) ...
Adding new user `ftp' (UID 111) with group `nogroup' ...
Creating home directory `/srv/ftp' ...
'/usr/share/proftpd/templates/welcome.msg' -> '/srv/ftp/welcome.msg.proftpd-new'
[ ok ] Starting ftp server: proftpd.

... hang here.

processes running:

4 0 14394 12252 20 0 18496 3924 - Ss+ pts/1 0:00 /usr/bin/dpkg --status-fd 33 --configure --pending
0 0 14492 14394 20 0 57656 17472 - S+ pts/1 0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/proftpd-basic.postinst configure
0 0 14497 14492 20 0 0 0 - Z+ pts/1 0:00 [proftpd-basic.p] <defunct>
5 110 14581 1 20 0 124708 3768 core_s Ss ? 0:00 proftpd: (accepting connections)
0 0 14600 12669 20 0 12896 984 - S+ pts/2 0:00 grep -e pts/1 -e proftp

after stopping proftpd installation finishes.

this system runs sysvinit. When tried systemd, proftpd installed correctly.
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I'm not interested in your website anymore.
If you need cookies, bake them yourself.
Matus UHLAR - fantomas
2017-08-03 14:40:02 UTC
Permalink
after another attempt, it seems that proftpd process has FIFO open to
frontend, which prevents the frontend from finishing.
new process numbers here:

root 2182 0.0 0.2 57600 17380 pts/1 S+ 16:13 0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/proftpd-basic.postinst configure
root 2187 0.0 0.0 0 0 pts/1 Z+ 16:13 0:00 [proftpd-basic.p] <defunct>
proftpd 2272 0.0 0.0 124704 3788 ? Ss 16:13 0:00 proftpd: (accepting connections)

# lsof -n -P |grep 16675

frontend 2182 root 8r FIFO 0,10 0t0 16675 pipe
proftpd 2272 proftpd 3w FIFO 0,10 0t0 16675 pipe
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
M$ Win's are shit, do not use it !
Hilmar Preuße
2018-02-19 23:00:03 UTC
Permalink
On 03.08.2017 16:23, Matus UHLAR - fantomas wrote:

Hi all,
Post by Matus UHLAR - fantomas
after another attempt, it seems that proftpd process has FIFO open to
frontend, which prevents the frontend from finishing.
After removing the following line from
/var/lib/dpkg/info/proftpd-basic.postinst the installation works OK.

#. /usr/share/debconf/confmodule

As we don't use debconf any more he removal should not hurt.

@Francesco: do you think this deserves an update for the next Debian
point release? I'd build test packages then.

Hilmar
--
#206401 http://counter.li.org
Matus UHLAR - fantomas
2018-02-20 12:50:01 UTC
Permalink
Post by Hilmar Preuße
Post by Matus UHLAR - fantomas
after another attempt, it seems that proftpd process has FIFO open to
frontend, which prevents the frontend from finishing.
After removing the following line from
/var/lib/dpkg/info/proftpd-basic.postinst the installation works OK.
#. /usr/share/debconf/confmodule
As we don't use debconf any more he removal should not hurt.
Just FYI:

according to the http://bugs.proftpd.org/show_bug.cgi?id=4312
the fix should be fixed and backported to 1.3.6.

there's still a bug: http://bugs.proftpd.org/show_bug.cgi?id=4312#c5

but manual backport of the patch to 1.3.5e helped, I was able to build and
install jessie (1.3.5-1.1+deb8u2), stretch (1.3.5b-4) and sid (1.3.5e-1) packages.
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I just got lost in thought. It was unfamiliar territory.
Michal Mauser
2017-09-29 09:10:02 UTC
Permalink
I can confirm this. We also have this problem only with sysvinit. It
prevents us from automating virtual server deployments.
--
S přátelským pozdravem
za NETIO Solutions s.r.o.
Michal Mauser
Hilmar Preuße
2018-02-20 08:00:05 UTC
Permalink
Am 03.08.2017 um 16:12 teilte Matus UHLAR - fantomas mit:

Hi,
Post by Matus UHLAR - fantomas
installation of proftpd hangs immediately after starting proftpd
I've put test packages on https://freeshell.de/~hille42/proftpd/870624/

Please test them and report back. Thanks!

Hilmar
--
#206401 http://counter.li.org
Hilmar Preuße
2018-02-20 10:10:01 UTC
Permalink
forwarded 870624 http://bugs.proftpd.org/show_bug.cgi?id=4312
stop
Post by Matus UHLAR - fantomas
Package: proftpd-basic
Version: 1.3.5b-4
Bug was already forwarded.

H.
--
#206401 http://counter.li.org
Hilmar Preuße
2018-02-20 12:50:01 UTC
Permalink
Hi,
Post by Hilmar Preuße
After removing the following line from
/var/lib/dpkg/info/proftpd-basic.postinst the installation works OK.
#. /usr/share/debconf/confmodule
As we don't use debconf any more he removal should not hurt.
according to the http://bugs.proftpd.org/show_bug.cgi?id=4312
the fix should be fixed and backported to 1.3.6.
Well, we can put the fix for 4312 into unstable.
there's still a bug: http://bugs.proftpd.org/show_bug.cgi?id=4312#c5
but manual backport of the patch to 1.3.5e helped, I was able to
build and install jessie (1.3.5-1.1+deb8u2), stretch (1.3.5b-4) and
sid (1.3.5e-1) packages.
I'm not sure if we should upload the patch into stable or if we rather
should use my proposed work around. At least for stable that should be
possible, oldstable still has debconf integration so we can't apply it
there.

Hilmar
--
#206401 http://counter.li.org
Matus UHLAR - fantomas
2018-02-20 14:10:02 UTC
Permalink
Post by Hilmar Preuße
Post by Hilmar Preuße
After removing the following line from
/var/lib/dpkg/info/proftpd-basic.postinst the installation works OK.
#. /usr/share/debconf/confmodule
As we don't use debconf any more he removal should not hurt.
according to the http://bugs.proftpd.org/show_bug.cgi?id=4312
the fix should be fixed and backported to 1.3.6.
Well, we can put the fix for 4312 into unstable.
great.
Post by Hilmar Preuße
there's still a bug: http://bugs.proftpd.org/show_bug.cgi?id=4312#c5
but manual backport of the patch to 1.3.5e helped, I was able to
build and install jessie (1.3.5-1.1+deb8u2), stretch (1.3.5b-4) and
sid (1.3.5e-1) packages.
I'm not sure if we should upload the patch into stable or if we
rather should use my proposed work around. At least for stable that
should be possible, oldstable still has debconf integration so we
can't apply it there.
I can confirm your patch works as expected.

since I reported problem with jessie (oldstable atm), I of course wish it to
be fixed there.
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Honk if you love peace and quiet.
n***@nexnode.net
2018-10-21 17:50:01 UTC
Permalink
Hello. As a friendly reminder,

this issue has yet to be addressed in stable. :(

As this has consequences on unattended and scripted installs,
and as a patch seems to be available for many months,
it would be very nice to see a fixed version uploaded. Thanks!
Matus UHLAR - fantomas
2019-11-08 09:30:02 UTC
Permalink
Hello,

This bug just caused unattended-upgrades for two days until I noticed it.

Please, if possible, push fixed version to oldstable so this does not happen
again.
--
Matus UHLAR - fantomas, ***@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
LSD will make your ECS screen display 16.7 million colors
Loading...