On Wed, 12 Jun 2019 22:52:59 +0200 Bill Allombert <[email protected]> wrote:
On Wed, Jun 12, 2019 at 09:46:58PM +0200, Stefan Fritsch wrote:
> Package: popularity-contest
> Version: 1.67
> Severity: normal
>
> Dear Maintainer,
>
> on several of my hosts, popularity-contest logs
>
> unable to submit report to http://popcon.debian.org/cgi-bin/popcon.cgi.
> unable to submit report.
>
> But it does not log why and there is no way that I could find to trigger
> the sending from the command line with debug output enabled.
>
> http://popcon.debian.org/cgi-bin/pop is reachable from the host via curl. Also,
> according to the documentation it should fall back to email, which it does not
> do. It does not log why it does not do that.
Hello Stefan!
This comes from /etc/cron.daily/popularity-contest:
# try to post the report through http POST
if [ "$SUBMITURLS" ] && [ "yes" = "$USEHTTP" ]; then
for URL in $SUBMITURLS ; do
if setsid /usr/share/popularity-contest/popcon-upload \
-u $URL -f $POPCON 2>/dev/null ; then
SUBMITTED=yes
else
logger -t popularity-contest "unable to submit report to
$URL."
fi
done
fi
/usr/share/popularity-contest/popcon-upload has an option -d for
debugging that you could try.
I added the -d to get some more debug.
But what I got is not really helpfull. I got an email from cron:
From: [email protected] (Cron Daemon)
To: [email protected]
Subject: Cron <root@PiHole> test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.daily )
Date: Thu, 29 Aug 2019 06:25:15 +0200
/etc/cron.daily/popularity-contest:
Failed to upload, answer ''
And in /var/log/messages I have the classic:
Aug 29 06:25:15 PiHole popularity-contest: unable to submit report to
http://popcon.debian.org/cgi-bin/popcon.cgi.
Aug 29 06:25:15 PiHole popularity-contest: unable to submit report
I am using Debian stable (buster) with popularity-contest 1.67
Bye
--
Dr. Ludovic Rousseau