Problemi con Cups dopo l'aggiornamento (sid)
Salve a tutti,
da ieri non riesco più a stampare dopo l'aggiornamento di cups che è
installato su un server locale. Non stampa ne da client (sia winzozz che
linux) ne da server. Sembra essere cambiato il sistema di gestione del file
cupsd.conf che non è più un unico file ma ha alcune sue parti nella
cartella /etc/cups/cups.d/. Ho spostato il vecchio cupsd.conf in altro loco
e "credo" di aver aggiustato il nuovo con impostazioni equivalenti alle
vecchie. Qualcun'altro ha avuto problemi simili e li ha eventualmente
risolti?
Ecco parte di access_log
192.168.0.3 - - [06/Jun/2006:19:05:05 +0200] "GET /printers/BJC_4550
HTTP/1.1" 200 7910 - -
192.168.0.3 - - [06/Jun/2006:19:05:06
+0200] "GET /images/button-cancel-job.gif HTTP/1.1" 200 474 - -
192.168.0.3 - - [06/Jun/2006:19:05:07
+0200] "GET /images/button-move-job.gif HTTP/1.1" 200 463 - -
192.168.0.3 - - [06/Jun/2006:19:05:08
+0200] "GET /images/button-show-completed.gif HTTP/1.1" 200 764 - -
192.168.0.3 - - [06/Jun/2006:19:05:08
+0200] "GET /images/button-show-all.gif HTTP/1.1" 200 570 - -
192.168.0.3 - - [06/Jun/2006:19:05:08
+0200] "GET /images/button-restart-job.gif HTTP/1.1" 200 493 - -
localhost - - [06/Jun/2006:19:11:08 +0200] "GET / HTTP/1.1" 200 5725 - -
localhost - - [06/Jun/2006:19:11:17 +0200] "GET /printers/ HTTP/1.1" 200
0 - -
localhost - - [06/Jun/2006:19:11:17 +0200] "GET /printers/ HTTP/1.1" 200
8784 - -
localhost - - [06/Jun/2006:19:11:56
+0200] "GET /admin/?op=start-printer&printer_name=ML-1710 HTTP/1.1" 200
0 - -
localhost - - [06/Jun/2006:19:11:56 +0200] "POST /admin/ HTTP/1.1" 401 120
Resume-Printer successful-ok
localhost - - [06/Jun/2006:19:11:56
+0200] "GET /admin/?op=start-printer&printer_name=ML-1710 HTTP/1.1" 401
0 - -
localhost - - [06/Jun/2006:19:11:56
+0200] "GET /admin/?op=start-printer&printer_name=ML-1710 HTTP/1.1" 200
0 - -
localhost - root [06/Jun/2006:19:12:13
+0200] "GET /admin/?op=start-printer&printer_name=ML-1710 HTTP/1.1" 200
0 - -
localhost - - [06/Jun/2006:19:12:13 +0200] "POST /admin/ HTTP/1.1" 401 120
Resume-Printer successful-ok
localhost - root [06/Jun/2006:19:12:14 +0200] "POST /admin/ HTTP/1.1" 200
120 Resume-Printer successful-ok
localhost - root [06/Jun/2006:19:12:13
+0200] "GET /admin/?op=start-printer&printer_name=ML-1710 HTTP/1.1" 200
3466 - -
localhost - - [06/Jun/2006:19:12:29
+0200] "GET /printers/ML-1710?op=print-test-page HTTP/1.1" 200 0 - -
localhost - - [06/Jun/2006:19:12:29 +0200] "POST /printers/ML-1710 HTTP/1.1"
200 18820 - successful-ok
questo invece è error_log:
E [06/Jun/2006:18:58:55 +0200] Resume-Printer: Unauthorized
E [06/Jun/2006:19:05:02 +0200] encrypt_client: Unable to encrypt connection
from 192.168.0.3!
E [06/Jun/2006:19:05:02 +0200] encrypt_client: Error in the push function.
E [06/Jun/2006:19:05:05 +0200] PID 14894 (/usr/lib/cups/filter/foomatic-rip)
stopped with status 1!
I [06/Jun/2006:19:09:20 +0200] Listening to :::631 (IPv6)
I [06/Jun/2006:19:09:20 +0200] Listening to 0.0.0.0:631 (IPv4)
D [06/Jun/2006:19:09:20 +0200] cupsdDenyIP(loc=0x80a10c8(/),
address=0:0:0:0, netmask=0:0:0:0)
E [06/Jun/2006:19:09:20 +0200] Bad netmask value 192.168.0.* on line 772.
E [06/Jun/2006:19:09:20 +0200] Unknown Location directive Allow on line 772.
E [06/Jun/2006:19:11:56 +0200] Resume-Printer: Unauthorized
E [06/Jun/2006:19:12:13 +0200] Resume-Printer: Unauthorized
E [06/Jun/2006:19:12:14 +0200] PID 15004 (/usr/lib/cups/backend/usb) stopped
with status 1!
E [06/Jun/2006:19:12:14 +0200] [Job 378] Unable to open USB
device "usb:/dev/usb/lp0": Success
E [06/Jun/2006:19:13:10 +0200] PID 15011 (/usr/lib/cups/filter/foomatic-rip)
stopped with status 1!
E [06/Jun/2006:19:15:15 +0200] PID 15026 (/usr/lib/cups/filter/foomatic-rip)
stopped with status 1!
E [06/Jun/2006:19:18:51 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [06/Jun/2006:19:18:59 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [06/Jun/2006:19:19:50 +0200] CUPS-Set-Default: Unauthorized
Sembra evidente che si tratta di un problema di permessi, questo è
cupsd.conf:
LogLevel warning
SystemGroup lpadmin
BrowseOrder allow,deny
BrowseAllow @IF(eth0)
BrowseAllow @LOCAL
BrowseAddress @IF(eth0)
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
Order allow,deny
Allow From localhost
Allow From 192.168.0.0/24
</Location>
<Location /admin>
# Encryption Required
Order allow,deny
Allow From localhost
Allow From 192.168.0.0/24
</Location>
<Location /admin/conf>
AuthType Basic
# Require user @SYSTEM
Order allow,deny
Allow From localhost
Allow From 192.168.0.0/24
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs
Set-Job-Attributes Create-Job-Subscription Renew-Subscription
Cancel-Subscription Get-Notification Reprocess-Job Cancel-Current-Job
Suspend-Current-Job Resume-Job CUPS-Move-Job>
# Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer
Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs
Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer
Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After
CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class
CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
# Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
# Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
Include /etc/cups/cups.d/ports.conf
Include /etc/cups/cups.d/browse.conf
Negli errori mi dice bad mask alla linea 772 che non esiste nel file
cupsd.conf in quanto più corto e non è più in quella forma(era presente nel
vecchio file cupsd.conf che ora però è stato rinominato) non capisco dove lo
vada a pescare. Si dice incapace di aprire la porta USB anche se prima aveva
sempre funzionato e infine mi da un errore non ben definito in
foomatics-rip. Idee?
--
Ciao GiPaX
Reply to: