Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 08/10/2016, à 15:07

freerom

[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/ … psberry-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

#
#
# 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...
<Location />
  Order allow,deny
  Allow @local
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow @local
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow @local
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer 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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default  

  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer 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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
#

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.

Hors ligne

#2 Le 09/10/2016, à 13:30

freerom

Re : [CUPS] problème d'impression

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/view … 5&t=148278

je vais creuser l'idée mais si vous en avez d'autres smile

Hors ligne