SetPrinter call failed, APW, rpcclient setdriver fails, help please

Arcady Chernyak Arcady.Chernyak at efi.com
Sat Dec 14 00:52:00 GMT 2002


Hi Jason.
May be I had the same problem and I solved it.
I migrate from Samba 2.2.2 to Samba 2.2.7
When I try to install drivers I got the same response.
(NT_STATUS_UNSUCCESSFUL).

After that I analyzed log files from SAMBA and detect that call fall
with debug message: "_spoolss_addprinterex: Attempted to add a printer
named [%s] when one already existed!" (File rpc_server/srv_spoolss_nt.c
line 6514).

This check is a new feature (who needs it) which affect to me.
I have simply commented it like:
    /* check to see if the printer already exists */
/*
    if ((snum = print_queue_snum(printer->info_2->sharename)) != -1) {
        DEBUG(5, ("_spoolss_addprinterex: Attempted to add a printer
named [%s] when one already existed!\n", 
            printer->info_2->sharename));
        free_a_printer(&printer, 2);
        return WERR_PRINTER_ALREADY_EXISTS;
    }*/

After this change all is working well.
Try it I hope it can help you.
If it does not help, take a SAMBA log file level > 6 in installation
time and try to catch what is the reason of your fault.

If anybody knows how to solve it more intelligent, he is welcome.

Regards
	Arcady



-----Original Message-----
From: Jason Jeremias [mailto:jasonj at uui-alaska.com] 
Sent: Friday, December 13, 2002 4:09 PM
To: samba-technical at lists.samba.org
Subject: SetPrinter call failed, APW, rpcclient setdriver fails, help
please

I'm trying to add print drivers to printers on a Samba server using a 
NT4 workstation.  I'm currently running Samba 2.2.7a & CUPS 1.1.17, when
I attempt to add drivers to the new printer it crashes the NT4
workstation.  Prior to the workstation crashing however it does copy the
driver files to the server, it then pauses as if the workstation is
waiting for some information from the server.  In troubleshooting the
problem I've found this much out.

With the following settings in my smb.conf file:
printcap name = cups
load printers = yes
printing = cups

enumdrivers works as expected it even lists the driver I attempted to 
add from the NT4 workstations.

enumprinters works also I can see all the printers I'm supposed to.

setdriver however  fails as seen here:
rpcclient $> setdriver A_CC_HP4300 "HP LaserJet 4300 PCL6"
SetPrinter call failed!
result was NT_STATUS_UNSUCCESSFUL


I can provide any files/debug info try anything needed to help solve the
problem, any help is greatly appreciated.

Thanks!

-Jason






More information about the samba-technical mailing list