• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

gelöst! CUPS Problem verb. m. "CUPS Problem nach Patch"

Hallo ich hatte auch das Problem das CUPS nicht lief siehe auch http://forum.linux-club.de/viewtopic.php?f=89&t=118851&p=754150&hilit=cups#p754150

Zuerst hatte ich die Datei /etc/systemd/system/cups.socket angelegt und folgendes hineingeschrieben. WIe ich es in diesem Forum gefunden habe.

https://forums.opensuse.org/showthr...ktiv/page2?s=fab10482c5954968e9e315635452280a

Code:
[Unit]
WantedBy=sockets.target
Description=CUPS Printing Service Sockets

[Socket]
ListenStream=/var/run/cups/cups.sock
ListenStream=631
ListenDatagram=0.0.0.0:631
BindIPv6Only=ipv6-only

[Install]

Danach lief CUPS ohne manuelles anstupsen weiterhin nicht. Nachdem ich gelesen hatte das das erlauben von IPV6 helfen würde habe ich dies per Netzwerkschnittstelle von KDE aus angestellt. (Yast habe ich dementsprechend umgestellt das dies erlaubt ist) .

Danach habe ich folgendes Problem. CUPS läuft ich kann auf alle Drucker aus dem Druckmenu zugreifen. Ich kann aber weder über YaST noch per http://localhost:631 auf CUPS zugreifen. Der Druckmanager von KDE zeigt mir aber wieder CUPS und alle angeschlossenen Drucker.

Bei YaST dreht sich nur ewig lange die Sanduhr und sagt mir dann, dass die Druckerwarteschlange lehr ist obwohl 2 Druck und CUPS PDF intalliert sind.

CUPS läuft. Siehe auch folgende Ausgabe

Code:
 linux-luil:~ # ps -ef | grep cups
root      1430     1  0 10:30 ?        00:00:00 /usr/sbin/cupsd -f
root      5609  5544  0 10:37 pts/1    00:00:00 grep --color=auto cups

Ich habe inzwischen IPV6 wieder deaktiviert. CUPS läuft weiter ist aber nicht erreichbar.

Au localhost konnte ich nichts erkennen
Code:
localhost - - [03/Jan/2015:20:35:36 +0100] "POST / HTTP/1.1" 401 241 CUPS-Get-Devices successful-ok
localhost - root [03/Jan/2015:20:35:37 +0100] "POST / HTTP/1.1" 200 1433 CUPS-Get-Devices -
localhost - - [03/Jan/2015:20:35:37 +0100] "POST /printers/hp-LaserJet-1300 HTTP/1.1" 200 270 Create-Job successful-ok
localhost - - [03/Jan/2015:20:35:37 +0100] "POST /printers/hp-LaserJet-1300 HTTP/1.1" 200 1514 Send-Document successful-ok
localhost - - [03/Jan/2015:20:36:16 +0100] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - Immanuel [03/Jan/2015:20:36:16 +0100] "POST / HTTP/1.1" 403 91 CUPS-Get-Devices successful-ok
localhost - - [03/Jan/2015:20:36:16 +0100] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - root [03/Jan/2015:20:36:21 +0100] "POST / HTTP/1.1" 200 2593 CUPS-Get-Devices -
localhost - - [03/Jan/2015:20:36:31 +0100] "POST / HTTP/1.1" 200 6673727 CUPS-Get-PPDs -
localhost - root [03/Jan/2015:20:36:31 +0100] "POST / HTTP/1.1" 200 6673756 CUPS-Get-PPDs -
localhost - - [03/Jan/2015:20:40:26 +0100] "POST / HTTP/1.1" 200 566 Create-Printer-Subscriptions successful-ok
localhost - - [03/Jan/2015:20:43:55 +0100] "POST / HTTP/1.1" 200 566 Create-Printer-Subscriptions successful-ok
localhost - - [03/Jan/2015:20:49:43 +0100] "POST / HTTP/1.1" 200 156 Cancel-Subscription successful-ok
localhost - - [03/Jan/2015:20:51:00 +0100] "POST / HTTP/1.1" 401 241 CUPS-Get-Devices successful-ok
localhost - root [03/Jan/2015:20:51:00 +0100] "POST / HTTP/1.1" 200 1433 CUPS-Get-Devices -
localhost - - [03/Jan/2015:20:51:36 +0100] "POST / HTTP/1.1" 200 566 Create-Printer-Subscriptions successful-ok
localhost - - [03/Jan/2015:20:54:57 +0100] "POST / HTTP/1.1" 200 156 Cancel-Subscription successful-ok
localhost - - [03/Jan/2015:20:56:11 +0100] "POST / HTTP/1.1" 401 241 CUPS-Get-Devices successful-ok
localhost - root [03/Jan/2015:20:56:11 +0100] "POST / HTTP/1.1" 200 1433 CUPS-Get-Devices -
localhost - - [03/Jan/2015:20:57:53 +0100] "POST / HTTP/1.1" 200 566 Create-Printer-Subscriptions successful-ok
localhost - - [03/Jan/2015:20:59:06 +0100] "GET /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - Immanuel [03/Jan/2015:20:59:06 +0100] "GET /admin/conf/cupsd.conf HTTP/1.1" 403 0 - -
localhost - - [03/Jan/2015:20:59:06 +0100] "GET /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - root [03/Jan/2015:20:59:19 +0100] "GET /admin/conf/cupsd.conf HTTP/1.1" 404 0 - -
localhost - root [03/Jan/2015:20:59:19 +0100] "POST / HTTP/1.1" 200 450 Create-Printer-Subscriptions successful-ok
localhost - root [03/Jan/2015:20:59:35 +0100] "GET /admin/conf/cupsd.conf HTTP/1.1" 404 0 - -
localhost - - [03/Jan/2015:20:59:42 +0100] "GET /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - root [03/Jan/2015:20:59:49 +0100] "GET /admin/conf/cupsd.conf HTTP/1.1" 404 0 - -
localhost - root [03/Jan/2015:20:59:53 +0100] "GET /admin/conf/cupsd.conf HTTP/1.1" 404 0 - -
localhost - - [03/Jan/2015:21:00:27 +0100] "POST / HTTP/1.1" 200 152 Cancel-Subscription successful-ok
localhost - - [03/Jan/2015:21:06:38 +0100] "POST /admin/ HTTP/1.1" 401 185 Pause-Printer successful-ok
localhost - root [03/Jan/2015:21:06:38 +0100] "POST /admin/ HTTP/1.1" 200 185 Pause-Printer successful-ok
localhost - - [03/Jan/2015:21:07:05 +0100] "POST /printers/hp-LaserJet-1300 HTTP/1.1" 200 270 Create-Job successful-ok
localhost - - [03/Jan/2015:21:07:05 +0100] "POST /printers/hp-LaserJet-1300 HTTP/1.1" 200 1514 Send-Document successful-ok
localhost - - [03/Jan/2015:21:07:33 +0100] "POST / HTTP/1.1" 401 241 CUPS-Get-Devices successful-ok
localhost - root [03/Jan/2015:21:07:33 +0100] "POST / HTTP/1.1" 200 1433 CUPS-Get-Devices -
localhost - - [03/Jan/2015:21:07:34 +0100] "POST /admin/ HTTP/1.1" 401 133 Resume-Printer successful-ok
localhost - root [03/Jan/2015:21:07:34 +0100] "POST /admin/ HTTP/1.1" 200 133 Resume-Printer successful-ok
localhost - - [03/Jan/2015:21:10:12 +0100] "POST / HTTP/1.1" 200 156 Cancel-Subscription successful-ok
localhost - - [03/Jan/2015:21:11:08 +0100] "POST / HTTP/1.1" 401 241 CUPS-Get-Devices successful-ok
localhost - root [03/Jan/2015:21:11:08 +0100] "POST / HTTP/1.1" 200 1433 CUPS-Get-Devices -
localhost - - [03/Jan/2015:21:11:33 +0100] "POST / HTTP/1.1" 200 566 Create-Printer-Subscriptions successful-ok
localhost - - [03/Jan/2015:21:12:50 +0100] "POST / HTTP/1.1" 200 156 Cancel-Subscription successful-ok

Um 20:35 habe ich gestern mit IPV6 angefangen. Hat KDE irgendwie den Zugriff verstellt? Wie bekomme ich wieder auch Zugriff per http://localhost:631 und YaST?
 
Was sagt:
Code:
systemctl status cups.service

Code:
linux-luil:~ # systemctl status cups.service
cups.service - CUPS Printing Service
   Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
   Active: active (running) since Sun 2015-01-04 10:30:17 CET; 2h 6min ago
 Main PID: 1430 (cupsd)
   CGroup: /system.slice/cups.service
           └─1430 /usr/sbin/cupsd -f

Jan 04 10:30:17 linux-luil systemd[1]: Started CUPS Printing Service.
Code:
systemctl status cups.socket

Code:
systemctl status cups.socket
cups.socket - CUPS Printing Service Sockets
   Loaded: loaded (/etc/systemd/system/cups.socket; enabled)
   Active: active (running) since Sun 2015-01-04 10:30:00 CET; 2h 7min ago
   Listen: /var/run/cups/cups.sock (Stream)
           [::]:631 (Stream)
           0.0.0.0:631 (Datagram)

Jan 04 10:30:00 linux-luil systemd[1]: Starting CUPS Printing Service Sockets.
Jan 04 10:30:00 linux-luil systemd[1]: Listening on CUPS Printing Service Sockets.
 

Sauerland

Ultimate Guru
https://forums.opensuse.org/showthread.php/494781-Cannot-access-CUPS-server-after-update?p=2619989#post2619989

Der hat dort etwas anderes als Du drin......
 
Sauerland schrieb:
https://forums.opensuse.org/showthread.php/494781-Cannot-access-CUPS-server-after-update?p=2619989#post2619989

Der hat dort etwas anderes als Du drin......

Er verweis auf https://wiki.archlinux.org/index.ph...ice_does_not_start_even_though_it.27s_enabled

Wen ich aber in die /etc/cups/cupsd.conf hineinsehe finde ich folgendes

Code:
# Only listen for connections from the local machine.
Listen localhost:631
Listen /run/cups/cups.sock

Wo müsste denn ich nochmal dieses
Code:
ListenStream=0.0.0.0:631
hineinfügen? In die von mir erstellte /etc/systemd/system/cups.socket Datei?
 
Sauerland schrieb:

Löst aber leider noch nicht mein Problem

Hier meine erstellte Datei /etc/systemd/system/cups.socket mit ihrem Inhalt

Code:
[Unit]
WantedBy=sockets.target
Description=CUPS Printing Service Sockets

[Socket]
ListenStream=/var/run/cups/cups.sock
ListenStream=631
ListenDatagram=0.0.0.0:631
BindIPv6Only=ipv6-only
ListenStream=0.0.0.0:631

[Install]

wenn ich systemctl enable cups.socket eingebe dann bekomme ich dies als Inhalt

Code:
systemctl enable cups.socket
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
Diesen Inhalt habe ich aber schon vorher bekommen bevor ich IPV6 aktiviert habe.

En Neustart ergibt auch keine Änderung.
 

Sauerland

Ultimate Guru
Code:
    [Unit]
    WantedBy=sockets.target
    Description=CUPS Printing Service Sockets

    [Socket]
    ListenStream=/var/run/cups/cups.sock
    ListenStream=631
    ListenDatagram=0.0.0.0:631
    BindIPv6Only=ipv6-only
    ListenStream=0.0.0.0:631

    [Install]
Und vorsichtshalber schreiben wir es 2 mal???
Vegleiche mit der original Seite!

systemctl enable cups.socket
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
Diesen Inhalt habe ich aber schon vorher bekommen bevor ich IPV6 aktiviert habe.
Das kommt daher, wenn man nicht genau liest und nicht genau ausführt, was andere schreiben.
Steht auch übrigens dort, was Du nicht gemacht hast. Vergleiche.
 
Ok danke für den Hinweis. :blush: Da habe ich eine Zeile nicht mit übernommen. Damit bin ich schon mal wieder etwas weiter, aber leider noch nicht am Ziel.

Wenn ich systemctl status sups.socket eingebe bekomme ich folgende Ausgabe
Code:
systemctl status cups.socket
cups.socket - CUPS Printing Service Sockets
   Loaded: loaded (/etc/systemd/system/cups.socket; enabled)
   Active: active (running) since So 2015-01-04 17:35:45 CET; 4min 29s ago
   Listen: /var/run/cups/cups.sock (Stream)
           [::]:631 (Stream)
           0.0.0.0:631 (Datagram)

Jan 04 17:35:45 linux-luil systemd[1]: Starting CUPS Printing Service Sockets.
Jan 04 17:35:45 linux-luil systemd[1]: Listening on CUPS Printing Service Sockets.

Leider reagiert er auf ein http://localhost:631 weiterhin nicht.
 
Jägerschlürfer schrieb:
funktioniert es, wenn du cups über diese Adresse aufrufst?

http://127.0.0.1:631

Ja, super. :D Jetzt klappt es. Das yast nicht will, damit kann ich leben. Damit kann ich es als gelöst markieren. Danke an alle, die mir weiter geholfen haben.
 
Oben