error from cron job on cliupdate.php concerning libpng

by marteng69, Tuesday, November 27, 2018, 18:12 (13 days ago)

Hello,

I am running selfoss on a shared host.
In the last few weeks I am getting several times a day a error message from the cron job that is executing cliupdate.php

The cron job looks like:
/xxx/xxx/php /usr/xxx/xxx/xxx/selfoss/cliupdate.php

The error message is like this:
libpng warning: Interlace handling should be turned on when using png_read_image

It does not happen every time the cron job is running.

Looking in the logs of the shared host does not show me any hint, what is the reason of this error.

I have also checked the php config of the shared host, but this seems all fine.

Do you have any hint, where I can search or what I can ask the support of my hosting provider to solve the error.

Kind regards
Martin

error from cron job on cliupdate.php concerning libpng

by jtojnar, Saturday, December 01, 2018, 00:45 (9 days ago) @ marteng69

It is a bug in older versions of libpng according to https://bugzilla.redhat.com/show_bug.cgi?id=1121035

error from cron job on cliupdate.php concerning libpng

by marteng69, Saturday, December 01, 2018, 10:20 (9 days ago) @ jtojnar

It is a bug in older versions of libpng according to https://bugzilla.redhat.com/show_bug.cgi?id=1121035

I found this too. The bug was closed because of insufficient data.
What is really irritating that the error message does not appear on every run of the cronjob.
Is it possible that during the cronjob the shared host runs out of memory and then the error occurs?

Also I have a new behaviour:
The error is now changing from the original error to a new one:
libpng warning: iCCP: known incorrect sRGB profile

Sometimes both errors occur at the same time, most of the times they are alternating

error from cron job on cliupdate.php concerning libpng

by jtojnar, Sunday, December 02, 2018, 12:36 (8 days ago) @ marteng69

I guess that it occurs when favicon/thumbnail for some feed is resized and libpng does not support it. I would still say it is either a bug in libpng or PHP.

Try adding the following code before $f3->run(); in index.php:

https://gist.github.com/jtojnar/cbf19757c01b7aaa47832d5baf26f3e3

error from cron job on cliupdate.php concerning libpng

by marteng69, Sunday, December 02, 2018, 17:53 (8 days ago) @ jtojnar

I guess that it occurs when favicon/thumbnail for some feed is resized and libpng does not support it. I would still say it is either a bug in libpng or PHP.

Try adding the following code before $f3->run(); in index.php:

https://gist.github.com/jtojnar/cbf19757c01b7aaa47832d5baf26f3e3

I added the lines in the index.php.
Now I only get the debug messages as result.
What part of the debug messages do you need to investigate further?

error from cron job on cliupdate.php concerning libpng

by jtojnar, Sunday, December 02, 2018, 18:17 (8 days ago) @ marteng69
edited by jtojnar, Sunday, December 02, 2018, 19:18

I would expect the libpng error to appear somewhere and you should be able to see what feed is causing it.

error from cron job on cliupdate.php concerning libpng

by marteng69, Tuesday, December 04, 2018, 08:44 (6 days ago) @ jtojnar

I would expect the libpng error to appear somewhere and you should be able to see what feed is causing it.

Unfortunately there is no error message in the debugging data.

Some additional information when the error occurs:
The cronjob runs four times every hour, every 15 minutes. The first time during the day it occurs is after 8 o'clock in the morning. Then it re-occurs almost every 45 minutes up to 11 o'clock in the evening. During the night, the cronjob runs all the time (what I can see in the logfile of the cronjob) but the error does not occur.

RSS Feed of thread
powered by my little forum