A dire il vero ce l'ho su Debian Jessie, ma essendo che ubuntu è una derivata ho pensato che andasse bene scrivere anche qui
Quindi, spero di non essere troppo invasivo chiedendo un aiuto su Debian in questo forum, anche perchè sto usando ancora ubuntu ma volevo provare anche debian.
Veniamo al problema...
Premetto che da subito la stampa ha sempre funzionato bene, poi (senza mai aver fatto nessun aggiornamento) ha iniziato a dare alcuni errori durante le stampe fino ad arrivare ad oggi dove non si riesce a fare più nessuna stampa.
Avendo configurato la stampante tramite il pannello di controllo di cinnamon ho deciso di cancellarla e riconfigurarla tramite cups.
Sorpresa sorpresa, localhost:631, 127.0.0.1:631, 192.168.0.98:631 (ip del mio PC) non riescono ad accedere a cups, come se il servizio non esistesse.
Provo quindi con telnet ma dietro alla porta 631 non c'è nessuno ad aspettare la chiamata
- Provo a vedere se il demone è attivo con ps aux | grep cups e sembra tutto ok, trovando nei demoni attivi sia cups che cups-browsed.
- Provo quindi ad arrestare e far ripartire i due servizi che sembrano ripartire senza errori, ma il problema non si risolve.
- Provo a rimuovere cups e cups-browsed con un bel purge e successivamente a reinstallarli ma niente da fare
- Provo a prendere il file cupsd.conf di ubuntu e a metterlo al posto di quello di debian (che non mi convinceva molto) et voilà, finalmente riesco ad accedere
- Configuro la stampante e faccio una stampa ma la prima va a buon fine e la seconda mi riporta un errore backend /usr/lib/cups/backend hp does not exist
Dopo svariate ricerche riesco a far sparire questo errore e riesco a fare una stampa, ma la seconda già non va ancora.
Ora mi trovo con l'errore "filter failed", però dopo mezza giornata di prove getto la spugna e chiedo aiuto.
La stampante è una HP LaserJet P2015 collegata in rete.
Se lancio una stampa, su /var/log/cups/error_log trovo per ogni singola stampa un pacco di errori infinito.
Questi sono gli errori riportati per una singola stampa (con loglevel=debug)
Codice: Seleziona tutto
D [28/Nov/2016:18:26:40 +0100] [Client 14] Sending file.
****** Queste righe sono ripetute per centinaia di volte ******
D [28/Nov/2016:18:26:40 +0100] cupsd is not idle any more, canceling shutdown.
D [28/Nov/2016:18:26:40 +0100] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=39318, response=(nil)(), pipe_pid=0, file=16
*********************************************************
D [28/Nov/2016:18:26:40 +0100] [Client 14] Waiting for request.
D [28/Nov/2016:18:26:40 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [28/Nov/2016:18:26:40 +0100] cupsd is not idle any more, canceling shutdown.
D [28/Nov/2016:18:26:40 +0100] [Client 15] POST / HTTP/1.1
D [28/Nov/2016:18:26:40 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [28/Nov/2016:18:26:40 +0100] [Client 15] No authentication data provided.
D [28/Nov/2016:18:26:40 +0100] [Client 15] 2.0 Get-Jobs 76
D [28/Nov/2016:18:26:40 +0100] Get-Jobs ipp://localhost/printers/
D [28/Nov/2016:18:26:40 +0100] [Job 57] Loading attributes...
D [28/Nov/2016:18:26:40 +0100] [Client 15] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [28/Nov/2016:18:26:40 +0100] [Client 15] Content-Length: 185
D [28/Nov/2016:18:26:40 +0100] cupsd is not idle any more, canceling shutdown.
D [28/Nov/2016:18:26:40 +0100] [Client 15] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=185, response=0x7ff4d453c090(IPP_IDLE), pipe_pid=0, file=-1
D [28/Nov/2016:18:26:40 +0100] [Client 15] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
D [28/Nov/2016:18:26:40 +0100] [Client 15] bytes=0, http_state=0, data_remaining=0
D [28/Nov/2016:18:26:40 +0100] [Client 15] Waiting for request.
D [28/Nov/2016:18:26:40 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [28/Nov/2016:18:26:40 +0100] cupsd is not idle any more, canceling shutdown.
D [28/Nov/2016:18:26:40 +0100] [Client 15] POST / HTTP/1.1
D [28/Nov/2016:18:26:40 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [28/Nov/2016:18:26:40 +0100] [Client 15] No authentication data provided.
D [28/Nov/2016:18:26:40 +0100] [Client 15] 2.0 Get-Jobs 77
D [28/Nov/2016:18:26:40 +0100] Get-Jobs ipp://localhost/printers/
D [28/Nov/2016:18:26:40 +0100] [Job 56] Loading attributes...
D [28/Nov/2016:18:26:40 +0100] [Job 55] Loading attributes...
D [28/Nov/2016:18:26:40 +0100] [Job 54] Loading attributes...
D [28/Nov/2016:18:26:40 +0100] [Job 53] Loading attributes...
D [28/Nov/2016:18:26:40 +0100] [Job 52] Loading attributes...
D [28/Nov/2016:18:26:40 +0100] [Job 50] Loading attributes...
D [28/Nov/2016:18:26:40 +0100] [Job 51] Loading attributes...
D [28/Nov/2016:18:26:40 +0100] [Client 15] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost
D [28/Nov/2016:18:26:40 +0100] [Client 15] Content-Length: 845
D [28/Nov/2016:18:26:40 +0100] cupsd is not idle any more, canceling shutdown.
D [28/Nov/2016:18:26:40 +0100] [Client 15] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=845, response=0x7ff4d454d5b0(IPP_IDLE), pipe_pid=0, file=-1
D [28/Nov/2016:18:26:40 +0100] [Client 15] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
D [28/Nov/2016:18:26:40 +0100] [Client 15] bytes=0, http_state=0, data_remaining=0
D [28/Nov/2016:18:26:40 +0100] [Client 15] Waiting for request.
D [28/Nov/2016:18:26:40 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [28/Nov/2016:18:26:40 +0100] cupsd is not idle any more, canceling shutdown.
D [28/Nov/2016:18:26:40 +0100] [Client 14] PUT /admin/conf/cupsd.conf HTTP/1.1
D [28/Nov/2016:18:26:40 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [28/Nov/2016:18:26:40 +0100] [Client 14] Authorized as root using PeerCred
D [28/Nov/2016:18:26:40 +0100] cupsdIsAuthorized: username="root"
D [28/Nov/2016:18:26:40 +0100] cupsd is not idle any more, canceling shutdown.
I [28/Nov/2016:18:26:40 +0100] Installing config file "/etc/cups/cupsd.conf"...
D [28/Nov/2016:18:26:40 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [28/Nov/2016:18:26:40 +0100] [Client 14] Closing connection.
D [28/Nov/2016:18:26:40 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [28/Nov/2016:18:26:40 +0100] [Client 15] Closing connection.
D [28/Nov/2016:18:26:40 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
I [28/Nov/2016:18:26:40 +0100] Generating printcap /var/run/cups/printcap...
D [28/Nov/2016:18:26:40 +0100] cupsdSetBusyState: newbusy="Not busy", busy="Dirty files"
W [28/Nov/2016:18:26:40 +0100] Duplicate listen address "/var/run/cups/cups.sock" ignored.
E [28/Nov/2016:18:26:40 +0100] Unknown directive JobPrivateAccess on line 84 of /etc/cups/cupsd.conf.
E [28/Nov/2016:18:26:40 +0100] Unknown directive JobPrivateValues on line 85 of /etc/cups/cupsd.conf.
E [28/Nov/2016:18:26:40 +0100] Unknown directive SubscriptionPrivateAccess on line 86 of /etc/cups/cupsd.conf.
E [28/Nov/2016:18:26:40 +0100] Unknown directive SubscriptionPrivateValues on line 87 of /etc/cups/cupsd.conf.
W [28/Nov/2016:18:26:40 +0100] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'HP_HP_LaserJet_P2015_Series-Gray..' already exists
Codice: Seleziona tutto
E [28/Nov/2016:18:26:40 +0100] Unknown directive JobPrivateAccess on line 84 of /etc/cups/cupsd.conf.
E [28/Nov/2016:18:26:40 +0100] Unknown directive JobPrivateValues on line 85 of /etc/cups/cupsd.conf.
E [28/Nov/2016:18:26:40 +0100] Unknown directive SubscriptionPrivateAccess on line 86 of /etc/cups/cupsd.conf.
E [28/Nov/2016:18:26:40 +0100] Unknown directive SubscriptionPrivateValues on line 87 of /etc/cups/cupsd.conf.
Poi, nel log con Loglevel=warn sono apparse anche queste righe che però non vedo nella versione con loglevel=debug:
Codice: Seleziona tutto
D [28/Nov/2016:18:20:26 +0100] [Job 56] PID 8214 (gs) crashed on signal 11!
D [28/Nov/2016:18:20:26 +0100] [Job 56] PID 8215 (pstops) stopped with status 1!
Stefano
