GNU bug report logs - #49106
slow load for cups /admin page

Previous Next

Package: guix;

Reported by: Christopher Howard <christopher <at> librehacker.com>

Date: Sat, 19 Jun 2021 00:44:01 UTC

Severity: normal

Merged with 39801, 42068

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49106 in the body.
You can then email your comments to 49106 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#49106; Package guix. (Sat, 19 Jun 2021 00:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Howard <christopher <at> librehacker.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 19 Jun 2021 00:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Howard <christopher <at> librehacker.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: slow load for cups /admin page
Date: Fri, 18 Jun 2021 16:43:10 -0800
[Message part 1 (text/plain, inline)]
Hi, ever since I have started using Guix a few years ago, I have always
found that the cups page at http://127.0.0.1:631/admin load very
slowly, with nothing appearing on the Web browser page for something
like two minutes. The home page (http://127.0.01:631) loads very
quickly, and also other pages you select after you get to the admin
page (e.g., modifying a printer) load quickly. I have had this problem
across multiple Guix computers using different printers. I am wondering
if all CUPS installations in the world have this problem, which seems
unlikely, or if it is something specific to the Guix service
configuration.
This is the cups service entry for my system:
    (service cups-service-type	     (cups-configuration	      (
web-interface? #t)	      (log-level 'debug)	      (access-
log-level 'all)	      (extensions	       (list hplip-minimal
cups-filters))))
My system information:
OS: Guix System 9703a51048fbc1d322595d676ff0d63b1eb89304 x86_64 Host:
OptiPlex 9020 00 Kernel: 5.12.8-gnu Uptime: 1 day, 1 hour, 15
mins Packages: 93 (guix-system), 109 (guix-user) Shell: bash
5.0.16 Resolution: 1920x1080 DE: GNOME Theme: Adwaita [GTK2/3] Icons:
Adwaita [GTK2/3] Terminal: kitty CPU: Intel i5-4570 (4) @ 3.600GHz GPU:
Intel HD Graphics GPU: AMD ATI Radeon HD 8490 / R5 235X OEM Memory:
3399MiB / 7869MiB
Thank you,
Christopher Howard
https://librehacker.com id="-x-evo-selection-start-marker">
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#49106; Package guix. (Sat, 19 Jun 2021 08:18:01 GMT) Full text and rfc822 format available.

Message #8 received at 49106 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Christopher Howard <christopher <at> librehacker.com>, 49106 <at> debbugs.gnu.org
Subject: Re: bug#49106: slow load for cups /admin page
Date: Sat, 19 Jun 2021 10:17:29 +0200
[Message part 1 (text/plain, inline)]
Christopher Howard schreef op vr 18-06-2021 om 16:43 [-0800]:
> Hi, ever since I have started using Guix a few years ago,
> I have always found that the cups page at http://127.0.0.1:631/admin
> load very slowly, with nothing appearing on the Web browser page for
> something like two minutes. The home page (http://127.0.01:631) loads
> very quickly, and also other pages you select after you get to the admin
> page (e.g., modifying a printer) load quickly.

I can confirm. The home page loads within a second or two.
The admin page quickly (also after a second or so) asks for credentials
(username + passphrase), and then takes minutes to load.

I looked at /var/log/cups/access_log, and the contents is suspicious:

localhost - - [19/Jun/2021:09:58:14 +0200] "GET /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
[... 4 times repeated ...]
localhost - [... username ...] [19/Jun/2021:09:58:51 +0200] "GET /admin/conf/cupsd.conf HTTP/1.1" 200 0 - -
localhost - - [19/Jun/2021:09:58:51 +0200] "GET /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
[... 605 times repeated ...]

Also, /var/log/cups/error_log contains the following line about a hundred times
(but with a different ‘pid’ and ‘file’)

I [19/Jun/2021:10:01:13 +0200] [Client 1215] Started "/gnu/store/qqx970xzzwi3hcsisjzx77gjg4npw0j2-cups-server-bin/lib/cups/cgi-bin/admin.cgi" (pid=6959, file=206)

Also, I see the following on the admin page:

‘Unable to open cupsd.conf file:’

Seems like /gnu/store/qqx970xzzwi3hcsisjzx77gjg4npw0j2-cups-server-bin/lib/cups/cgi-bin/admin.cgi
wants to read cupsd.conf, but it is unable to, and it keeps retrying until some
kind of time-out or something.

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#49106; Package guix. (Sat, 19 Jun 2021 08:19:02 GMT) Full text and rfc822 format available.

Message #11 received at 49106 <at> debbugs.gnu.org (full text, mbox):

From: Brice Waegeneire <brice <at> waegenei.re>
To: Christopher Howard <christopher <at> librehacker.com>
Cc: 49106 <at> debbugs.gnu.org
Subject: Re: bug#49106: slow load for cups /admin page
Date: Sat, 19 Jun 2021 10:18:30 +0200
[Message part 1 (text/plain, inline)]
Hello Christopher,

Christopher Howard <christopher <at> librehacker.com> writes:

> Hi, ever since I have started using Guix a few years ago, I have always found that the cups page at
> http://127.0.0.1:631/admin load very slowly, with nothing appearing on the Web browser page for something like two
> minutes. The home page (http://127.0.01:631) loads very quickly, and also other pages you select after you get to the admin
> page (e.g., modifying a printer) load quickly. I have had this problem across multiple Guix computers using different printers. I
> am wondering if all CUPS installations in the world have this problem, which seems unlikely, or if it is something specific to the
> Guix service configuration.

This is a know issue, I stumbuled upon it this week too.  I already
spent several hours trying to found the origin of that issue.  When
debbuging is activated, from the logs (like the attached one), I can see
that cups' max connection is reached, then after a timeout expire the
page is returned.  But there is also other errors, such as broken pipes,
non extsting files share/doc/cups/admin/conf/cupsd.conf.  I don't know
where to begin.

At the moment testing modification to the cups package to be used in the
service take a lot of time since the cups package is a dependency for a
lot of packages (~3000), if someone know how to speed this up I'm
interesseted.

[error_log.O (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
Cheers,
- Brice

Merged 39801 42068 49106. Request was from Brice Waegeneire <brice <at> waegenei.re> to control <at> debbugs.gnu.org. (Sat, 19 Jun 2021 08:20:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#49106; Package guix. (Sat, 19 Jun 2021 10:48:02 GMT) Full text and rfc822 format available.

Message #16 received at 49106 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Brice Waegeneire <brice <at> waegenei.re>, Christopher Howard
 <christopher <at> librehacker.com>
Cc: 49106 <at> debbugs.gnu.org
Subject: Re: bug#49106: slow load for cups /admin page
Date: Sat, 19 Jun 2021 10:39:10 +0200
[Message part 1 (text/plain, inline)]
Brice Waegeneire schreef op za 19-06-2021 om 10:18 [+0200]:
> [...]
> 
> At the moment testing modification to the cups package to be used in the
> service take a lot of time since the cups package is a dependency for a
> lot of packages (~3000), if someone know how to speed this up I'm
> interesseted.

cups-configuration has a 'package' field.

You could define a 'cups-for-service' package separate from the
standard 'cups' package, leaving the original 'cups' intact,
and set the 'package' field to 'cups-for-service' in your operating-system
configuration.

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 22 Jul 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 272 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.