[CUPS] problème d'impression

Bonjour,

je me sers d’un raspberry pi 3 + raspbian jessie sur lequel j’ai configuré une imprimante laser Brother.
Le but à la base étant de rendre compatible AirPrint cette imprimante.

j’ai suivi ce tuto:
http://www.supinfo.com/articles/single/744-creer-serveur-impression-compatible-airprint-avec-une-rapsberry-pi

tout semble ok car l’imprimante est bien visible depuis la page d’administration de CUPS et je vois l’imprimante depuis mon
iphone et mon macbook mais si je lance une page de test ou bien l’impression d’une photo, rien ne se passe, l’imprimante
n’imprime rien alors que je vois les travaux terminés dans la file d’impression depuis la page d’administration de CUPS.
Je n’ai aucun retour d’erreurs ou tout du moins il faut peut être regarde dans un log mais je ne sais pas trop ou chercher.

Voici mon fichier cupsd.conf

[code]#

Sample configuration file for the CUPS scheduler. See “man cupsd.conf” for a

complete description of this file.

Log general information in error_log - change “warn” to “debug”

for troubleshooting…

LogLevel warn

Deactivate CUPS’ internal logrotating, as we provide a better one, especially

LogLevel debug2 gets usable now

MaxLogSize 0

Only listen for connections from the local machine.

Listen localhost:631

Port 631

Listen /var/run/cups/cups.sock

Show shared printers on the local network.

Browsing On
BrowseLocalProtocols dnssd

Default authentication type, when authentication is required…

DefaultAuthType Basic

Web interface setting…

WebInterface Yes

Restrict access to the server…

Order allow,deny Allow @local

Restrict access to the admin pages…

<Location /admin>
Order allow,deny
Allow @local

Restrict access to configuration files…

<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @local

Set the default printer/job policies…

# Job/subscription privacy... JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default

Job-related operations must be done by the owner or an administrator…

Order deny,allow Require user @OWNER @SYSTEM Order deny,allow

All administration operations require an administrator to authenticate…

AuthType Default Require user @SYSTEM Order deny,allow

All printer operations require a printer operator to authenticate…

AuthType Default Require user @SYSTEM Order deny,allow

Only the owner or an administrator can cancel or authenticate a job…

Require user @OWNER @SYSTEM Order deny,allow Order deny,allow

Set the authenticated printer/job policies…

# Job/subscription privacy... JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default

Job-related operations must be done by the owner or an administrator…

AuthType Default Order deny,allow AuthType Default Require user @OWNER @SYSTEM Order deny,allow

All administration operations require an administrator to authenticate…

AuthType Default AuthType Default Require user @SYSTEM Order deny,allow

All printer operations require a printer operator to authenticate…

AuthType Default Require user @SYSTEM Order deny,allow

Only the owner or an administrator can cancel or authenticate a job…

AuthType Default Require user @OWNER @SYSTEM Order deny,allow Order deny,allow

#[/code]

J’ai pensé à contrôler si j’avais un loopback bien configuré:

127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.1.1 raspberrypi

Je ne sais pas trop par ou commencer et si vous aviez une piste pour trouver une solution.

Salut
Tu peux verifier le contenu des logs cups depuis son interface web

http://localhost:631/admin

celui des erreurs

http://localhost:631/admin/log/error_log?

que les jobs sont zffectivement terminés

http://localhost:631/jobs?which_jobs=completed

Les logs ne renvoient rien de particulier comme erreur.
De ce que je lis un peu partout, il ne faut pas que l’imprimante soit connectée lors de l’installation des pilotes et dans le tuto que j’ai suivi ils font l’inverse.

Je vais reprendre l’installation de mes pilotes et je reviendrai vers vous.

bonjour,

j’ai repris à zéro toute l’installation hier de CUPS ainsi que des pilotes brother en utilisant leur script qui m’a installé 4 pilotes dont le scanner et un truc nommé “cupswrapper” sans brancher l’imprimante.

Aujourd’hui j’ai branché l’imprimante et je l’ai ajoutée via la page de config CUPS.

Le problème est toujours le même, à savoir que l’imprimante n’imprime pas.

D’après la page CUPS, j’ai deux imprimantes de configurées. Une installée hier (que j’appellerai Print1) avec les pilotes et une aujourd’hui (Print2) suite au branchement de l’imprimante.

Si je lance une page de test sur Print1 installée hier, j’ai cette info dans l’état:

En cours d'impression - "Waiting for printer to become available."

Concernant Print2, une page de test renvoie que le job est:

terminé à Sun Oct 9 12:36:39 2016

voici le acces log:

localhost - - [08/Oct/2016:17:26:04 +0200] "POST / HTTP/1.1" 200 658884 CUPS-Get-PPDs - localhost - - [08/Oct/2016:17:26:10 +0200] "POST /admin/ HTTP/1.1" 401 243 CUPS-Add-Modify-Printer successful-ok localhost - root [08/Oct/2016:17:26:10 +0200] "POST /admin/ HTTP/1.1" 200 243 CUPS-Add-Modify-Printer successful-ok localhost - - [08/Oct/2016:17:26:30 +0200] "POST /admin/ HTTP/1.1" 401 148 Resume-Printer successful-ok localhost - root [08/Oct/2016:17:26:30 +0200] "POST /admin/ HTTP/1.1" 200 148 Resume-Printer successful-ok localhost - - [08/Oct/2016:17:26:30 +0200] "POST /admin/ HTTP/1.1" 401 148 CUPS-Accept-Jobs successful-ok localhost - root [08/Oct/2016:17:26:30 +0200] "POST /admin/ HTTP/1.1" 200 148 CUPS-Accept-Jobs successful-ok localhost - - [08/Oct/2016:17:26:30 +0200] "POST /admin/ HTTP/1.1" 401 148 CUPS-Set-Default successful-ok localhost - root [08/Oct/2016:17:26:30 +0200] "POST /admin/ HTTP/1.1" 200 148 CUPS-Set-Default successful-ok localhost - - [08/Oct/2016:18:03:05 +0200] "POST / HTTP/1.1" 401 75 CUPS-Get-Devices successful-ok localhost - root [08/Oct/2016:18:03:05 +0200] "POST / HTTP/1.1" 200 1644 CUPS-Get-Devices - localhost - - [08/Oct/2016:18:03:08 +0200] "POST /admin/ HTTP/1.1" 401 212 CUPS-Add-Modify-Printer successful-ok localhost - root [08/Oct/2016:18:03:08 +0200] "POST /admin/ HTTP/1.1" 200 212 CUPS-Add-Modify-Printer successful-ok localhost - root [08/Oct/2016:18:03:08 +0200] "POST /admin/ HTTP/1.1" 200 15208 CUPS-Add-Modify-Printer successful-ok localhost - - [08/Oct/2016:18:03:12 +0200] "POST / HTTP/1.1" 401 75 CUPS-Get-Devices successful-ok localhost - root [08/Oct/2016:18:03:12 +0200] "POST / HTTP/1.1" 200 1644 CUPS-Get-Devices - localhost - - [08/Oct/2016:18:06:16 +0200] "POST /admin/ HTTP/1.1" 401 154 CUPS-Delete-Printer successful-ok localhost - root [08/Oct/2016:18:06:16 +0200] "POST /admin/ HTTP/1.1" 200 154 CUPS-Delete-Printer successful-ok localhost - - [08/Oct/2016:18:06:21 +0200] "POST / HTTP/1.1" 401 75 CUPS-Get-Devices successful-ok localhost - root [08/Oct/2016:18:06:21 +0200] "POST / HTTP/1.1" 200 1644 CUPS-Get-Devices - localhost - - [08/Oct/2016:18:06:23 +0200] "POST /admin/ HTTP/1.1" 401 212 CUPS-Add-Modify-Printer successful-ok localhost - root [08/Oct/2016:18:06:24 +0200] "POST /admin/ HTTP/1.1" 200 212 CUPS-Add-Modify-Printer successful-ok localhost - root [08/Oct/2016:18:06:24 +0200] "POST /admin/ HTTP/1.1" 200 15208 CUPS-Add-Modify-Printer successful-ok 192.168.0.12 - - [09/Oct/2016:12:34:19 +0200] "POST /admin/ HTTP/1.1" 200 60 - - localhost - - [09/Oct/2016:12:34:19 +0200] "POST / HTTP/1.1" 401 88 CUPS-Get-Devices successful-ok 192.168.0.12 - - [09/Oct/2016:12:34:19 +0200] "POST /admin/ HTTP/1.1" 401 60 - - 192.168.0.12 - - [09/Oct/2016:12:34:19 +0200] "POST /admin/ HTTP/1.1" 200 60 - - 192.168.0.12 - pi [09/Oct/2016:12:34:22 +0200] "POST /admin/ HTTP/1.1" 200 60 - - localhost - - [09/Oct/2016:12:34:22 +0200] "POST / HTTP/1.1" 401 88 CUPS-Get-Devices successful-ok localhost - pi [09/Oct/2016:12:34:22 +0200] "POST / HTTP/1.1" 200 1960 CUPS-Get-Devices - 192.168.0.12 - pi [09/Oct/2016:12:34:22 +0200] "POST /admin/ HTTP/1.1" 200 3441 - - 192.168.0.12 - - [09/Oct/2016:12:34:30 +0200] "POST /admin HTTP/1.1" 200 170 - - 192.168.0.12 - - [09/Oct/2016:12:34:30 +0200] "POST /admin HTTP/1.1" 200 3627 - - 192.168.0.12 - - [09/Oct/2016:12:34:55 +0200] "POST /admin HTTP/1.1" 200 356 - - localhost - - [09/Oct/2016:12:34:55 +0200] "POST / HTTP/1.1" 200 13339 CUPS-Get-PPDs - 192.168.0.12 - - [09/Oct/2016:12:34:55 +0200] "POST /admin HTTP/1.1" 200 8710 - - 192.168.0.12 - - [09/Oct/2016:12:35:13 +0200] "POST /admin HTTP/1.1" 200 1786 - - localhost - - [09/Oct/2016:12:35:13 +0200] "POST /admin/ HTTP/1.1" 401 388 CUPS-Add-Modify-Printer successful-ok 192.168.0.12 - - [09/Oct/2016:12:35:13 +0200] "POST /admin HTTP/1.1" 401 1786 - - 192.168.0.12 - - [09/Oct/2016:12:35:13 +0200] "POST /admin HTTP/1.1" 200 1786 - - 192.168.0.12 - pi [09/Oct/2016:12:35:14 +0200] "POST /admin HTTP/1.1" 200 1786 - - localhost - - [09/Oct/2016:12:35:14 +0200] "POST /admin/ HTTP/1.1" 401 388 CUPS-Add-Modify-Printer successful-ok localhost - pi [09/Oct/2016:12:35:14 +0200] "POST /admin/ HTTP/1.1" 200 388 CUPS-Add-Modify-Printer successful-ok 192.168.0.12 - pi [09/Oct/2016:12:35:14 +0200] "POST /admin HTTP/1.1" 200 11130 - - 192.168.0.12 - pi [09/Oct/2016:12:35:26 +0200] "POST /admin HTTP/1.1" 200 450 - - localhost - - [09/Oct/2016:12:35:26 +0200] "POST /printers/Brother_DCP-L2500D_series HTTP/1.1" 200 228 Create-Job successful-ok localhost - - [09/Oct/2016:12:35:26 +0200] "POST /printers/Brother_DCP-L2500D_series HTTP/1.1" 200 279 Send-Document successful-ok 192.168.0.12 - pi [09/Oct/2016:12:35:26 +0200] "POST /admin HTTP/1.1" 200 2450 - - localhost - - [09/Oct/2016:12:36:37 +0200] "POST /printers/Brother_DCP-L2500D_series HTTP/1.1" 200 425 Print-Job successful-ok 192.168.0.12 - pi [09/Oct/2016:12:36:58 +0200] "POST /admin/ HTTP/1.1" 200 62 - - 192.168.0.12 - pi [09/Oct/2016:12:36:58 +0200] "POST /admin/ HTTP/1.1" 200 11941 - - 192.168.0.12 - pi [09/Oct/2016:12:37:06 +0200] "GET /admin/log/access_log HTTP/1.1" 200 5027 - - 192.168.0.12 - pi [09/Oct/2016:12:37:50 +0200] "GET /admin/log/error_log HTTP/1.1" 200 1143 - - 192.168.0.12 - pi [09/Oct/2016:12:38:10 +0200] "GET /admin/log/page_log HTTP/1.1" 200 0 - - localhost - - [09/Oct/2016:12:39:15 +0200] "POST /printers/DCPL2500D HTTP/1.1" 200 409 Print-Job successful-ok 192.168.0.12 - pi [09/Oct/2016:12:39:50 +0200] "GET /admin/log/access_log HTTP/1.1" 200 5423 - - 192.168.0.12 - pi [09/Oct/2016:12:41:08 +0200] "GET /admin/log/access_log HTTP/1.1" 200 5520 - -

et le error log qui renvoie une erreur avahi-daemon:

W [08/Oct/2016:17:26:20 +0200] CreateProfile failed: org.freedesktop.DBus.Error.NoReply:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. W [08/Oct/2016:17:26:25 +0200] CreateProfile failed: org.freedesktop.DBus.Error.NoReply:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. W [08/Oct/2016:17:26:30 +0200] CreateDevice failed: org.freedesktop.DBus.Error.NoReply:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. W [08/Oct/2016:18:06:24 +0200] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id 'DCPL2500D-Gray..' already exists E [08/Oct/2016:19:05:53 +0200] Unable to communicate with avahi-daemon: An unexpected D-Bus error occured

Après avoir recherché vite fait cette erreur avahi, le soucis serait que les pilotes brother sont pour x86 only et closed source. Voir ici:

https://www.raspberrypi.org/forums/viewtopic.php?f=65&t=148278

je vais creuser l’idée mais si vous en avez d’autres :slight_smile:

Les pilotes "gutenprint "

https://packages.debian.org/sid/printer-driver-gutenprint

installés sans les pilotes Brother ne suffisent pas a faire fonctionner l’imprimante?