Cups über Samba - Probleme mit Druck

Einrichten des Druckers und des Drucksystems, Scannerkonfiguration und Software zum Scannen und Faxen.
Antworten
trfr3ak
Beiträge: 8
Registriert: 24.09.2012 13:09:47

Cups über Samba - Probleme mit Druck

Beitrag von trfr3ak » 02.10.2012 18:54:55

Hallo,
ich bin die letzten Tage verzweifelt am Einrichten eines Printservers via Cups und Samba.
Mein Problem:
Mit Hilfe des Cups Web-Interfaces kann ich Testseiten drucken,
drucke ich jedoch an einem Windows-Clienten wird der Auftrag als fertig angezeigt, jedoch nichts wird gedruckt.

Ich habe einen Canon PIXMA ip4850, die Treiber von der Canon-HP sind installiert und auch die Windows-Treiber für Samba/Cups werden automatisch beim anklicken des Druckers in der Freigabe installiert.

Hier meine cups.conf:

Code: Alles auswählen

#
# "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $"
#
# 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

# Administrator user group...
SystemGroup lpadmin


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

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd

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

# Restrict access to the server...
<Location />
	#Allow shared printing and remote administration
  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-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 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 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-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI>
    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 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 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>

#
# End of "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $".
#
und hier die smb.conf:

Code: Alles auswählen

[global]
	server string = %h server
	security = SHARE
	map to guest = Bad User
	obey pam restrictions = Yes
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 1000
	printcap name = cups
	dns proxy = No
	wins support = Yes
	usershare allow guests = Yes
	panic action = /usr/share/samba/panic-action %d

[homes]
	comment = Home Directories
	valid users = %S
	create mask = 0700
	directory mask = 0700
	guest ok = Yes
	browseable = No

[printers]
	comment = All Printers
	path = /var/spool/samba
	guest ok = Yes
	printable = Yes
	browseable = No

[print$]
	comment = Printer Drivers
	path = /etc/samba/drivers
	write list = root
	read only = No
	guest ok = Yes

[Festplatten]
	comment = Gemountete Festplatten am Server
	path = /media/
	write list = server, root
	read only = No
	guest ok = Yes
	hide files = /media/www

[www]
	comment = Webserververzeichnis (Zugang nur als Admin)
	path = /media/storage/www
	valid users = server
	admin users = server
	read list = server
	write list = server
	force user = server
	read only = No

[ownCloud]
	comment = Dateien in der Cloud als SambaShare
	path = /media/storage/www/owncloud/data/server/files
	read only = No
	guest ok = Yes

[ip4850]
	comment = Canon iP4850 auf Server
	path = /var/spool/samba
	read only = No
	guest ok = Yes
	printable = Yes
	printer name = ip4850
	browseable = No
	oplocks = No
Vielen Dank =)

ghining
Beiträge: 52
Registriert: 16.01.2012 18:00:04

Re: Cups über Samba - Probleme mit Druck

Beitrag von ghining » 02.10.2012 20:29:47

Was sagt denn

Code: Alles auswählen

less /var/log/cups/access_log
less /var/log/cups/error_log
less /var/log/cups/page_log

trfr3ak
Beiträge: 8
Registriert: 24.09.2012 13:09:47

Re: Cups über Samba - Probleme mit Druck

Beitrag von trfr3ak » 02.10.2012 21:51:47

Code: Alles auswählen

[b]root@server:~# less /var/log/cups/access_log[/b]
localhost - root [02/Oct/2012:18:22:44 +0200] "POST /admin/ HTTP/1.1" 200 162 CUPS-Add-Modify-Printer successful-ok
192.168.2.151 - root [02/Oct/2012:18:22:44 +0200] "POST /admin HTTP/1.1" 200 2150 - -
localhost - - [02/Oct/2012:18:23:44 +0200] "POST /printers/ip4850 HTTP/1.1" 200 26023100 Print-Job successful-ok
localhost - - [02/Oct/2012:18:23:50 +0200] "POST /jobs HTTP/1.1" 200 141 Cancel-Job successful-ok
localhost - - [02/Oct/2012:18:24:55 +0200] "POST /printers/ip4850 HTTP/1.1" 200 418819 Print-Job successful-ok
192.168.2.151 - root [02/Oct/2012:18:25:28 +0200] "POST /admin/ HTTP/1.1" 200 58 - -
192.168.2.151 - root [02/Oct/2012:18:25:28 +0200] "POST /admin/ HTTP/1.1" 200 2943 - -
localhost - - [02/Oct/2012:18:28:40 +0200] "POST /printers/ip4850 HTTP/1.1" 200 369 Create-Job client-error-not-authorized
192.168.2.151 - root [02/Oct/2012:18:29:55 +0200] "POST /admin/ HTTP/1.1" 200 62 - -
192.168.2.151 - root [02/Oct/2012:18:29:55 +0200] "POST /admin/ HTTP/1.1" 200 10049 - -
192.168.2.151 - root [02/Oct/2012:18:30:35 +0200] "POST /admin/ HTTP/1.1" 200 62 - -
192.168.2.151 - root [02/Oct/2012:18:30:35 +0200] "POST /admin/ HTTP/1.1" 200 10049 - -
192.168.2.151 - root [02/Oct/2012:18:31:10 +0200] "POST /admin/ HTTP/1.1" 200 5260 - -
localhost - - [02/Oct/2012:18:31:11 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - root [02/Oct/2012:18:31:11 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 201 4178 - -
192.168.2.151 - root [02/Oct/2012:18:31:10 +0200] "POST /admin/ HTTP/1.1" 200 7323 - -
192.168.2.151 - - [02/Oct/2012:18:35:52 +0200] "POST /admin/ HTTP/1.1" 200 83 - -
localhost - - [02/Oct/2012:18:35:51 +0200] "POST /printers/ip4850 HTTP/1.1" 200 26278876 Print-Job successful-ok
localhost - - [02/Oct/2012:18:35:53 +0200] "POST /admin/ HTTP/1.1" 401 122 CUPS-Set-Default successful-ok
192.168.2.151 - - [02/Oct/2012:18:35:52 +0200] "POST /admin/ HTTP/1.1" 426 83 - -
192.168.2.151 - - [02/Oct/2012:18:35:52 +0200] "POST /admin/ HTTP/1.1" 200 83 - -
localhost - - [02/Oct/2012:18:35:54 +0200] "POST /printers/ip4850 HTTP/1.1" 200 718034 Print-Job successful-ok
localhost - - [02/Oct/2012:18:37:21 +0200] "POST /printers/ip4850 HTTP/1.1" 401 122 Purge-Jobs successful-ok
localhost - root [02/Oct/2012:18:37:21 +0200] "POST /printers/ip4850 HTTP/1.1" 200 122 Purge-Jobs successful-ok
192.168.2.100 - root [02/Oct/2012:18:37:27 +0200] "POST /admin/ HTTP/1.1" 200 86 - -
192.168.2.100 - root [02/Oct/2012:18:37:27 +0200] "POST /admin/ HTTP/1.1" 200 2631 - -
192.168.2.100 - root [02/Oct/2012:18:37:28 +0200] "POST /admin HTTP/1.1" 200 133 - -
localhost - - [02/Oct/2012:18:37:29 +0200] "POST /admin/ HTTP/1.1" 401 162 CUPS-Add-Modify-Printer successful-ok
localhost - root [02/Oct/2012:18:37:29 +0200] "POST /admin/ HTTP/1.1" 200 162 CUPS-Add-Modify-Printer successful-ok
192.168.2.100 - root [02/Oct/2012:18:37:28 +0200] "POST /admin HTTP/1.1" 200 2150 - -
localhost - - [02/Oct/2012:18:37:48 +0200] "POST /printers/ip4850 HTTP/1.1" 200 480801 Print-Job successful-ok
192.168.2.151 - - [02/Oct/2012:18:53:50 +0200] "POST /admin/ HTTP/1.1" 200 62 - -
192.168.2.151 - - [02/Oct/2012:18:53:50 +0200] "POST /admin/ HTTP/1.1" 200 11275 - -

Code: Alles auswählen

[b]root@server:~# less /var/log/cups/error_log[/b]

E [02/Oct/2012:18:20:31 +0200] Missing value for mime.types: on line 88.
E [02/Oct/2012:18:20:31 +0200] Missing value for application/octet-stream on line 89.
W [02/Oct/2012:18:22:01 +0200] Duplicate listen address "0.0.0.0" ignored!
W [02/Oct/2012:18:22:01 +0200] Duplicate listen address "::" ignored!
E [02/Oct/2012:18:22:01 +0200] Missing value for mime.convers: on line 85.
E [02/Oct/2012:18:22:01 +0200] Unknown directive application/octet-strea, on line 86.
E [02/Oct/2012:18:22:01 +0200] Missing value for mime.types: on line 88.
E [02/Oct/2012:18:22:01 +0200] Missing value for application/octet-stream on line 89.
E [02/Oct/2012:18:25:40 +0200] [Job 33] Unable to queue job for destination "Canon_iP4850"!
E [02/Oct/2012:18:25:40 +0200] [Job 34] Unable to queue job for destination "Canon_iP4850"!
E [02/Oct/2012:18:28:40 +0200] Returning IPP client-error-not-authorized for Create-Job (ipp://localhost:631/printers/ip4850) from localhost
E [02/Oct/2012:18:29:04 +0200] [Job 33] Unable to open job control file "/var/spool/cups/c00033" - No such file or directory!
E [02/Oct/2012:18:29:04 +0200] [Job 34] Unable to open job control file "/var/spool/cups/c00034" - No such file or directory!
E [02/Oct/2012:18:31:11 +0200] [Job 33] Files have gone away!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 5!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 6!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 7!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 8!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 9!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 10!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 11!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 12!
E [02/Oct/2012:18:31:11 +0200] [Job 34] Files have gone away!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 14!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 15!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 16!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 17!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 18!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 19!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 20!
E [02/Oct/2012:18:31:11 +0200] Missing <Job #> directive on line 21!
less /var/log/cups/page_log
wird nicht gefunden?
Grüße

pferdefreund
Beiträge: 3810
Registriert: 26.02.2009 14:35:56

Re: Cups über Samba - Probleme mit Druck

Beitrag von pferdefreund » 04.10.2012 12:06:34

Der client darf wohl nicht
Returning IPP client-error-not-authorized for Create-Job (ipp://localhost:631

trfr3ak
Beiträge: 8
Registriert: 24.09.2012 13:09:47

Re: Cups über Samba - Probleme mit Druck

Beitrag von trfr3ak » 04.10.2012 14:50:31

okay. danke =)
also muss ich an dem Windows Clienten was ändern?
oder muss ich in Samba Rechte eintragen?
Sorry kenn mich nicht so aus mit Netzwerkdrucken =/

trfr3ak
Beiträge: 8
Registriert: 24.09.2012 13:09:47

Re: Cups über Samba - Probleme mit Druck

Beitrag von trfr3ak » 04.10.2012 17:20:39

So also hab jetzt nochmal durchgecheckt, und alles neu gemacht. Problem besteht weiterhin er zeigt nun aber keinen Fehler mehr an, sondern einfach:

Code: Alles auswählen

192.168.2.151 - - [04/Oct/2012:17:14:10 +0200] "POST /admin HTTP/1.1" 200 170 - -
localhost - - [04/Oct/2012:17:14:10 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
192.168.2.151 - - [04/Oct/2012:17:14:10 +0200] "POST /admin HTTP/1.1" 426 170 - -
192.168.2.151 - - [04/Oct/2012:17:14:10 +0200] "POST /admin HTTP/1.1" 200 170 - -
192.168.2.151 - - [04/Oct/2012:17:14:18 +0200] "POST /admin HTTP/1.1" 200 170 - -
localhost - - [04/Oct/2012:17:14:18 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
192.168.2.151 - - [04/Oct/2012:17:14:18 +0200] "POST /admin HTTP/1.1" 401 170 - -
192.168.2.151 - - [04/Oct/2012:17:14:18 +0200] "POST /admin HTTP/1.1" 200 170 - -
192.168.2.151 - root [04/Oct/2012:17:14:23 +0200] "POST /admin HTTP/1.1" 200 170 - -
localhost - - [04/Oct/2012:17:14:24 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - root [04/Oct/2012:17:14:24 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 201 2986 - -
192.168.2.151 - root [04/Oct/2012:17:14:23 +0200] "POST /admin HTTP/1.1" 200 2215 - -
192.168.2.151 - root [04/Oct/2012:17:14:40 +0200] "POST /admin HTTP/1.1" 200 189 - -
localhost - - [04/Oct/2012:17:14:40 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - root [04/Oct/2012:17:14:40 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 201 2975 - -
192.168.2.151 - root [04/Oct/2012:17:14:40 +0200] "POST /admin HTTP/1.1" 200 2234 - -
localhost - - [04/Oct/2012:17:17:06 +0200] "POST /printers/ip4850 HTTP/1.1" 200 765175 Print-Job successful-ok
aber gedruckt wird nix.
Kann es an falschen Treibern seitens des Windows Clienten liegen?

Antworten