#1 Le 07/07/2016, à 19:23
- pierrepo
[résolu] CUPS, localhost:631 impossible à atteindre
Bonjour,
Le problème est résumé dans le titre.
Vu autrement : tout fonctionnait... j'avais accès à toutes mes imprimantes. Et, aujourd'hui, je m'aperçois que je ne peux plus lancer mes impressions.
Quelques infos...
« sudo service cups restart » réponds
cups stop/waiting
puis le terminal est bloqué, il me faut faire CTRL+C
« sudo /etc/init.d/cups restart »
* Restarting Common Unix Printing System cupsd
cupsd: Child exited with status 1
[fail]
« cat /var/log/cups/error_log » ne réponds rien, le fichier est vide... et il est daté du 28/06 !!!
« cat /etc/cups/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 debug
# 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
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing Off
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
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</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
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>
#
#
« dpkg --status cups »
Package: cups
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 833
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: foreign
Version: 1.7.2-0ubuntu1.7
Replaces: ghostscript-cups (<< 9.02~)
Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.16), libcups2 (= 1.7.2-0ubuntu1.7), libcupscgi1 (>= 1.4.2), libcupsimage2 (>= 1.4.0), libcupsmime1 (>= 1.4.0), libcupsppdc1 (>= 1.4.0), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), libusb-1.0-0 (>= 2:1.0.8), debconf (>= 1.2.9) | debconf-2.0, libc-bin (>= 2.13), cups-core-drivers (>= 1.7.2-0ubuntu1.7), cups-daemon (>= 1.7.2-0ubuntu1.7), poppler-utils (>= 0.12), procps, ghostscript (>= 9.02~), lsb-base (>= 3.2-14~), cups-common (>= 1.7.2-0ubuntu1.7), cups-server-common (>= 1.7.2-0ubuntu1.7), cups-client (>= 1.7.2-0ubuntu1.7), cups-ppdc, cups-filters (>= 1.0.24-3~)
Recommends: avahi-daemon, colord, cups-filters (>= 1.0.42) | foomatic-filters (>= 4.0), printer-driver-gutenprint, cups-filters (>= 1.0.36) | ghostscript-cups (>= 9.02~)
Suggests: cups-bsd, foomatic-db-compressed-ppds | foomatic-db, printer-driver-hpcups, hplip, cups-pdf, udev, smbclient
Breaks: foomatic-filters (<< 4.0), ghostscript-cups (<< 9.02~)
Conffiles:
/etc/cups/snmp.conf 55baa060a50f48f9dbb99c6eb60dc04c
Description: Common UNIX Printing System(tm) - PPD/driver support, web interface
The Common UNIX Printing System (or CUPS(tm)) is a printing system and
general replacement for lpd and the like. It supports the Internet
Printing Protocol (IPP), and has its own filtering driver model for
handling various document types.
.
This package provides the parts of CUPS which are needed for using printer
drivers.
Homepage: http://www.cups.org
Original-Maintainer: Debian Printing Team <debian-printing@lists.debian.org>
« ifconfig »
docker0 Link encap:Ethernet HWaddr 02:42:db:b3:c4:74
inet adr:172.17.0.1 Bcast:0.0.0.0 Masque:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 70:5a:0f:87:b1:29
inet adr:192.168.0.2 Bcast:192.168.0.255 Masque:255.255.255.0
adr inet6: fe80::725a:fff:fe87:b129/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Packets reçus:2454 erreurs:0 :0 overruns:0 frame:0
TX packets:2415 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
Octets reçus:1929385 (1.9 MB) Octets transmis:344910 (344.9 KB)
Interruption:20 Mémoire:c1400000-c1420000
lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:65536 Metric:1
Packets reçus:3921 erreurs:0 :0 overruns:0 frame:0
TX packets:3921 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
Octets reçus:246012 (246.0 KB) Octets transmis:246012 (246.0 KB)
Pour info, ces derniers temps, j'ai essayé (en vain) d'utiliser docker et des conteneurs... Je ne sais absolument pas si mes manips ont pu causer le désordre côté CUPS
Edit du 11/07/16 : docker fonctionne parfaitement...
Dernière modification par pierrepo (Le 12/07/2016, à 18:49)
Hors ligne
#2 Le 07/07/2016, à 19:33
- pierrepo
Re : [résolu] CUPS, localhost:631 impossible à atteindre
La commande « system-config-printer » m'ouvre cette fenêtre (à la place de la liste de mes imprimantes)
Puis, je clique sur « Se connecter » et... j'obtiens
Erreur du serveur CUPS
Une erreur s'est produite lors de l'opération CUPS : « failed to connect to server ».
Mes imprimantes, sont bien là...
« ls /etc/cups/ppd »
IMP-001.ppd IMP-101.ppd IMP-203.ppd MG2400-series.ppd Xerox.ppd
IMP-007.ppd IMP-107.ppd IMP-206.ppd PDF.ppd
Hors ligne
#3 Le 12/07/2016, à 17:55
- pierrepo
Re : [résolu] CUPS, localhost:631 impossible à atteindre
Bjr,
Bonne nouvelle : problème résolu...
Méthode : j'ai récupéré sur une ancienne configuration mon répertoire /etc/cups
Origine du problème : inconnu !
Dernière modification par pierrepo (Le 12/07/2016, à 18:48)
Hors ligne