LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   CUPS and Samba error trying to print to a Windows shared printer... (https://www.linuxquestions.org/questions/linux-server-73/cups-and-samba-error-trying-to-print-to-a-windows-shared-printer-846801/)

fcintron 11-26-2010 09:25 PM

CUPS and Samba error trying to print to a Windows shared printer...
 
I have Samba 3.0.33-3.29.el5_5.1 and Cups 1.3.7 in a Centos 5.5 x64 server.

I had configured this linux server machine to print to a shared windows 7 ultimate x64 hp laserjet 1300 printer. It had worked perfectly until today when I realized that I can't send print jobs from the server to this printer anymore.

This is a very very weird problem because I havenīt installed neither updates nor new programs in the server.

This is the cups error_log section when the printer can't print:


Code:

I [26/Nov/2010:20:08:40 -0600] [Job 332] Adding start banner page "none".
I [26/Nov/2010:20:08:40 -0600] [Job 332] Adding job file of type application/postscript.
I [26/Nov/2010:20:08:40 -0600] [Job 332] Adding end banner page "none".
I [26/Nov/2010:20:08:40 -0600] [Job 332] Queued on "hp1300" by "administrador".
I [26/Nov/2010:20:08:40 -0600] [Job 332] Started filter /usr/lib/cups/filter/pstops (PID 4325)
I [26/Nov/2010:20:08:40 -0600] [Job 332] Started filter /usr/lib/cups/filter/foomatic-rip (PID 4326)
I [26/Nov/2010:20:08:40 -0600] [Job 332] Started backend /usr/lib/cups/backend/smb (PID 4327)
E [26/Nov/2010:20:08:41 -0600] [Job 332] Session setup failed: SUCCESS - 0
E [26/Nov/2010:20:08:41 -0600] [Job 332] No ticket cache found for userid=501
E [26/Nov/2010:20:08:41 -0600] [Job 332] Can not get the ticket cache for administrador
E [26/Nov/2010:20:08:41 -0600] [Job 332] Session setup failed: Error: Unknown error (128,38912)
E [26/Nov/2010:20:08:41 -0600] [Job 332] Tree connect failed (NT_STATUS_ACCESS_DENIED)
E [26/Nov/2010:20:08:41 -0600] [Job 332] Unable to connect to CIFS host, will retry in 60 seconds...
I [26/Nov/2010:20:09:39 -0600] cupsdCloseClient: SSL shutdown successful!
E [26/Nov/2010:20:09:41 -0600] [Job 332] Session setup failed: NT_STATUS_ACCESS_DENIED
E [26/Nov/2010:20:09:41 -0600] [Job 332] No ticket cache found for userid=501
E [26/Nov/2010:20:09:41 -0600] [Job 332] Can not get the ticket cache for administrador
E [26/Nov/2010:20:09:41 -0600] [Job 332] Session setup failed: NT_STATUS_ACCESS_DENIED
E [26/Nov/2010:20:09:41 -0600] [Job 332] Tree connect failed (NT_STATUS_ACCESS_DENIED)
E [26/Nov/2010:20:09:41 -0600] [Job 332] Unable to connect to CIFS host, will retry in 60 seconds...
E [26/Nov/2010:20:10:41 -0600] [Job 332] Session setup failed: NT_STATUS_ACCESS_DENIED
E [26/Nov/2010:20:10:41 -0600] [Job 332] No ticket cache found for userid=501
E [26/Nov/2010:20:10:41 -0600] [Job 332] Can not get the ticket cache for administrador
E [26/Nov/2010:20:10:41 -0600] [Job 332] Session setup failed: NT_STATUS_ACCESS_DENIED
E [26/Nov/2010:20:10:41 -0600] [Job 332] Tree connect failed (NT_STATUS_ACCESS_DENIED)
E [26/Nov/2010:20:10:41 -0600] [Job 332] Unable to connect to CIFS host, will retry in 60 seconds...

And this is the smbd.log section:


Code:

[2010/11/26 20:04:49, 1] smbd/service.c:close_cnum(1274)
  javier (10.10.100.31) closed connection to service hp1300
[2010/11/26 20:04:49, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 10.10.100.31. Error = Connection reset by peer
[2010/11/26 20:08:10, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
  cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine vistaVirtual.  Error was NT_STATUS_ACCESS_DENIED
[2010/11/26 20:08:16, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
  cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine vistaVirtual.  Error was NT_STATUS_ACCESS_DENIED
[2010/11/26 20:08:40, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
  cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine vistaVirtual.  Error was NT_STATUS_ACCESS_DENIED
[2010/11/26 20:08:40, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
  cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine vistaVirtual.  Error was NT_STATUS_ACCESS_DENIED
[2010/11/26 20:08:40, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
  cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine vistaVirtual.  Error was NT_STATUS_ACCESS_DENIED
:%

It seems that samba canīt login to the windows machine.

I tried to login by hand using smbclient:

Code:

[root@bdd cups]# smbclient -U administrador -L 10.10.100.47 -d4
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = CIO
doing parameter load printers = yes
doing parameter printcap name = cups
doing parameter printing = cups
pm_process() returned Yes
added interface ip=10.10.100.30 bcast=10.10.100.255 nmask=255.255.255.0
Client started (version 3.0.33-3.29.el5_5.1).
Connecting to 10.10.100.47 at port 445
 session request ok
Password:
Doing spnego session setup (blob length=336)
SPNEGO login failed: Invalid parameter
session setup failed: SUCCESS - 0

Thanks in advance for your kind help.

sysslack 12-08-2010 02:50 PM

I don't have an exakt solution for the problem, but sometimes this can help
open your browser and type URL localhost:631
and login as root in the admin part.
this solution I found on ubuntu forum. He had same error message. He says:

Well, I solved my own problem by deleting the printer and adding it again in the CUPS browser interface, http://localhost:631/ Apparently when I was trying to add the printer in gnome-cups-add, I was entering smb://192.168.1.3 for the host, when I should simply have entered 192.168.1.3

Hope this helps!

fcintron 12-10-2010 03:49 PM

Quote:

Originally Posted by sysslack (Post 4185107)
I don't have an exakt solution for the problem, but sometimes this can help
open your browser and type URL localhost:631
and login as root in the admin part.
this solution I found on ubuntu forum. He had same error message. He says:

Well, I solved my own problem by deleting the printer and adding it again in the CUPS browser interface, http://localhost:631/ Apparently when I was trying to add the printer in gnome-cups-add, I was entering smb://192.168.1.3 for the host, when I should simply have entered 192.168.1.3

Hope this helps!

Thank you for your help but I just tried what you wrote but the problem was not gone :(

help!!!


All times are GMT -5. The time now is 02:30 AM.