Debian Bug report logs -
#654887
php5-common: maxlifetime cronentry sends frequent warnings
Reported by: Rainer Dorsch <rdorsch@web.de>
Date: Fri, 6 Jan 2012 15:27:02 UTC
Severity: normal
Fixed in version php5/5.4.0~rc6-2
Done: Ondřej Surý <ondrej@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#654887; Package php5-common.
(Fri, 06 Jan 2012 15:27:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Rainer Dorsch <rdorsch@web.de>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Fri, 06 Jan 2012 15:27:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php5-common
Version: 5.3.3-7+squeeze3
Severity: normal
Hello,
/etc/cron.d/php5 produces an output every time it runs here:
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mhash.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mssql.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/odbc.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/pdo_dblib.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/pdo_odbc.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/recode.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/snmp.ini on line 1 in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mhash.so' - /usr/lib/php5/20090626+lfs/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mssql.so' - /usr/lib/php5/20090626+lfs/mssql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/odbc.so' - /usr/lib/php5/20090626+lfs/odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_dblib.so' - /usr/lib/php5/20090626+lfs/pdo_dblib.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_odbc.so' - /usr/lib/php5/20090626+lfs/pdo_odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/recode.so' - /usr/lib/php5/20090626+lfs/recode.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/snmp.so' - /usr/lib/php5/20090626+lfs/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
Is that expected?
Thanks,
Rainer
-- System Information:
Debian Release: 6.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-028stab092.1 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages php5-common depends on:
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii sed 4.2.1-7 The GNU sed stream editor
Versions of packages php5-common recommends:
ii php5-suhosin 0.9.32.1-1 advanced protection module for php
php5-common suggests no packages.
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, baryluk@smp.if.uj.edu.pl, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#654887; Package php5-common.
(Wed, 23 May 2012 04:09:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Witold Baryluk <baryluk@smp.if.uj.edu.pl>:
Extra info received and forwarded to list. Copy sent to baryluk@smp.if.uj.edu.pl, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Wed, 23 May 2012 04:09:05 GMT) (full text, mbox, link).
Message #10 received at 654887@bugs.debian.org (full text, mbox, reply):
Package: php5-common
Version: 5.4.3-5
Followup-For: Bug #654887
I belive this simple patch should fix problem
--- php5.org 2012-05-23 06:03:40.256007592 +0200
+++ php5 2012-05-23 06:04:15.764688333 +0200
@@ -4,4 +4,4 @@
# files, or 24 minutes if not defined. See /usr/lib/php5/maxlifetime
# Look for and purge old sessions every 30 minutes
-09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d
/var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f
-ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {}
2>/dev/null \; -delete
+09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d
/var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f
-ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime 2>/dev/null) ! -execdir
fuser -s {} 2>/dev/null \; -delete
It just redirects stderr of maxlifetime script to /dev/null.
In my case normally it produces something like this:
baryluk@sredniczarny /etc/cron.d/ > /usr/lib/php5/maxlifetime
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20100525+lfs/cairo.so' - /usr/lib/php5/20100525+lfs/cairo.so:
cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20100525+lfs/php_gtk2.so' -
/usr/lib/php5/20100525+lfs/php_gtk2.so: cannot open shared object file: No such
file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20100525+lfs/sqlite.so' - /usr/lib/php5/20100525+lfs/sqlite.so:
cannot open shared object file: No such file or directory in Unknown on line 0
24
which makes my mailbox full of cronjobs output.
Regards,
Witek
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.4.0-t43-devel-smp-01513-g9daeaa3-dirty (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pl_PL.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php5-common depends on:
ii dpkg 1.16.3
ii libc6 2.13-32
ii psmisc 22.16-1
ii sed 4.2.1-9
ii ucf 3.0025+nmu3
php5-common recommends no packages.
php5-common suggests no packages.
-- Configuration Files:
/etc/cron.d/php5 changed [not included]
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#654887; Package php5-common.
(Mon, 28 May 2012 14:30:02 GMT) (full text, mbox, link).
Acknowledgement sent
to OndÅej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Mon, 28 May 2012 14:30:03 GMT) (full text, mbox, link).
Message #15 received at 654887@bugs.debian.org (full text, mbox, reply):
reassing 654887 php5
forcemerge 422173 654887
thank you
Hi Witold,
this is not a really good solution to the problem. The real problem
lies in the fact, you have removed, but not purged packages which
installed php modules. Ignoring the output of the cron job could just
hide some more serious problem
Also this has been fixed in unstable (and wheezy), see the #422173. If
you encounter this problem every again this needs to be filled against
individual packages which carry wrong configuration system (there's a
new php5{en,dis}mod helper program which needs to be used).
Unfortunatelly we cannot fix that in old packages which have been
removed but not purged, since the new version will never get
installed.
O.
On Wed, May 23, 2012 at 6:07 AM, Witold Baryluk
<baryluk@smp.if.uj.edu.pl> wrote:
> Package: php5-common
> Version: 5.4.3-5
> Followup-For: Bug #654887
>
> I belive this simple patch should fix problem
>
>
> --- php5.org 2012-05-23 06:03:40.256007592 +0200
> +++ php5 2012-05-23 06:04:15.764688333 +0200
> @@ -4,4 +4,4 @@
> # files, or 24 minutes if not defined. See /usr/lib/php5/maxlifetime
>
> # Look for and purge old sessions every 30 minutes
> -09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d
> /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f
> -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {}
> 2>/dev/null \; -delete
> +09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d
> /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f
> -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime 2>/dev/null) ! -execdir
> fuser -s {} 2>/dev/null \; -delete
>
>
>
>
> It just redirects stderr of maxlifetime script to /dev/null.
>
> In my case normally it produces something like this:
>
> baryluk@sredniczarny /etc/cron.d/ > /usr/lib/php5/maxlifetime
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/lib/php5/20100525+lfs/cairo.so' - /usr/lib/php5/20100525+lfs/cairo.so:
> cannot open shared object file: No such file or directory in Unknown on line 0
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/lib/php5/20100525+lfs/php_gtk2.so' -
> /usr/lib/php5/20100525+lfs/php_gtk2.so: cannot open shared object file: No such
> file or directory in Unknown on line 0
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/lib/php5/20100525+lfs/sqlite.so' - /usr/lib/php5/20100525+lfs/sqlite.so:
> cannot open shared object file: No such file or directory in Unknown on line 0
> 24
>
> which makes my mailbox full of cronjobs output.
>
> Regards,
> Witek
>
>
>
> -- System Information:
> Debian Release: wheezy/sid
> APT prefers unstable
> APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
>
> Kernel: Linux 3.4.0-t43-devel-smp-01513-g9daeaa3-dirty (SMP w/1 CPU core)
> Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pl_PL.UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages php5-common depends on:
> ii dpkg 1.16.3
> ii libc6 2.13-32
> ii psmisc 22.16-1
> ii sed 4.2.1-9
> ii ucf 3.0025+nmu3
>
> php5-common recommends no packages.
>
> php5-common suggests no packages.
>
> -- Configuration Files:
> /etc/cron.d/php5 changed [not included]
>
> -- no debconf information
>
>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
--
Ondřej Surý <ondrej@sury.org>
Bug reassigned from package 'php5-common' to 'php5'.
Request was from OndÅej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Mon, 28 May 2012 14:36:07 GMT) (full text, mbox, link).
No longer marked as found in versions php5/5.4.3-5 and php5/5.3.3-7+squeeze3.
Request was from OndÅej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Mon, 28 May 2012 14:36:08 GMT) (full text, mbox, link).
Added blocking bug(s) of 654887: 593266, 597217, 422173, 571774, 595224, 593541, 592472, 594230, 617478, 662090, 618025, 513797, and 425084
Request was from OndÅej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Mon, 28 May 2012 14:36:09 GMT) (full text, mbox, link).
Added blocking bug(s) of 654887: 447826
Request was from OndÅej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Mon, 28 May 2012 14:36:18 GMT) (full text, mbox, link).
Marked as fixed in versions php5/5.4.0~rc6-2.
Request was from OndÅej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Mon, 28 May 2012 15:03:06 GMT) (full text, mbox, link).
Marked Bug as done
Request was from OndÅej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Mon, 28 May 2012 15:03:13 GMT) (full text, mbox, link).
Notification sent
to Rainer Dorsch <rdorsch@web.de>:
Bug acknowledged by developer.
(Mon, 28 May 2012 15:03:14 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#654887; Package php5.
(Tue, 29 May 2012 00:39:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Witold Baryluk <baryluk@smp.if.uj.edu.pl>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Tue, 29 May 2012 00:39:03 GMT) (full text, mbox, link).
Message #34 received at 654887@bugs.debian.org (full text, mbox, reply):
On 05-28 16:26, Ondřej Surý wrote:
> reassing 654887 php5
> forcemerge 422173 654887
> thank you
>
> Hi Witold,
>
> this is not a really good solution to the problem. The real problem
> lies in the fact, you have removed, but not purged packages which
> installed php modules. Ignoring the output of the cron job could just
> hide some more serious problem
>
> Also this has been fixed in unstable (and wheezy), see the #422173. If
> you encounter this problem every again this needs to be filled against
> individual packages which carry wrong configuration system (there's a
> new php5{en,dis}mod helper program which needs to be used).
>
> Unfortunatelly we cannot fix that in old packages which have been
> removed but not purged, since the new version will never get
> installed.
>
> O.
I understand devnulling stderr isn't best option, but seriously if,
simple php script which just outputs a single number is broken, then I
think all other php script in the system will not work or output same
warnings, and it will be quite easy to notice this problem. So
devnulling stderr in cron job isn't actually hidning anything IMHO.
Interesingly I almost everytime add --purge to my dist-upgrade or
remove, so it should be purged, with configuration files.
$ dpkg -l | grep php | grep -v ^i
$
Whatever was reason configuration files are still there, I assume it is
just history. (I think i installed php_gtk2 or cairo using pear or just
manually compiling, when trying to run phoronix-test-suite before it was
in Debian repos. But I think it wasn't the case with sqlite extension,
which in fact was almost always in Debian for long time).
I just manually removed offending ini files in /etc/php5/conf.d, and it
should not make any more problems for me.
(btw. I really like new conf.d structure).
>
> On Wed, May 23, 2012 at 6:07 AM, Witold Baryluk
> <baryluk@smp.if.uj.edu.pl> wrote:
> > Package: php5-common
> > Version: 5.4.3-5
> > Followup-For: Bug #654887
> >
> > I belive this simple patch should fix problem
> >
> >
> > --- php5.org 2012-05-23 06:03:40.256007592 +0200
> > +++ php5 2012-05-23 06:04:15.764688333 +0200
> > @@ -4,4 +4,4 @@
> > # files, or 24 minutes if not defined. See /usr/lib/php5/maxlifetime
> >
> > # Look for and purge old sessions every 30 minutes
> > -09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d
> > /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f
> > -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {}
> > 2>/dev/null \; -delete
> > +09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d
> > /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f
> > -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime 2>/dev/null) ! -execdir
> > fuser -s {} 2>/dev/null \; -delete
> >
> >
> >
> >
> > It just redirects stderr of maxlifetime script to /dev/null.
> >
> > In my case normally it produces something like this:
> >
> > baryluk@sredniczarny /etc/cron.d/ > /usr/lib/php5/maxlifetime
> > PHP Warning: PHP Startup: Unable to load dynamic library
> > '/usr/lib/php5/20100525+lfs/cairo.so' - /usr/lib/php5/20100525+lfs/cairo.so:
> > cannot open shared object file: No such file or directory in Unknown on line 0
> > PHP Warning: PHP Startup: Unable to load dynamic library
> > '/usr/lib/php5/20100525+lfs/php_gtk2.so' -
> > /usr/lib/php5/20100525+lfs/php_gtk2.so: cannot open shared object file: No such
> > file or directory in Unknown on line 0
> > PHP Warning: PHP Startup: Unable to load dynamic library
> > '/usr/lib/php5/20100525+lfs/sqlite.so' - /usr/lib/php5/20100525+lfs/sqlite.so:
> > cannot open shared object file: No such file or directory in Unknown on line 0
> > 24
> >
> > which makes my mailbox full of cronjobs output.
> >
> > Regards,
> > Witek
> >
> >
> >
> > -- System Information:
> > Debian Release: wheezy/sid
> > APT prefers unstable
> > APT policy: (500, 'unstable'), (1, 'experimental')
> > Architecture: i386 (i686)
> >
> > Kernel: Linux 3.4.0-t43-devel-smp-01513-g9daeaa3-dirty (SMP w/1 CPU core)
> > Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pl_PL.UTF-8)
> > Shell: /bin/sh linked to /bin/dash
> >
> > Versions of packages php5-common depends on:
> > ii dpkg 1.16.3
> > ii libc6 2.13-32
> > ii psmisc 22.16-1
> > ii sed 4.2.1-9
> > ii ucf 3.0025+nmu3
> >
> > php5-common recommends no packages.
> >
> > php5-common suggests no packages.
> >
> > -- Configuration Files:
> > /etc/cron.d/php5 changed [not included]
> >
> > -- no debconf information
> >
> >
> >
> > _______________________________________________
> > pkg-php-maint mailing list
> > pkg-php-maint@lists.alioth.debian.org
> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
>
>
>
> --
> Ondřej Surý <ondrej@sury.org>
--
Witold Baryluk
JID: witold.baryluk // jabster.pl
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 26 Jun 2012 07:43:38 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 00:49:38 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.