Hi people, I have a print server using Debian, LPRNG and SAMBA working without any problems. Now I 'm trying to set up a new server with CentOS 6, CUPS and SAMBA. It 's a very simple setup: a few local users and a few printers, nothing special. The clients also map the printer using 'net use lpt1 \\mainserver\printerX' because they need to print over an old DOS application. However, I 'm getting this kind of error in SAMBA logs: [2013/10/24 10:05:18.350631, 0] rpc_server/spoolss/srv_spoolss_nt.c:1748(_spoolss_OpenPrinterEx) _spoolss_OpenPrinterEx: Cannot open a printer handle for printer \\mainserver After a lot of tests, I cannot figure out what the problem might be. Any ideas??? Thanks in advance! -- --------------------------------------------------------- Ezequiel Larrarte. " ... God Always Takes The Simplest Way! ... "
Hello Ezequiel, Am 24.10.2013 16:42, schrieb Ezequiel Larrarte:> Hi people, I have a print server using Debian, LPRNG and SAMBA working > without any problems. Now I 'm trying to set up a new server with > CentOS 6, CUPS and SAMBA. > > It 's a very simple setup: a few local users and a few printers, > nothing special. The clients also map the printer using 'net use lpt1 > \\mainserver\printerX' because they need to print over an old DOS > application. > > However, I 'm getting this kind of error in SAMBA logs: > [2013/10/24 10:05:18.350631, 0] > rpc_server/spoolss/srv_spoolss_nt.c:1748(_spoolss_OpenPrinterEx) > _spoolss_OpenPrinterEx: Cannot open a printer handle for printer \\mainserver > > After a lot of tests, I cannot figure out what the problem might be.You're giving not much information about your environment. What version of Samba do you use? Have you checked the Print Server HowTo? Maybe you have missed something: http://wiki.samba.org/index.php/Samba_as_a_print_server Regards, Marc
Am 24.10.2013 17:25, schrieb Ezequiel Larrarte:> I 'm using SAMBA version 3.6.9...> > ... >> The client prints OK, but I 'm getting the following errors in the log file: > [2013/10/24 10:05:17.404865, 0] > rpc_server/spoolss/srv_spoolss_nt.c:1748(_spoolss_OpenPrinterEx) > _spoolss_OpenPrinterEx: Cannot open a printer handle for printer \\mainserver > (over and over)This message was only logged at a to low level. A patch to increase the log level of this message has already been pushed to the 4.1 and 4.0 tree. Not for 3.6 yet. https://bugzilla.samba.org/show_bug.cgi?id=10118 If you can't upgrade to 4.x then try to apply the patch to the latest 3.6 version and give feedback to the bug report. Then it will find it's way into the next 3.6 version, too. Regards, Marc
Am 24.10.2013 22:39, schrieb Ezequiel Larrarte:> Marc, Are you saying that I can just let it go???The bug report describes exactly the message you are receiving. And Guenther - he's one of the developers working on printer stuff, too - says that increasing the log level in the sources - that's the only thing the patch does - is OK. So I would say there's nothing bad with this message. Only that it maybe flood your logs. :-)> I 'm not allowed to patch any software in a production environment > here. I 'm only allowed to update software through distribution > repository and I have the latest version of SAMBA 3.6.x family that > CentOS 6 allows me to have.Then I think, you must live with this message, until RH will fix it. You can open a bug report at Redhat (even if you don't use RHEL) and link to the Samba bug report. Maybe they will patch their version, as it is no major change. And then Centos will follow. But it's definitively a much longer way into your production. :-)> If I can let this message go ... why am I getting these messages on a > few clients only and not all of them???For that you should look into the sources, what causes this message. Or simply reply to the list and not just to me. Then others, like the developers of the printer code, can read your messages, too and maybe answer that question. :-) Regards, Marc