[Solved] Problem for add new printer in CUPS

i installed nethserver with printer support but when i add a new printer in the cups webpanel nothing happens.

there is error log of cups:

E [26/Aug/2015:11:07:19 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [26/Aug/2015:11:07:19 +0200] [cups-deviced] PID 20188 (dnssd) stopped with status 1!
E [26/Aug/2015:11:07:21 +0200] SSL shutdown failed: Error in the push function.
E [26/Aug/2015:11:07:21 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [26/Aug/2015:11:07:21 +0200] [cups-deviced] PID 20209 (dnssd) stopped with status 1!
E [26/Aug/2015:11:07:23 +0200] SSL shutdown failed: Error in the push function.
E [26/Aug/2015:11:19:15 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [26/Aug/2015:11:19:15 +0200] [cups-deviced] PID 21106 (dnssd) stopped with status 1!
E [26/Aug/2015:11:19:17 +0200] SSL shutdown failed: Error in the push function.
E [26/Aug/2015:11:27:43 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [26/Aug/2015:11:27:43 +0200] [cups-deviced] PID 21202 (dnssd) stopped with status 1!
E [26/Aug/2015:11:27:45 +0200] SSL shutdown failed: Error in the push function.
E [26/Aug/2015:11:27:45 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [26/Aug/2015:11:27:45 +0200] [cups-deviced] PID 21223 (dnssd) stopped with status 1!

help me :smile:

it is not full log, we need more and lspci and lsusb

[root@server ~]# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)
[root@server ~]# 

[root@server ~]# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 80ee:0021 VirtualBox USB Tablet
[root@server ~]# 

/var/log/cups/access_log
192.168.1.2 - - [26/Aug/2015:11:07:14 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [26/Aug/2015:11:07:14 +0200] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
192.168.1.2 - - [26/Aug/2015:11:07:14 +0200] "POST /admin/ HTTP/1.1" 401 60 - -
192.168.1.2 - - [26/Aug/2015:11:07:14 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
192.168.1.2 - admin [26/Aug/2015:11:07:18 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [26/Aug/2015:11:07:18 +0200] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - admin [26/Aug/2015:11:07:18 +0200] "POST / HTTP/1.1" 200 1403 CUPS-Get-Devices -
192.168.1.2 - admin [26/Aug/2015:11:07:18 +0200] "POST /admin/ HTTP/1.1" 200 5559 - -
192.168.1.2 - admin [26/Aug/2015:11:07:21 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [26/Aug/2015:11:07:21 +0200] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - admin [26/Aug/2015:11:07:21 +0200] "POST / HTTP/1.1" 200 1403 CUPS-Get-Devices -
192.168.1.2 - admin [26/Aug/2015:11:19:14 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [26/Aug/2015:11:19:14 +0200] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - admin [26/Aug/2015:11:19:14 +0200] "POST / HTTP/1.1" 200 1403 CUPS-Get-Devices -
192.168.1.2 - - [26/Aug/2015:11:27:38 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [26/Aug/2015:11:27:38 +0200] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
192.168.1.2 - - [26/Aug/2015:11:27:38 +0200] "POST /admin/ HTTP/1.1" 401 60 - -
192.168.1.2 - - [26/Aug/2015:11:27:38 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
192.168.1.2 - root [26/Aug/2015:11:27:42 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [26/Aug/2015:11:27:42 +0200] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - root [26/Aug/2015:11:27:42 +0200] "POST / HTTP/1.1" 200 1403 CUPS-Get-Devices -
192.168.1.2 - root [26/Aug/2015:11:27:42 +0200] "POST /admin/ HTTP/1.1" 200 5559 - -
192.168.1.2 - root [26/Aug/2015:11:27:45 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [26/Aug/2015:11:27:45 +0200] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - root [26/Aug/2015:11:27:45 +0200] "POST / HTTP/1.1" 200 1403 CUPS-Get-Devices -

/var/log/cups/error_log
E [26/Aug/2015:11:07:19 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [26/Aug/2015:11:07:19 +0200] [cups-deviced] PID 20188 (dnssd) stopped with status 1!
E [26/Aug/2015:11:07:21 +0200] SSL shutdown failed: Error in the push function.
E [26/Aug/2015:11:07:21 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [26/Aug/2015:11:07:21 +0200] [cups-deviced] PID 20209 (dnssd) stopped with status 1!
E [26/Aug/2015:11:07:23 +0200] SSL shutdown failed: Error in the push function.
E [26/Aug/2015:11:19:15 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [26/Aug/2015:11:19:15 +0200] [cups-deviced] PID 21106 (dnssd) stopped with status 1!
E [26/Aug/2015:11:19:17 +0200] SSL shutdown failed: Error in the push function.
E [26/Aug/2015:11:27:43 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [26/Aug/2015:11:27:43 +0200] [cups-deviced] PID 21202 (dnssd) stopped with status 1!
E [26/Aug/2015:11:27:45 +0200] SSL shutdown failed: Error in the push function.
E [26/Aug/2015:11:27:45 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [26/Aug/2015:11:27:45 +0200] [cups-deviced] PID 21223 (dnssd) stopped with status 1!

no USB printer

show rpm -qi | grep nethserver-avahi

i know
because i don’t have a usb printer but a network printer :stuck_out_tongue:

in Topic you do not say anything about Printer

show cat /etc/cups/printers.conf

Printer model?

it is hardly to understand with out Topic Starter comments :slight_smile:

your command don’t work :smile:

[root@server ~]# yum list installed | grep avahi
avahi-libs.x86_64 0.6.25-15.el6 @centos-base
[root@server ~]#

[root@server ~]# cat /etc/cups/printers.conf
[root@server ~]# 

but i think this file is empty if there is not a printer configurated

so configure printer from https://server:631

yes… but othing happens when i click on the button called “add printer”… this is my problem

you should clic Find printer

and Do not use Chrome it stucks on SSL and not always show AUTH prompt for CUPS. Try other browser like Firefox or Safari

“find printer” tell “no printer found” (chrome or firefox the same result)

but in /var/log/messages i found this:

Aug 27 11:06:40 server httpd-admin: [512] No Response From Server - File /usr/share/nethesis/NethServer/Tool/phpprintipp/BasicIPP.php, line 1218

Try to Add printer from Firefox , login as root to CUPS

i removed e reinstall nethserver-printers and nethserver-avahi packages… now it seems to work

1 Like

Why is everywhere 192.168.1.1 ?
Why is it so important?

A post was split to a new topic: Add network printer to CUPS