slow load for cups /admin page

  • Done
  • quality assurance status badge
Details
3 participants
  • Brice Waegeneire
  • Christopher Howard
  • Maxime Devos
Owner
unassigned
Submitted by
Christopher Howard
Severity
normal
Merged with
C
C
Christopher Howard wrote on 19 Jun 2021 02:43
(name . bug-guix)(address . bug-guix@gnu.org)
48959bd5d3a690f6b185a754ff57aa1b55ebc5e6.camel@librehacker.com
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/adminload 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.comid="-x-evo-selection-start-marker"
Attachment: file
M
M
Maxime Devos wrote on 19 Jun 2021 10:17
f1ce96d9e4eceefb88359206940233e8f4ef7f7a.camel@telenet.be
Christopher Howard schreef op vr 18-06-2021 om 16:43 [-0800]:
Toggle quote (7 lines)
> 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.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYM2oGhccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7kMPAQDGcWf9/A+/mxkBQTwUpla+yYsg
0xZS6om+Hv9VkdhiBAD/djye9yVifPGCdJkGT6S9UTYhwnIu6UZv8ynui7HaZAw=
=zWES
-----END PGP SIGNATURE-----


B
B
Brice Waegeneire wrote on 19 Jun 2021 10:18
(name . Christopher Howard)(address . christopher@librehacker.com)(address . 49106@debbugs.gnu.org)
875yyaz2qx.fsf@waegenei.re
Hello Christopher,

Christopher Howard <christopher@librehacker.com> writes:

Toggle quote (7 lines)
> 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.
Attachment: error_log.O
Cheers,
- Brice
B
B
Brice Waegeneire wrote on 19 Jun 2021 10:19
control message for bug #49106
(address . control@debbugs.gnu.org)
E1luWCj-0004Gg-F1@debbugs.gnu.org
merge 49106 39801
quit
M
M
Maxime Devos wrote on 19 Jun 2021 10:39
Re: bug#49106: slow load for cups /admin page
(address . 49106@debbugs.gnu.org)
c4beec50cd270ca707e6a60c648aa923c108ec88.camel@telenet.be
Brice Waegeneire schreef op za 19-06-2021 om 10:18 [+0200]:
Toggle quote (7 lines)
> [...]
>
> 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.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYM2tIxccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7lKnAQCH9go24HHCaum159ePwPcH8+aI
jmhoCHmUih1j0+OE2AEA8qU2iKaKF9Wc30G70Q8gzfUw01uHa2/Ca10ecZKhMAA=
=DFEP
-----END PGP SIGNATURE-----


?
Your comment

This issue is archived.

To comment on this conversation send an email to 49106@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 49106
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch