same action is repeatedly logged

Bug #29895 reported by Rui Matos
40
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

On current dapper using:
ii cupsys 1.1.99.b1.r4929-0ubuntu2
ii gnome-cups-manager 0.31-1.1ubuntu1

as long as gnome-cups-icon is running on my session I get this on /var/log/cups/access_log:

localhost - - [28/Jan/2006:00:38:54 +0000] "POST / HTTP/1.1" 200 72 CUPS-Get-Default successful-ok
localhost - - [28/Jan/2006:00:38:55 +0000] "POST / HTTP/1.1" 200 72 CUPS-Get-Printers successful-ok
localhost - - [28/Jan/2006:00:38:55 +0000] "POST / HTTP/1.1" 200 369 Get-Printer-Attributes successful-ok-ignored-or-substituted-attribu
localhost - - [28/Jan/2006:00:38:55 +0000] "POST / HTTP/1.1" 200 372 Get-Printer-Attributes successful-ok-ignored-or-substituted-attribu
localhost - - [28/Jan/2006:00:38:55 +0000] "POST / HTTP/1.1" 200 379 Get-Printer-Attributes successful-ok-ignored-or-substituted-attribu

continuosly making that log file grow bigger and bigger.

Revision history for this message
Gaëtan Petit (gaetanp) wrote :
Revision history for this message
Gaëtan Petit (gaetanp) wrote :

i put this major because a 1gb access.log it's really huge!
Moreover continuosly wrinting on disk increase power consumption on laptop systems

Changed in cupsys:
status: Unconfirmed → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

I successfully disabled this using

  AccessLog /dev/null

in cupds.conf. I don't see an option to turn it off as such. Unless there's another fix for the bug I think this should be put in the default configuration.

The option for rotating the log files does not seem to effect the access log.

Revision history for this message
Jan Ischebeck (siesel) wrote :

I got a 2GB log file.
After running short of diskspace and having no space left on the device anymore for 2-3 h, I started to free up some space.
While I was removing 1,8 GB of files, the access_log logfile started to increase in size. After 10min I still had only 34Mbyte of free space, because the log file grew so fast.

Martin Pitt (pitti)
Changed in cupsys:
assignee: nobody → pitti
Revision history for this message
Martin Pitt (pitti) wrote :

 cupsys (1.1.99.b1.r4929-0ubuntu3) dapper; urgency=low
 .
   * debian/rules: Do not install dangling pdftops.conf symlink. (Malone #26785)
   * debian/cupsys.preinst: Remove a dangling pdftops.conf symlink on upgrades
     to this version.
   * debian/cupsys.postinst: Add cupsys to group 'scanner' to be able to access
     printer/scanner combined devices. (Malone #29050)
   * debian/patches/44_fixconfdirperms.dpatch: Make /etc/cups/ppd group
     writable. (Malone #31533)
   * debian/cupsys.init.d: Make sure that page_log exists with the right
     permissions. (Malone #33409)
   * Add debian/patches/51_dont_log_ipp_printer_query.dpatch: Do not flood
     access_log with successful CUPS-Get-Printers and Get-Printer-Attributes
     queries (which are generated by gnome-cups-icon every 3 seconds). This is
     a hideous and hackish patch, but it has to do until we dbusify cupsys
     properly. (Malone #29895)

Changed in cupsys:
status: Confirmed → Fix Released
Revision history for this message
Paul Coleman (pdcoleman) wrote :

The hideous and hackish hack did nothing for my sys. Still getting this every 5 sec.
localhost - - [09/Mar/2006:17:02:53 -0500] "POST / HTTP/1.1" 200 72 CUPS-Get-Default successful-ok
localhost - - [09/Mar/2006:17:02:58 -0500] "POST / HTTP/1.1" 200 72 CUPS-Get-Default successful-ok

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Same as Paul Coleman. I still have the line every 5 seconds.

cupsys 1.1.99.b1.r4929-0ubuntu4

Revision history for this message
psylence519 (psylence519) wrote :

Getting the same 5-second writes, on two boxes here, both
cupsys 1.1.99.b1.r4929-0ubuntu4. The AccessLog /dev/null was all I could do to shut up my hard drives...

Changed in cupsys:
status: Fix Released → Confirmed
Revision history for this message
Dhonn (dhonn) wrote :

I get the same thing also take note that ~/xsession-errors is growing as well because of the cupsys errors.

There is still random disk activity other than this when the computer is idle.

I filed this bug: https://launchpad.net/malone/bugs/35660

Revision history for this message
Martin Pitt (pitti) wrote :

Fixed locally, will upload soon.

Changed in cupsys:
status: Confirmed → Fix Committed
Revision history for this message
sam tygier (samtygier) wrote :

the fix is not uploaded yet.

Changed in cupsys:
status: Fix Committed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

 cupsys (1.1.99.b1.r4929-0ubuntu5) dapper; urgency=low
 .
   * debian/patches/51_dont_log_ipp_printer_query.dpatch: Suppress logging of
     successful CUPS_GET_DEFAULT messages, too. Closes: LP#29895
   * debian/pdftops: Fix reading from stdin. Closes: LP#17124

Changed in cupsys:
status: In Progress → Fix Released
Revision history for this message
Rui Matos (tiagomatos) wrote :

This bug returned in the 1.1.99.b1.r4929-0ubuntu6 version. The exact same messages are repeatedly being logged into /var/log/cups/access_log again.

Changed in cupsys:
status: Fix Released → Confirmed
Revision history for this message
psylence519 (psylence519) wrote :

Yup, getting the messages again! Hooray :|

Revision history for this message
Martin Pitt (pitti) wrote :

Yes, sorry, already noticed that and fixed locally.

Changed in cupsys:
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

 cupsys (1.1.99.b1.r4929-0ubuntu7) dapper; urgency=low
 .
   * debian/cupsys.init.d: Move log_end_msg to the right place again.
   * Add debian/patches/53_usr_share_ppd_support.dpatch:
     - Look for PPDs in /usr/share/ppd, according to
       http://wiki.debian.org/PpdFileStructureSpecification.
     - Fixes Debian bug #358186.
   * debian/rules: Install PPD files into /usr/share/ppd/cups-included,
     according to above specification.
   * debian/patches/54_cups-config_modeldir.dpatch: Add --modeldir to
     cups-config so that other packages can use it to figure out the correct
     PPD base path.
   * debian/libcupsys2.shlibs: Bump version number so that other packages can
     rely on cups-config's modeldir.
   * Re-add debian/patches/51_dont_log_ipp_printer_query.dpatch, since these
     log messages are routed through a different code path.
   * debian/cupsys.init.d: Change custom PPD path from /usr/share/cups/ppd to
     /usr/share/ppd/custom.

Changed in cupsys:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.