Debian Bug report logs -
#816503
invoke-rc.d: action reopen-logs is unknown, but proceeding anyway.
Reported by: Florent B <florent@coppint.com>
Date: Wed, 2 Mar 2016 11:54:02 UTC
Severity: normal
Fixed in version 5.5.10+dfsg-1
Done: Ondřej Surý <ondrej@sury.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#816503; Package sysv-rc.
(Wed, 02 Mar 2016 11:54:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Florent B <florent@coppint.com>:
New Bug report received and forwarded. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>.
(Wed, 02 Mar 2016 11:54:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: sysv-rc
Version: 2.88dsf-41+deb7u1
Severity: normal
Dear Maintainer,
I have a problem on Wheezy servers using logrotate & php5-fpm packages.
I think the problem is in /usr/sbin/invoke-rc.d file, that's why I report it for sysv-rc package.
When we use a custom /usr/sbin/policy-rc.d script like this one:
#!/bin/sh
if [ "$1" = "service-to-not-restart-automatically" ]
then
exit 101
else
exit 0
fi
PHP5-FPM logrotate action is reporting an error :
invoke-rc.d: action reopen-logs is unknown, but proceeding anyway.
I think this code in /usr/sbin/invoke-rc.d is causing this :
## sanity checks and just-in-case warnings.
case ${ACTION} in
start|stop|force-stop|restart|reload|force-reload|status)
;;
*)
if test "x${POLICYHELPER}" != x && test -x "${POLICYHELPER}" ; then
printerror action ${ACTION} is unknown, but proceeding anyway.
fi
;;
esac
Why printing an error if policy helper script is executable ? I don't understand the logic.
Action "reopen-logs" is handled by php5-fpm init script.
Versions of packages :
$ apt-cache policy php5-fpm logrotate
php5-fpm:
Installed: 5.4.45-0+deb7u2
Candidate: 5.4.45-0+deb7u2
logrotate:
Installed: 3.8.1-4
Candidate: 3.8.1-4
I hope I gived enough information about this "bug".
Tell me if some information are missing.
Thank you.
Florent
-- System Information:
Debian Release: 7.9
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages sysv-rc depends on:
ii debconf [debconf-2.0] 1.5.49
ii insserv 1.14.0-5
ii sysvinit-utils 2.88dsf-41+deb7u1
Versions of packages sysv-rc recommends:
ii lsb-base 4.1+Debian8+deb7u1
Versions of packages sysv-rc suggests:
pn bum <none>
pn sysv-rc-conf <none>
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#816503; Package sysv-rc.
(Wed, 02 Mar 2016 23:42:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Steve Langasek <vorlon@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>.
(Wed, 02 Mar 2016 23:42:04 GMT) (full text, mbox, link).
Message #10 received at 816503@bugs.debian.org (full text, mbox, reply):
Control: reassign -1 php5-fpm
On Wed, Mar 02, 2016 at 12:45:41PM +0100, Florent B wrote:
> I have a problem on Wheezy servers using logrotate & php5-fpm packages.
> I think the problem is in /usr/sbin/invoke-rc.d file, that's why I report
> it for sysv-rc package.
> When we use a custom /usr/sbin/policy-rc.d script like this one:
> #!/bin/sh
> if [ "$1" = "service-to-not-restart-automatically" ]
> then
> exit 101
> else
> exit 0
> fi
> PHP5-FPM logrotate action is reporting an error :
> invoke-rc.d: action reopen-logs is unknown, but proceeding anyway.
> I think this code in /usr/sbin/invoke-rc.d is causing this :
> ## sanity checks and just-in-case warnings.
> case ${ACTION} in
> start|stop|force-stop|restart|reload|force-reload|status)
> ;;
> *)
> if test "x${POLICYHELPER}" != x && test -x "${POLICYHELPER}" ; then
> printerror action ${ACTION} is unknown, but proceeding anyway.
> fi
> ;;
> esac
> Why printing an error if policy helper script is executable ? I don't
> understand the logic.
Because calling 'invoke-rc.d $foo reopen-logs' is an incorrect use of the
interface. The invoke-rc.d interface is a) for use in dpkg maintainer
scripts (not from arbitrary scripts included in the package), and b) for
standard init script targets (which 'reopen-logs' is not) that policy-rc.d
can conceivably know about.
Reassigning to php5-fpm. However, it appears that this issue has also been
fixed in later versions of the php5-fpm package (/etc/logrotate.d/php5-fpm
now invokes '/usr/lib/php5/php5-fpm-reopenlogs' instead of calling
invoke-rc.d). I'll leave it to the maintainer to close/dupe this bug as
appropriate.
> Action "reopen-logs" is handled by php5-fpm init script.
>
> Versions of packages :
>
> $ apt-cache policy php5-fpm logrotate
> php5-fpm:
> Installed: 5.4.45-0+deb7u2
> Candidate: 5.4.45-0+deb7u2
> logrotate:
> Installed: 3.8.1-4
> Candidate: 3.8.1-4
>
> I hope I gived enough information about this "bug".
>
> Tell me if some information are missing.
>
> Thank you.
>
> Florent
>
> -- System Information:
> Debian Release: 7.9
> APT prefers oldstable-updates
> APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
> Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages sysv-rc depends on:
> ii debconf [debconf-2.0] 1.5.49
> ii insserv 1.14.0-5
> ii sysvinit-utils 2.88dsf-41+deb7u1
>
> Versions of packages sysv-rc recommends:
> ii lsb-base 4.1+Debian8+deb7u1
>
> Versions of packages sysv-rc suggests:
> pn bum <none>
> pn sysv-rc-conf <none>
>
> -- no debconf information
>
> _______________________________________________
> Pkg-sysvinit-devel mailing list
> Pkg-sysvinit-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel
>
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek@ubuntu.com vorlon@debian.org
Bug reassigned from package 'sysv-rc' to 'php5-fpm'.
Request was from Steve Langasek <vorlon@debian.org>
to 816503-submit@bugs.debian.org.
(Wed, 02 Mar 2016 23:42:04 GMT) (full text, mbox, link).
No longer marked as found in versions sysvinit/2.88dsf-41+deb7u1.
Request was from Steve Langasek <vorlon@debian.org>
to 816503-submit@bugs.debian.org.
(Wed, 02 Mar 2016 23:42:05 GMT) (full text, mbox, link).
Reply sent
to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility.
(Thu, 03 Mar 2016 08:57:15 GMT) (full text, mbox, link).
Notification sent
to Florent B <florent@coppint.com>:
Bug acknowledged by developer.
(Thu, 03 Mar 2016 08:57:15 GMT) (full text, mbox, link).
Message #19 received at 816503-done@bugs.debian.org (full text, mbox, reply):
Version: 5.5.10+dfsg-1
This was fixed a long time ago, and I don't think this needs to be fixed
on oldstable that just turned into security LTS.
Cheers,
--
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server
On Thu, Mar 3, 2016, at 00:39, Steve Langasek wrote:
> Control: reassign -1 php5-fpm
>
> On Wed, Mar 02, 2016 at 12:45:41PM +0100, Florent B wrote:
> > I have a problem on Wheezy servers using logrotate & php5-fpm packages.
>
> > I think the problem is in /usr/sbin/invoke-rc.d file, that's why I report
> > it for sysv-rc package.
>
> > When we use a custom /usr/sbin/policy-rc.d script like this one:
>
> > #!/bin/sh
> > if [ "$1" = "service-to-not-restart-automatically" ]
> > then
> > exit 101
> > else
> > exit 0
> > fi
>
> > PHP5-FPM logrotate action is reporting an error :
>
> > invoke-rc.d: action reopen-logs is unknown, but proceeding anyway.
>
> > I think this code in /usr/sbin/invoke-rc.d is causing this :
>
> > ## sanity checks and just-in-case warnings.
> > case ${ACTION} in
> > start|stop|force-stop|restart|reload|force-reload|status)
> > ;;
> > *)
> > if test "x${POLICYHELPER}" != x && test -x "${POLICYHELPER}" ; then
> > printerror action ${ACTION} is unknown, but proceeding anyway.
> > fi
> > ;;
> > esac
>
> > Why printing an error if policy helper script is executable ? I don't
> > understand the logic.
>
> Because calling 'invoke-rc.d $foo reopen-logs' is an incorrect use of the
> interface. The invoke-rc.d interface is a) for use in dpkg maintainer
> scripts (not from arbitrary scripts included in the package), and b) for
> standard init script targets (which 'reopen-logs' is not) that
> policy-rc.d
> can conceivably know about.
>
> Reassigning to php5-fpm. However, it appears that this issue has also
> been
> fixed in later versions of the php5-fpm package
> (/etc/logrotate.d/php5-fpm
> now invokes '/usr/lib/php5/php5-fpm-reopenlogs' instead of calling
> invoke-rc.d). I'll leave it to the maintainer to close/dupe this bug as
> appropriate.
>
> > Action "reopen-logs" is handled by php5-fpm init script.
> >
> > Versions of packages :
> >
> > $ apt-cache policy php5-fpm logrotate
> > php5-fpm:
> > Installed: 5.4.45-0+deb7u2
> > Candidate: 5.4.45-0+deb7u2
> > logrotate:
> > Installed: 3.8.1-4
> > Candidate: 3.8.1-4
> >
> > I hope I gived enough information about this "bug".
> >
> > Tell me if some information are missing.
> >
> > Thank you.
> >
> > Florent
> >
> > -- System Information:
> > Debian Release: 7.9
> > APT prefers oldstable-updates
> > APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
> > Architecture: amd64 (x86_64)
> >
> > Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
> > Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
> > Shell: /bin/sh linked to /bin/dash
> >
> > Versions of packages sysv-rc depends on:
> > ii debconf [debconf-2.0] 1.5.49
> > ii insserv 1.14.0-5
> > ii sysvinit-utils 2.88dsf-41+deb7u1
> >
> > Versions of packages sysv-rc recommends:
> > ii lsb-base 4.1+Debian8+deb7u1
> >
> > Versions of packages sysv-rc suggests:
> > pn bum <none>
> > pn sysv-rc-conf <none>
> >
> > -- no debconf information
> >
> > _______________________________________________
> > Pkg-sysvinit-devel mailing list
> > Pkg-sysvinit-devel@lists.alioth.debian.org
> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel
> >
>
> --
> Steve Langasek Give me a lever long enough and a Free
> OS
> Debian Developer to set it on, and I can move the
> world.
> Ubuntu Developer
> http://www.debian.org/
> slangasek@ubuntu.com
> vorlon@debian.org
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 01 Apr 2016 07:26:08 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 03:31:59 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.