Bug#782300: geoip-database-contrib: Quiet mode for cron update

2015-04-14 Thread Patrick Matthäi



Am 13.04.2015 um 21:13 schrieb Richard van den Berg:

Patrick Matthäi wrote on 13-04-15 18:15:

And could you please also show me your current screenshot? 


Sure. A screenshot of what though?


Ups, I wanted to say cronfile not screenshot :D

--
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

  Blog: http://www.linux-dev.org/
E-Mail: pmatth...@debian.org
patr...@linux-dev.org
*/


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#782300: geoip-database-contrib: Quiet mode for cron update

2015-04-14 Thread Richard van den Berg
On 14-4-15 08:32 , Patrick Matthäi wrote:
 Ups, I wanted to say cronfile not screenshot :D 

$ sudo cat /etc/cron.d/geoip-database-contrib
#
# Regular cron job for the geoip-database-contrib package,
# used to update the GeoLite database.
#
0 4 10 * *  root[ -x /usr/sbin/geoip-database-contrib_update ]
 /usr/sbin/geoip-database-contrib_update  /dev/null


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#782300: geoip-database-contrib: Quiet mode for cron update

2015-04-13 Thread Richard van den Berg

Patrick Matthäi wrote on 13-04-15 18:15:
What is the content of those e-mails? 


Something like this:

From: r...@example.com (Cron Daemon)
To: r...@example.com
Subject: Cron root@example[ -x /usr/sbin/geoip-database-contrib_update ]  
/usr/sbin/geoip-database-contrib_update  /dev/null
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: SHELL=/bin/sh
X-Cron-Env: HOME=/root
X-Cron-Env: PATH=/usr/bin:/bin
X-Cron-Env: LOGNAME=root
Message-Id: 20150410020007.e739742...@example.com
Date: Fri, 10 Apr 2015 04:00:07 +0200 (CEST)

--2015-04-10 04:00:01--  
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
Resolving geolite.maxmind.com (geolite.maxmind.com)... 
2400:cb00:2048:1::8d65:73be, 2400:cb00:2048:1::8d65:72be, 141.101.114.190, ...
Connecting to geolite.maxmind.com 
(geolite.maxmind.com)|2400:cb00:2048:1::8d65:73be|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 444521 (434K) [application/octet-stream]
Saving to: `/usr/share/GeoIP/GeoIP.dat.gz'

 0K .. .. .. .. .. 11% 11.3M 0s
50K .. .. .. .. .. 23% 6.86M 0s
   100K .. .. .. .. .. 34% 25.6M 0s
   150K .. .. .. .. .. 46% 8.92M 0s
   200K .. .. .. .. .. 57% 9.85M 0s
   250K .. .. .. .. .. 69% 12.5M 0s
   300K .. .. .. .. .. 80% 6.72M 0s
   350K .. .. .. .. .. 92% 13.4M 0s
   400K .. .. ..  100% 20.2M=0.04s

2015-04-10 04:00:02 (10.5 MB/s) - `/usr/share/GeoIP/GeoIP.dat.gz' saved 
[444521/444521]
[snip]


I just double checked, and stderr is indeed the problem. When I run this:

/usr/sbin/geoip-database-contrib_update  stdout.txt 2 stderr.txt

I get:
-rw-r--r--  1 root staff  25478 13 apr 21:05 stderr.txt
-rw-r--r--  1 root staff338 13 apr 21:05 stdout.txt

See attachments as well. Adding 21 to /etc/cron.d/geoip-database-contrib will 
fix this.

And could you please also show me your current screenshot? 


Sure. A screenshot of what though?

Kind regards,

Richard
--2015-04-13 21:05:20--  
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
Resolving geolite.maxmind.com (geolite.maxmind.com)... 
2400:cb00:2048:1::8d65:72be, 2400:cb00:2048:1::8d65:73be, 141.101.115.190, ...
Connecting to geolite.maxmind.com 
(geolite.maxmind.com)|2400:cb00:2048:1::8d65:72be|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 444521 (434K) [application/octet-stream]
Saving to: `/usr/share/GeoIP/GeoIP.dat.gz'

 0K .. .. .. .. .. 11% 8.41M 0s
50K .. .. .. .. .. 23% 9.20M 0s
   100K .. .. .. .. .. 34% 9.49M 0s
   150K .. .. .. .. .. 46% 10.2M 0s
   200K .. .. .. .. .. 57% 10.2M 0s
   250K .. .. .. .. .. 69% 11.2M 0s
   300K .. .. .. .. .. 80% 11.0M 0s
   350K .. .. .. .. .. 92% 11.0M 0s
   400K .. .. ..  100% 11.3M=0.04s

2015-04-13 21:05:20 (10.1 MB/s) - `/usr/share/GeoIP/GeoIP.dat.gz' saved 
[444521/444521]

--2015-04-13 21:05:20--  
http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
Resolving geolite.maxmind.com (geolite.maxmind.com)... 
2400:cb00:2048:1::8d65:73be, 2400:cb00:2048:1::8d65:72be, 141.101.114.190, ...
Connecting to geolite.maxmind.com 
(geolite.maxmind.com)|2400:cb00:2048:1::8d65:73be|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 705702 (689K) [application/octet-stream]
Saving to: `/usr/share/GeoIP/GeoIPv6.dat.gz'

 0K .. .. .. .. ..  7% 7.24M 0s
50K .. .. .. .. .. 14% 8.79M 0s
   100K .. .. .. .. .. 21% 9.34M 0s
   150K .. .. .. .. .. 29% 10.0M 0s
   200K .. .. .. .. .. 36% 10.7M 0s
   250K .. .. .. .. .. 43% 11.0M 0s
   300K .. .. .. .. .. 50% 11.0M 0s
   350K .. .. .. .. .. 58% 11.0M 0s
   400K .. .. .. .. .. 65% 11.0M 0s
   450K .. .. .. .. .. 72% 11.0M 0s
   500K .. .. .. .. .. 79% 11.1M 0s
   550K .. .. .. .. .. 87% 11.0M 0s
   600K .. .. .. .. 

Bug#782300: geoip-database-contrib: Quiet mode for cron update

2015-04-13 Thread Patrick Matthäi
Am 10.04.2015 um 08:35 schrieb Richard van den Berg:
 Package: geoip-database-contrib
 Version: 1.8
 Severity: wishlist
 
 The patch for #684500 actually did not fix this issue in 
 geoip-database-contrib
 1.8. I still get long monthly E-mails from the geoip-database-contrib_update
 cronjob. Perhaps you need to redirect stderr as well?

What is the content of those e-mails?
And could you please also show me your current screenshot?


 
 -- System Information:
 Debian Release: 7.8
   APT prefers stable
   APT policy: (990, 'stable'), (400, 'testing'), (300, 'unstable')
 Architecture: amd64 (x86_64)
 
 Kernel: Linux 3.13.7 (SMP w/2 CPU cores)
 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash
 
 Versions of packages geoip-database-contrib depends on:
 ii  debconf [debconf-2.0]  1.5.49
 ii  ucf3.0025+nmu3
 ii  wget   1.13.4-3+deb7u2
 
 geoip-database-contrib recommends no packages.
 
 Versions of packages geoip-database-contrib suggests:
 ii  cron  3.0pl1-124
 
 -- debconf information:
   geoip-database-contrib/install-cronjob: true
 


-- 
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

  Blog: http://www.linux-dev.org/
E-Mail: pmatth...@debian.org
patr...@linux-dev.org
*/



signature.asc
Description: OpenPGP digital signature