You are not logged in.
Hello,
I've been trying to get CUPS configured correctly off and on for a few weeks now and haven't had much luck. I can print to pdf with CUPS-PDF fine but when I try to add a new printer I get the following error in /var/log/cups/error_log:
[CGI] CUPS-Get-Devices request failed with status 500: Connection reset by peer
Also the log is filled (10s to 100s for every one of the above errors) with the following message that I can't link to any particular action on my end:
[Client 32] IP lookup failed - connection from localhost closed!
The error log is about 600MB, which I'm guessing isn't normal. I have tried the web interface (http://localhost:631/admin) and the command line, both will result in the Connection reset by peer error.
Thanks,
Offline
Before trying anything else: ensure your hostname isn't localhost: https://wiki.archlinux.org/index.php/Ne … e_hostname
Post
hostnamectlin doubt.
Offline
Thanks for the quick reply.
hostnamectl outputs:
Static hostname: SanguineOctopus
Icon name: computer-desktop
Chassis: desktop
Machine ID: 906216c5c53f47aaa3ed801f64911137
Boot ID: 900d0c7639494b8cb90aceaf1f08620d
Operating System: Arch Linux
Kernel: Linux 5.4.19-1-lts
Architecture: x86-64
Offline
That does look alright, maybe post some excerpt of the log, or check if the size can be relevantly reduced by compressing it. Maybe also post
systemctl status org.cups.cupsd.socket org.cups.cupsd.service cups-browsed.serviceand please use [ code ] [ /code ] tags without the spaces for posting output.
Also what printer are you trying to add by which means exactly?
Offline
The output of
systemctl status org.cups.cupsd.socket org.cups.cupsd.service cups-browsed.service is:
● org.cups.cupsd.socket - CUPS Scheduler
Loaded: loaded (/usr/lib/systemd/system/org.cups.cupsd.socket; enabled; vendor preset: disabled)
Active: active (running) since Thu 2020-02-13 09:27:19 EST; 1h 20min ago
Triggers: ● org.cups.cupsd.service
Listen: /run/cups/cups.sock (Stream)
CGroup: /system.slice/org.cups.cupsd.socket
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
● org.cups.cupsd.service - CUPS Scheduler
Loaded: loaded (/usr/lib/systemd/system/org.cups.cupsd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2020-02-13 09:27:19 EST; 1h 20min ago
TriggeredBy: ● org.cups.cupsd.socket
● org.cups.cupsd.path
Docs: man:cupsd(8)
Main PID: 585 (cupsd)
Status: "Scheduler is running..."
Tasks: 1 (limit: 38401)
Memory: 10.4M
CGroup: /system.slice/org.cups.cupsd.service
└─585 /usr/bin/cupsd -l
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
● cups-browsed.service - Make remote CUPS printers available locally
Loaded: loaded (/usr/lib/systemd/system/cups-browsed.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2020-02-13 09:42:45 EST; 1h 4min ago
Main PID: 2446 (cups-browsed)
Tasks: 3 (limit: 38401)
Memory: 2.8M
CGroup: /system.slice/cups-browsed.service
└─2446 /usr/bin/cups-browsed I renamed the log to error_log.old and started a new log so that its easier to actually review the recent troubleshooting. The errors from this morning are:
W [13/Feb/2020:09:28:01 -0500] [Client 1] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:01 -0500] [Client 2] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:01 -0500] [Client 3] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:01 -0500] [Client 4] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:01 -0500] [Client 5] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:08 -0500] [Client 6] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:08 -0500] [Client 7] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:08 -0500] [Client 8] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:08 -0500] [Client 9] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:08 -0500] [Client 10] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:08 -0500] [Client 11] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:08 -0500] [Client 12] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:08 -0500] [Client 13] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:08 -0500] [Client 14] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:08 -0500] [Client 15] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:28:37 -0500] [Client 16] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:31:19 -0500] [Client 18] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:31:27 -0500] [Client 19] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:31:27 -0500] [Client 20] IP lookup failed - connection from localhost closed!
E [13/Feb/2020:09:31:27 -0500] [CGI] CUPS-Get-Devices request failed with status 500: Connection reset by peer
W [13/Feb/2020:09:42:45 -0500] [Client 21] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:42:45 -0500] [Client 22] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:42:45 -0500] [Client 23] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:42:45 -0500] [Client 24] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:42:45 -0500] [Client 25] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:42:45 -0500] [Client 26] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:42:50 -0500] [Client 28] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:42:50 -0500] [Client 29] IP lookup failed - connection from localhost closed!
E [13/Feb/2020:09:42:50 -0500] [CGI] CUPS-Get-Devices request failed with status 500: Connection reset by peer
W [13/Feb/2020:09:42:54 -0500] [Client 30] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:42:55 -0500] [Client 31] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:42:55 -0500] [Client 32] IP lookup failed - connection from localhost closed!
E [13/Feb/2020:09:42:55 -0500] [CGI] CUPS-Get-Devices request failed with status 500: Connection reset by peer
W [13/Feb/2020:09:51:07 -0500] [Client 34] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:51:08 -0500] [Client 35] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:09:51:08 -0500] [Client 36] IP lookup failed - connection from localhost closed!
E [13/Feb/2020:09:51:08 -0500] [CGI] CUPS-Get-Devices request failed with status 500: Connection reset by peer
W [13/Feb/2020:10:07:52 -0500] [Client 37] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:10:07:52 -0500] [Client 38] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:10:26:22 -0500] [Client 39] IP lookup failed - connection from localhost closed!
W [13/Feb/2020:10:26:22 -0500] [Client 40] IP lookup failed - connection from localhost closed! I'm trying to set up a Brother HL-L23400W over either USB or the network (the printer is physically close enough to my desktop that I don't really care which ends up working). Mostly I am trying to use the CUPS Web Interface but I tried the lpadmin command a few times and it generates the same errors in the erro_log, and doesn't successfully add the printer.
Offline