LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-26-2010, 09:25 PM   #1
fcintron
Member
 
Registered: Oct 2010
Location: México
Distribution: Centos
Posts: 71

Rep: Reputation: 4
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.
 
Old 12-08-2010, 02:50 PM   #2
sysslack
Member
 
Registered: Feb 2006
Posts: 69

Rep: Reputation: 15
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!
 
Old 12-10-2010, 03:49 PM   #3
fcintron
Member
 
Registered: Oct 2010
Location: México
Distribution: Centos
Posts: 71

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by sysslack View Post
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!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP Machines Require Device Driver When Installing a Shared CUPS/Samba Printer mkhan1484 Linux - Server 7 03-06-2010 08:47 AM
Adding print driver to CUPS/Samba from Windows - printer doesn't display granny Linux - Server 2 01-08-2009 11:19 AM
Cant print using samba and cups to a windows printer araldit Linux - Networking 5 11-27-2007 09:21 PM
Can't print to Windows shared printer via Samba cdavidson Linux - General 1 04-19-2007 10:37 AM
getting Firefox to print to CUPS with shared printer Lleb_KCir Linux - Software 5 07-27-2005 09:43 AM


All times are GMT -5. The time now is 03:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration