Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba client not printing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sinanqapudan
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 194
Location: Milan

PostPosted: Thu Jun 05, 2014 2:56 pm    Post subject: Samba client not printing Reply with quote

Hi there,

I'm trying to allow a Windows7 Home client to print using a CUPS based print server.

Printing using CUPS works fine: after much haggling (Canon PIXMA, the name says it all), I can print from Linux based clients.

Also Samba is kind of working, in the sense that:
  • the shared folders in the filesystem are accessible from all sorts of clients: Linux, Android and Windows
  • the printers are shown in the Network environment of the Android and Windows clients (not in the Linux clients though)
  • the printers can be connected to on Windows clients (and printers preferences are displayed)


Regardless of the above, when I try to print from the Windows client, nothing comes out of the printer (and indeed, the printer appears not be reached by any command).

The CUPS error log when I submit a print from the Windows client looks like:

Code:
D [05/Jun/2014:09:29:59 +0200] [Client 14] Closing on EOF
D [05/Jun/2014:09:29:59 +0200] [Client 14] Closing connection.
D [05/Jun/2014:09:29:59 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [05/Jun/2014:09:30:17 +0200] [Client 14] Accepted from localhost (Domain)
D [05/Jun/2014:09:30:17 +0200] [Client 14] Waiting for request.
D [05/Jun/2014:09:30:17 +0200] Report: clients=1
D [05/Jun/2014:09:30:17 +0200] Report: jobs=18
D [05/Jun/2014:09:30:17 +0200] Report: jobs-active=0
D [05/Jun/2014:09:30:17 +0200] Report: printers=2
D [05/Jun/2014:09:30:17 +0200] Report: stringpool-string-count=8221
D [05/Jun/2014:09:30:17 +0200] Report: stringpool-alloc-bytes=9712
D [05/Jun/2014:09:30:17 +0200] Report: stringpool-total-bytes=152144
D [05/Jun/2014:09:30:17 +0200] [Client 14] POST / HTTP/1.1
D [05/Jun/2014:09:30:17 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [05/Jun/2014:09:30:17 +0200] [Client 14] No authentication data provided.
D [05/Jun/2014:09:30:17 +0200] [Client 14] 2.0 Get-Jobs 1
D [05/Jun/2014:09:30:17 +0200] Get-Jobs ipp://localhost/printers/CanonMG6250
D [05/Jun/2014:09:30:17 +0200] [Client 14] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/CanonMG6250) from localhost
D [05/Jun/2014:09:30:17 +0200] [Client 14] Content-Length: 75
D [05/Jun/2014:09:30:17 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=75, response=0xb7834190(IPP_IDLE), pipe_pid=0, file=-1
D [05/Jun/2014:09:30:17 +0200] [Client 14] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
D [05/Jun/2014:09:30:17 +0200] [Client 14] bytes=0, http_state=0, data_remaining=0
D [05/Jun/2014:09:30:17 +0200] [Client 14] Waiting for request.
D [05/Jun/2014:09:30:17 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [05/Jun/2014:09:30:17 +0200] [Client 14] POST / HTTP/1.1
D [05/Jun/2014:09:30:17 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [05/Jun/2014:09:30:17 +0200] [Client 14] No authentication data provided.
D [05/Jun/2014:09:30:17 +0200] [Client 14] 2.0 Get-Printer-Attributes 1
D [05/Jun/2014:09:30:17 +0200] Get-Printer-Attributes ipp://localhost/printers/CanonMG6250
D [05/Jun/2014:09:30:17 +0200] [Client 14] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/CanonMG6250) from localhost
D [05/Jun/2014:09:30:17 +0200] [Client 14] Content-Length: 9611
D [05/Jun/2014:09:30:17 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=9611, response=0xb7840118(IPP_IDLE), pipe_pid=0, file=-1
D [05/Jun/2014:09:30:17 +0200] [Client 14] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
D [05/Jun/2014:09:30:17 +0200] [Client 14] bytes=0, http_state=0, data_remaining=0
D [05/Jun/2014:09:30:17 +0200] [Client 14] Waiting for request.
D [05/Jun/2014:09:30:17 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [05/Jun/2014:09:30:17 +0200] [Client 14] HTTP_STATE_WAITING Closing on EOF
D [05/Jun/2014:09:30:17 +0200] [Client 14] Closing connection.
D [05/Jun/2014:09:30:17 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"
D [05/Jun/2014:09:30:31 +0200] [Client 14] Accepted from 192.168.xxx.xxx:631 (IPv4)
D [05/Jun/2014:09:30:31 +0200] [Client 14] Waiting for request.
D [05/Jun/2014:09:30:31 +0200] [Client 14] GET /admin/log/error_log? HTTP/1.1
D [05/Jun/2014:09:30:31 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [05/Jun/2014:09:30:31 +0200] [Client 14] No authentication data provided.
D [05/Jun/2014:09:30:31 +0200] [Client 14] Sending file.
D [05/Jun/2014:09:30:31 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=274342, response=(nil)(), pipe_pid=0, file=15
D [05/Jun/2014:09:30:31 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=272294, response=(nil)(), pipe_pid=0, file=15
D [05/Jun/2014:09:30:31 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=270246, response=(nil)(), pipe_pid=0, file=15
D [05/Jun/2014:09:30:31 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=268198, response=(nil)(), pipe_pid=0, file=15
D [05/Jun/2014:09:30:31 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=266150, response=(nil)(), pipe_pid=0, file=15
D [05/Jun/2014:09:30:31 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=264102, response=(nil)(), pipe_pid=0, file=15
D [05/Jun/2014:09:30:31 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=262054, response=(nil)(), pipe_pid=0, file=15

....

D [05/Jun/2014:09:30:31 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=-146354, response=(nil)(), pipe_pid=0, file=15
D [05/Jun/2014:09:30:31 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=-146556, response=(nil)(), pipe_pid=0, file=15
D [05/Jun/2014:09:30:31 +0200] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=-146758, response=(nil)(), pipe_pid=0, file=15
D [05/Jun/2014:09:30:31 +0200] [Client 14] Closing on EOF
D [05/Jun/2014:09:30:31 +0200] [Client 14] Closing connection.
D [05/Jun/2014:09:30:31 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [05/Jun/2014:09:30:41 +0200] [Client 14] Accepted from 192.168.xxx.xxx:631 (IPv4)
D [05/Jun/2014:09:30:41 +0200] [Client 14] Waiting for request.
D [05/Jun/2014:09:30:41 +0200] [Client 14] GET /admin/log/error_log? HTTP/1.1
D [05/Jun/2014:09:30:41 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [05/Jun/2014:09:30:41 +0200] [Client 14] No authentication data provided.


Here is the smb.conf file:
Code:
GNU nano 2.3.2        File: /etc/samba/smb.conf                       
[global]
        workgroup = VIAOLONA11
        netbios name = SAMBA
        server string = Samba Server %v
        printcap name = cups
        printing = cups
        load printers = yes
        log file = /var/log/samba/log.%m
        max log size = 50
;       local master = No
        dns proxy = No
        idmap config * : backend = tdb
        hosts allow = 127.0.0.1, 192.168.xxx.1/25
        hosts deny = 0.0.0.0/0

[print$]
        comment = Printer Drivers
        path = /etc/samba/printer
        guest ok = yes
        browseable = yes
        read only = yes
        write list = pietro,root

[CanonMG6250]
        comment = Canon MG6250 Network Printer
        printable = yes
        path = var/spool/samba
        public = yes
        guest ok = yes
        printer admin = user1,root

[printers]
        comment = All Printers
        browseable = no
        printable = yes
        writable = no
        public = yes
        guest ok = yes
        path = /var/spool/samba
        printer admin = user1,root

[public]
        path = /storage/sdc
        username = user1, user2, user3
        read only = No
        create mask = 0755
        browseable = yes


Here is the cupsaddsmb command and its output (edited to improve readability):

Code:
sargon ~ # cupsaddsmb -H 192.168.xxx.xxx -U root -h 192.168.xxx.xxx -v CanonMG6250
Password for root required to access 192.168.xxx.xxx via SAMBA:  ************
Running command: smbclient //192.168.xxx.xxx/print$ -N -A /tmp/071ef539f7517 -c 'mkdir W32X86;put /tmp/071ef5395545e W32X86/CanonMG6250.ppd;
put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;
put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;
put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;
put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[VIAOLONA11] OS=[Unix] Server=[Samba 3.6.23]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /tmp/071ef5395545e as \W32X86/CanonMG6250.ppd (1008.9 kb/s) (average 1008.9 kb/s)
putting file /usr/share/cups/drivers/ps5ui.dll as \W32X86/ps5ui.dll (88623.9 kb/s) (average 16585.1 kb/s)
putting file /usr/share/cups/drivers/pscript.hlp as \W32X86/pscript.hlp (12713.2 kb/s) (average 16420.3 kb/s)
putting file /usr/share/cups/drivers/pscript.ntf as \W32X86/pscript.ntf (94152.9 kb/s) (average 31162.9 kb/s)
putting file /usr/share/cups/drivers/pscript5.dll as \W32X86/pscript5.dll (75713.2 kb/s) (average 35960.7 kb/s)

Running command: smbclient //192.168.xxx.xxx/print$ -N -A /tmp/071ef539f7517 -c 'put /usr/share/cups/drivers/cups6.ini W32X86/cups6.ini;put /usr/share/cups/drivers/cupsps6.dll W32X86/cupsps6.dll;put /usr/share/cups/drivers/cupsui6.dll W32X86/cupsui6.dll'
Domain=[VIAOLONA11] OS=[Unix] Server=[Samba 3.6.23]
putting file /usr/share/cups/drivers/cups6.ini as \W32X86/cups6.ini (35.2 kb/s) (average 35.2 kb/s)
putting file /usr/share/cups/drivers/cupsps6.dll as \W32X86/cupsps6.dll (6136.4 kb/s) (average 3085.9 kb/s)
putting file /usr/share/cups/drivers/cupsui6.dll as \W32X86/cupsui6.dll (6675.5 kb/s) (average 4282.6 kb/s)

Running command: rpcclient 192.168.2.2 -N -A /tmp/071ef539f7517 -c 'adddriver "Windows NT x86" "CanonMG6250:pscript5.dll:CanonMG6250.ppd:ps5ui.dll:pscript.hlp:NULL:RAW:pscript5.dll,
CanonMG6250.ppd,ps5ui.dll,pscript.hlp,pscript.ntf,cups6.ini,cupsps6.dll,cupsui6.dll"'
Printer Driver CanonMG6250 successfully installed.

Running command: rpcclient 192.168.2.2 -N -A /tmp/071ef539f7517 -c 'setdriver CanonMG6250 CanonMG6250'
Successfully set CanonMG6250 to driver CanonMG6250.

sargon ~ #


Any idea on what can be wrong?

Oh, I almost forgot: the server has to lan interfaces running.

Any help would be appreciated.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum