• 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 lässt sich nicht mehr starten!

diethn16

Newbie
Hallo,
ich hatte meinen neuen Drucker, einen Brother DCP-195C mit Yast installiert. Als ich meinen vorherigen Drucker mit Yast löschte, ließ sich Cups nicht mehr starten und es ist auch nicht über den Runlevel-Editor möglich. Es kommen folgende Fehlermeldungen: "Der Neustart des Cups-Daemons schlug fehl." Wenn ich dann die "Details" aufrufe, ist das Feld leer. Drücke ich auf "OK", kommt eine neue Fehlermeldung: "Ein lokal ausgeführter Cups-Daemon ist erforderlich, der Zugriff darauf scheint aber nicht möglich zu sein. Prüfen Sie mit 'lpstat -h localhost -r' ob ein lokaler cupsd verfügbar ist. Wenn kein Zugriff auf einen cupsd möglich ist, führt dies zu einer unendlichen Folge weiterer Fehler." Details... /usr/bin/lpstat. unable to connect to server. Drücke ich auf "OK" kommt als Antwort "Es gibt keine Druckerwarteschlange!" http://localhost:631 lässt sich auch nicht mehr starten. Wie komme ich aus diesem Teufelskreis raus?
Ist es möglich, über die CD OpenSuse 11.2 64 bit, im Reparaturmodus, den Fehler zu beheben?
Dieter
 

HBtux

Member
Versuche mal in einer Konsole folgenden Befehl...
Code:
/etc/init.d/cups restart
Kommt beim Ausführen dieses Befehl eine Fehlermeldung?

Hast Du schon mal in den Logfiles unter /var/log/cups/.... geschaut.....?

Die Konfigfiles für CUPS findest Du in dem Verzeichnis /etc/cups/
 
OP
D

diethn16

Newbie
Hallo hbtux,
beim "restart" kommt folgende Fehlermeldung:

linux-f422:~ # /etc/init.d/cups restart
Shutting down cupsd done
Starting cupsdcupsd: Unknown argument "sane" - aborting!
Usage: cupsd [-c config-file] [-f] [-F] [-h] [-l] [-P]

-c config-file Load alternate configuration file
-f Run in the foreground
-F Run in the foreground but detach
-h Show this usage message
-l Run cupsd from launchd(8)
-P Generate ppds.dat and exit
startproc: exit status of parent of /usr/sbin/cupsd: 1
failed

In /var/log/cups ist nichts niedergeschrieben, obwohl ich unter /etc/cups/cupsd.conf die Zeile LogLevel info auf debug geändert habe.

Kannst Du etwas damit anfangen?

Dieter
 
OP
D

diethn16

Newbie
Hallo Misiu,
hier die /etc/cups/cupsd.conf
Dieter
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug

# Administrator user group...
SystemGroup sys root


# 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 On
BrowseOrder allow,deny
BrowseAllow none
BrowseDeny all

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
Order allow,deny
Allow 127.0.0.2
</Location>

# Restrict access to the admin pages...
<Location /admin>
Encryption Required
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-related operations must be done by the owner or an administrator...
<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 CUPS-Move-Job>
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 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>

DefaultPolicy default

# easy is a very relaxed policy
<Policy easy>
# Job-related operations must be done by the owner or an administrator...
<Limit All>
Satisfy any
Order allow,deny
</Limit>
</Policy>

# paranoid is a very restricted policy
<Policy paranoid>
# Job-related operations must be done by the owner
<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 CUPS-Move-Job>
Require user @OWNER
Allow from 127.0.0.0/8
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
Allow from 127.0.0.0/8
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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Allow from 127.0.0.0/8
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
Allow from 127.0.0.0/8
Order deny,allow
</Limit>

<Limit All>
Require user @OWNER @SYSTEM
Allow from 127.0.0.0/8
Order deny,allow
</Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
#
# 2010-04-01,16:17:13 modify_cupsd_conf BrowseAllow none
 

HBtux

Member
Poste mal den Inhalt von /etc/sysconfig/cups

Ist dort vielleicht noch ein Parameter unter CUPSD_OPTIONS="" gesetzt....?
 
OP
D

diethn16

Newbie
Hallo hbtux,
ich habe dort nichts eingesetzt. Wie muss ich die CUPSD_OPTIONS ändern, dass ich wieder den Drucker einstellen kann?

## Path: System/Printing/CUPS
## Description: Cups options
## Type: string
## Default: cups
## ServiceReload: cups
## ServiceRestart: cups
#
IDENT="cups"
## Type: string
## Default: "CUPS printer daemon"
DESCRIPTIVE="CUPS printer daemon"
## Type: string
## Default: ""
#
# change CUPSD_OPTIONS for arguments of start of cupsd
# e.g. CUPSD_OPTIONS="-c /etc/cups/cupsd.conf"
CUPSD_OPTIONS="sane"

Vielen Dank für die Hilfe im vorraus,
Dieter
 
OP
D

diethn16

Newbie
Hallo hbtux, hallo longman, ihr hattet Recht mit dem Eintrag "sane"! nachdem ich den Eintrag gelöscht hatte, war der Drucker zu erreichen und das Internet-Frontend funktioniert auch wieder. Ich hatte aus irgendeinem Anlass, ich meine in Verbindung mit dem Einrichten des Scanners, "SuSEconfig" durchlaufen lassen. Ob dieses Tool eventuell den Fehler verursacht hat?
Nochmals vielen Dank,
Dieter
 
Oben