Help with spoolss printing
Hi, I've got a network with an NT4 PDC and a Samba file/print server, running Samba 2.2.3 as packaged with Debian Woody. The machine has been working quite happily for ages (started life with Samba 1.9.18 a long time ago), and the printer sharing has always been done as Lan Manager printers. Having finally found some spare time, I decided to switch to spoolss printing. I created a print$ share as in the docs, and then installed the appropriate drivers. All seemed OK, the drivers were successfully copied to the server, and the printer shares worked as expected. I restarted Samba a couple of times, and suddenly, for no obvious reason, the Printers share on the server emptied itself entirely. Running the rpcclient enumdrivers command returns no output. Inspection of the logfiles shows:- [2003/03/04 12:58:30, 0] rpc_server/srv_lsa_hnd.c:create_policy_hnd(98) create_policy_hnd: ERROR: too many handles (1025) on this pipe. [2003/03/04 12:58:30, 0] lib/fault.c:fault_report(38) === [2003/03/04 12:58:30, 0] lib/fault.c:fault_report(39) INTERNAL ERROR: Signal 11 in pid 21915 (2.2.3a-12 for Debian) Please read the file BUGS.txt in the distribution [2003/03/04 12:58:30, 0] lib/fault.c:fault_report(41) === [2003/03/04 12:58:30, 0] lib/util.c:smb_panic(1064) PANIC: internal error [2003/03/04 12:59:12, 0] rpc_client/cli_pipe.c:rpc_api_pipe(359) cli_pipe: return critical error. Error was NT_STATUS_PIPE_DISCONNECTED The last message is repeated many times. Is this a known bug? Is there anything I can do about it? Any help gratufully received Mike.
Re: Help with spoolss printing
Gerald (Jerry) Carter wrote: Please retest against 2.2.8pre2. OK - I'll need to build my own packages, which I was hoping to avoid, so testing against the new version will probably take me a day or so. Running the rpcclient enumdrivers command returns no output. Inspection of the logfiles shows:- [2003/03/04 12:58:30, 0] rpc_server/srv_lsa_hnd.c:create_policy_hnd(98) create_policy_hnd: ERROR: too many handles (1025) on this pipe. Can you describe your configuration a little more? Are you using a WIN2k TSE box by chance? No, nothing like that. Config is very simple really, PDC is running NT4 server, and does domain control and nothing else (will get retired when Samba 3 arrives). The main file/print server is an x86 box running Debian Woody, with security=domain. All the users on on boxes running NT 4.0 workstation service pack 6a. Mike.
Re: Help with spoolss printing
Mike Brodbelt wrote: Gerald (Jerry) Carter wrote: Please retest against 2.2.8pre2. OK - I'll need to build my own packages, which I was hoping to avoid, so testing against the new version will probably take me a day or so. Having tried this, 2.2.8 doesn't compile for me. Found the files in packaging/Debian (very nice, make this *lots* easier), but no go:- Compiling lib/util.c lib/util.c: In function `state_path': lib/util.c:1876: `STATEDIR' undeclared (first use in this function) lib/util.c:1876: (Each undeclared identifier is reported only once lib/util.c:1876: for each function it appears in.) lib/util.c: In function `cache_path': lib/util.c:1896: `CACHEDIR' undeclared (first use in this function) make[1]: *** [lib/util.o] Error 1 make[1]: Leaving directory `/usr/local/local_pkg/samba/samba-2.2.8pre2/source' make: *** [build-stamp] Error 2 I know more or less why this is happening, but can't see the easy way to fix it. The build script for a Debianised package applies a patch to the source (packaging/Debian/debian/patches/fhs.patch) which adds two functions to util.c that make use of STATEDIR and CACHEDIR. From what I can see, the patch should define these if FHS_COMPATIBLE is defined, which should be set, as configure gets passed --with-fhs. I could remove the patch, or just build outside the Debian package setup, but I've got a strong preference for keeping the Debian paths, as this will end up on a live server, and I *really* don't want to break the packaging system. Is there a quick fix? Thanks, Mike.
Re: Help with spoolss printing
On Tue, Mar 04, 2003 at 03:46:17PM +, Mike Brodbelt wrote: Mike Brodbelt wrote: Gerald (Jerry) Carter wrote: Please retest against 2.2.8pre2. OK - I'll need to build my own packages, which I was hoping to avoid, so testing against the new version will probably take me a day or so. Having tried this, 2.2.8 doesn't compile for me. Found the files in packaging/Debian (very nice, make this *lots* easier), but no go:- Compiling lib/util.c lib/util.c: In function `state_path': lib/util.c:1876: `STATEDIR' undeclared (first use in this function) lib/util.c:1876: (Each undeclared identifier is reported only once lib/util.c:1876: for each function it appears in.) lib/util.c: In function `cache_path': lib/util.c:1896: `CACHEDIR' undeclared (first use in this function) make[1]: *** [lib/util.o] Error 1 make[1]: Leaving directory `/usr/local/local_pkg/samba/samba-2.2.8pre2/source' make: *** [build-stamp] Error 2 As you deduced, this means the Debian-specific patches don't apply cleanly against 2.2.8pre2. Have you tried the backported 2.2.7a packages available at http://people.debian.org/~peloy/samba/? Jerry, have there been more printing fixes since then that he'll need in order to get this working? -- Steve Langasek postmodern programmer pgp0.pgp Description: PGP signature
Re: Help with spoolss printing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 4 Mar 2003, Steve Langasek wrote: Have you tried the backported 2.2.7a packages available at http://people.debian.org/~peloy/samba/? Jerry, have there been more printing fixes since then that he'll need in order to get this working? I don't think so. The only post 2.2.7 printing fix was for big-endian boxes. cheers, jerry -- Hewlett-Packard- http://www.hp.com SAMBA Team -- http://www.samba.org GnuPG Key http://www.plainjoe.org/gpg_public.asc You can never go home again, Oatman, but I guess you can shop there. --John Cusack - Grosse Point Blank (1997) -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE+ZOMzIR7qMdg1EfYRAkxqAJwMDqeKc0ryDoaJuge4BkFWnzVDoACgmZq1 3Lo/5PiNTRe32K9u9NfGS34= =9Veh -END PGP SIGNATURE-
Re: Help with spoolss printing
Gerald (Jerry) Carter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 4 Mar 2003, Steve Langasek wrote: Have you tried the backported 2.2.7a packages available at http://people.debian.org/~peloy/samba/? Jerry, have there been more printing fixes since then that he'll need in order to get this working? I don't think so. The only post 2.2.7 printing fix was for big-endian boxes. I've installed the 2.2.7 woody backports now, and they do seem to have cured it. Thanks for the help. Mike.