[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Woody CUPS printing via Samba



Hallo,

ich habe mich gerade in die Liste eingetragen und bitte um Entschuldigung falls ich mit diesem Posting die Netiquette misachte.

Hier eine kurze Problembeschreibung:
Seit einigen Tagen versuche ich einen SMB-Print-Spool für CUPS zu konfigurieren. Lokales Drucken funktioniert einwandfrei - über Samba leider mit Einschränkungen.

Lokales drucken per lpr-Kommando funktioniert einwandfrei, ebenso die Testpage über das Webinterface. Logs sehen zunächst gut aus. Drucken von Win-/Mac-Clients funktioniert ca. 5-10 Minuten lang, nach neustarten der Samba-/Cups-Daemons. Danach ist das Drucken von den Clients nicht mehr möglich, lokal funktionierts. Erst nach Neustarten der Daemons kann man wieder von den Clients drucken. Samba-/CUPS-Doku sowie google und news helfen nicht mehr weiter (viele unbeantwortete Postings). Ich bitte um Mithilfe bei der Lösungssuche/Problemanalyse. Etwas weiter unten stehen die interessanten Log-Infos sowie Tests mit smbspool.

Bevor ich die Details aufzähle entschuldigt bitte das lange Posting. Wenn nötig poste ich genauere Infos.

Ich komme mit der Konfiguration nicht mehr weiter. Deshalb bin ich für jede Hilfe dankbar.

Hier die Fakten in aller Kürze:
------------------------------------------------------------------------
Die Idee ist:
	Win(98,2000,XP)-/MacOSX-Clients -> Samba -> CUPS -> Drucker

Die Drucker sind:
	HP LaserJet 5M per JetDirect, Epson Stylus 1520 per ParallelPort

Die Software-Packete sind (alle aus den Debian-Packages):
	Debian Woody NONUS von CD
	selbstkompilierter Kernel
! Linux litho 2.4.19 #4 SMP Thu Jun 24 21:27:04 CEST 2004 i686 unknown

smbclient/stable upgradeable from 2.2.3a-12.3 to 2.2.3a-13
smbfs/stable upgradeable from 2.2.3a-12.3 to 2.2.3a-13
samba-common/stable upgradeable from 2.2.3a-12.3 to 2.2.3a-13
samba-doc/stable upgradeable from 2.2.3a-12.3 to 2.2.3a-13
samba/stable upgradeable from 2.2.3a-12.3 to 2.2.3a-13
libcupsys2-dev/stable uptodate 1.1.14-5
cupsys-pstoraster/stable uptodate 1.1.14-5
cupsys-driver-gimpprint/stable uptodate 4.2.0-4
cupsys-client/stable uptodate 1.1.14-5
libcupsys2/stable uptodate 1.1.14-5
cupsys/stable uptodate 1.1.14-5
cupsys-bsd/stable uptodate 1.1.14-5

Die relevanten Teile der smb.conf:
[global]
load printers = yes
printing = cups
printcap name = cups
hide dot files = yes
veto files = /.AppleDouble/Network Trash Folder/TheVolumeSettingsFolder/.bin/Icon^M/Icon?/TheFindByC
ontentFolder/Temporary Items/.AppleDesktop/*2eDS*/

[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        public = yes
        guest ok = yes
        writable = no
        printable = yes
        printer admin = root
        valid users = +zg

Auf die Konfiguration des Automatischen Treiber Downloads durch [printe$] habe ich zunächst verzichtet.

Abweichend von der Standardkonfiguration in der cupsd.conf sind folgende Teile geändert.:
LogLevel info
Printcap /etc/printcap.cups
PrintcapFormat BSD
Port 443
Port 631
Browsing Off
>
<Location />
AuthType Basic
AuthClass User
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From XXX.XXX.XXX.XX
Allow From XXX.XXX.XXX.XX
</Location>
<Location /printers>
AuthType None
AuthClass User
Order Deny,Allow
Deny From All
Allow From All
</Location>

Die lptools wie lpq und lpstat funktionieren einwandfrei. Wie bereits erwähnt kann ich mit dem lpr-Kommando jederzeit von Konsole drucken.

Hier ein Test mit smbspool von einem lokalen Terminal:
marcos@litho:~# smbspool smb://User:Password@WG/litho/A4swlaser A4swlaser6 test 1 no test.txt
INFO: Debug class all level = 3   (pid 2314 from pid 2314)
added interface ip=XXX.XXX.XXX.XXX bcast=XXX.XXX.XXX.XXX nmask=XXX.XXX.XXX.XXX
resolve_lmhosts: Attempting lmhosts lookup for name litho<0x20>
resolve_hosts: Attempting host lookup for name litho<0x20>
Connecting to XXX.XXX.XXX.XXX at port 139
ERROR: SMB tree connect failed: NT_STATUS_WRONG_PASSWORD
ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...: Success

Beim Drucken von MacOSX aus erhalte ich die Meldung:
NT_STATUS_FILE_NOT_FOUND[...etc...]

Während eines Druckversuchs von Windows aus erhalte ich in /var/log/messages:
Jun 25 12:52:10 litho smbd[1833]: [2004/06/25 12:52:10, 0] printing/print_cups.c:cups_queue_get(776)

Jun 25 12:52:10 litho smbd[1833]:   Unable to get jobs for ipp://localhost/printers/A4swlaser - clie
nt-error-not-authorized
Jun 25 12:52:10 litho smbd[1833]: [2004/06/25 12:52:10, 0] printing/print_cups.c:cups_printername_ok
(281)
Jun 25 12:52:10 litho smbd[1833]:   Unable to get printer status for A4swlaser - client-error-not-au
thorized

... und in /var/log/samba/clients/XXX.log finde ich insbesondere diese Meldungen interessant.
[2004/06/25 12:53:14, 3] printing/printing.c:print_cache_expired(772)
  print cache expired for queue A4swlaser (last_cache = 1088160730, time now = 1088160794, qcachetim
e = 10)
[2004/06/25 12:53:14, 0] printing/print_cups.c:cups_queue_get(776)
  Unable to get jobs for ipp://localhost/printers/A4swlaser - client-error-not-authorized
[2004/06/25 12:53:14, 3] printing/printing.c:print_queue_update(396)
  0 jobs in queue for A4swlaser
[2004/06/25 12:53:14, 3] smbd/lanman.c:api_TooSmall(3238)
  Supplied buffer too small in API command
[2004/06/25 12:53:14, 0] printing/print_cups.c:cups_printername_ok(281)
  Unable to get printer status for A4swlaser - client-error-not-authorized
[2004/06/25 12:53:14, 3] printing/printing.c:print_job_start(881)
  print_job_start: printer name A4swlaser check failed.
[2004/06/25 12:53:14, 3] smbd/error.c:error_packet(91)
  error string = No such file or directory

Diese Meldungen kann ich leider nicht deuten. SMB-Doku und google haben auch keine Antwort. Unter Windows erscheint entsprechend, dass der Drucker nicht erreichbar ist, etc.etc....

Die CUPS-Logs sehen gut aus.

Danke für jede Hilfe.

Marcos Otero Garcia aus Hamburg



Reply to: