i am using net-fs/samba-3.0.10 on an updated gentoo linux on x86 machine. recently i was using 3.0.9-r1 i didn't change my smb.conf but now printing from windows 98SE clients does not work anymore. the errormessage on win98 is (translated from german): Error when writing on \\master\stylus1160 vor printer (EPSON Stylus Color 1160): The network printer is not anymore available. Call the system administrator or use another printer. printing from windows xp to the same samba server works without problems. /var/log/samba/log.win98host: [2005/01/31 07:47:48, 1] smbd/service.c:make_connection_snum(648) scancomp (192.168.30.66) connect to service HL1670N initially as user erik (uid=1000, gid=1000) (pid 25074) [2005/01/31 07:47:48, 0] printing/printing_db.c:get_print_db_byname(40) PANIC: assert failed at printing/printing_db.c(40) [2005/01/31 07:47:48, 0] lib/util.c:smb_panic2(1403) PANIC: assert failed [2005/01/31 07:47:48, 0] lib/util.c:smb_panic2(1411) BACKTRACE: 1 stack frames: #0 /usr/sbin/smbd(smb_panic2+0xfc) [0x81ca6fe] some minute later next try: [2005/01/31 07:49:08, 1] smbd/service.c:make_connection_snum(648) scancomp (192.168.30.66) connect to service HL1670N initially as user erik (uid=1000, gid=1000) (pid 27350) [2005/01/31 07:49:08, 0] printing/printing_db.c:get_print_db_byname(40) PANIC: assert failed at printing/printing_db.c(40) [2005/01/31 07:49:08, 0] lib/util.c:smb_panic2(1403) PANIC: assert failed [2005/01/31 07:49:08, 0] lib/util.c:smb_panic2(1411) BACKTRACE: 1 stack frames: #0 /usr/sbin/smbd(smb_panic2+0xfc) [0x81ca6fe] next try: [2005/01/31 08:00:06, 1] smbd/service.c:make_connection_snum(648) scancomp (192.168.30.66) connect to service HL1670N initially as user erik (uid=1000, gid=1000) (pid 28404) [2005/01/31 08:00:21, 0] printing/printing_db.c:get_print_db_byname(40) PANIC: assert failed at printing/printing_db.c(40) [2005/01/31 08:00:21, 0] lib/util.c:smb_panic2(1403) PANIC: assert failed [2005/01/31 08:00:21, 0] lib/util.c:smb_panic2(1411) BACKTRACE: 1 stack frames: #0 /usr/sbin/smbd(smb_panic2+0xfc) [0x81ca6fe] next try: [2005/01/31 08:19:27, 1] smbd/service.c:make_connection_snum(648) scancomp (192.168.30.66) connect to service stylus1160 initially as user erik (uid=1000, gid=1000) (pid 29031) [2005/01/31 08:19:27, 0] printing/printing_db.c:get_print_db_byname(40) PANIC: assert failed at printing/printing_db.c(40) [2005/01/31 08:19:27, 0] lib/util.c:smb_panic2(1403) PANIC: assert failed [2005/01/31 08:19:27, 0] lib/util.c:smb_panic2(1411) BACKTRACE: 1 stack frames: #0 /usr/sbin/smbd(smb_panic2+0xfc) [0x81ca6fe] and so on. this is my smb.conf: [global] netbios name = MASTER workgroup = MYDOMAIN passdb backend = ldapsam:ldap://ldap.thiele.lan hosts allow = 192.168.30.0/255.255.255.0 127.0.0.1 local master = yes log file = /var/log/samba/log.%m os level = 33 preferred master = yes security = user username map = /etc/samba/smbusers wins support = yes load printers = yes printing = cups domain master = yes domain logons = yes logon path = \\%N\profiles\%U logon drive = H: logon home = \\%N\%U logon script = %m_%U_logon.bat bind interfaces only = yes interfaces = eth0 lo ldap admin dn = "cn=samba,ou=DSA,dc=mydomain,dc=de" ldap delete dn = yes ldap user suffix = ou=People ldap group suffix = ou=Group ldap machine suffix = ou=Computers ldap suffix = dc=mydomain,dc=de add user script = /usr/share/samba/scripts/smbldap-useradd -m "%u" add machine script = /usr/share/samba/scripts/smbldap-useradd -w "%u" add group script = /usr/share/samba/scripts/smdldap-groupadd -p "&g" add user to group script = /usr/share/samba/scripts/smbldap-groupmod -m "%u" "%g" delete user from group script = /usr/share/samba/scripts/smbldap-usermod -x "%u" "%g" set primary group script = /usr/share/samba/scripts/smbldap-usermod -g "%g" "%u" delete user script = /usr/share/samba/scripts/smbldap-userdel "%u" delete group script = /usr/share/samba/scripts/smbldap-groupdel "%g" time server = yes dos charset = CP850 unix charset = UTF-8 display charset = LOCALE [netlogon] path = /mydir/netlogon read only = yes [profiles] path = /mydir/profiles read only = no create mask = 0600 directory mask = 0700 guest ok = yes profile acls = yes csc policy = disable force user = %U valid users = %U @"Domain Admins" [homes] comment = Home Verzeichnisse # (only real owner may access) valid users = %S read only = No browseable = No veto files = /.*/ create mask = 000 force create mode = 600 directory mask = 000 force directory mode = 700 [opusshare] comment = OPUS Share path = /mydir/opusshare read only = no create mask = 000 force create mode = 660 directory mask = 000 force directory mode = 770 force group = +opus [printers] comment = Alle Drucker printcap name = cups path = /var/spool/samba browseable = no public = yes guest ok = yes writeable = no printable = yes create mode = 0700 cups options = "raw" [CDs] comment = CDROM Kopien path = /mydir/cdcopy guest ok = yes [Archiv] comment = Archiv readonly path = /mydir/archiv only user = yes username = ewald [qmhandbuch] comment = QM Handbuch path = /mydir/qmhandbuch guest ok = yes [datenblatt] comment = Datenblatt path = /mydir/datenblatt writeable = yes create mask = 0664 directory mask = 0775 [Software] comment = DOS und WINDOWS Software path = /mydir/software guest ok = yes [workstat] comment = Thiele workstat Verzeichnis path = /mydir/workstat guest ok = yes writeable = yes create mask = 000 force create mode = 666 directory mask = 000 force directory mode = 777 force user = nobody force group = nobody When i print a test page from win98se, the win98se printer manager for that printer sais: document name: Remote Downlevel Document Status: In Queue Owner: erik Progress: 0 Bytes start time: (the correct current time) after about 10 seconds that entry gets removed from the list and it is empty again i emergency downgraded to 3.0.9-r1 and everything is working again. unfortunately it is a production system :) tell me if i can do anything to supply more information to debug the problem. i already posted the issue on samba mailinglist samba@lists.samba.org but nobody replied. Reproducible: Always Steps to Reproduce: Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686) ================================================================= System uname: 2.4.26-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Nov 30 2004, 14:16:57)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks nostrip sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="de_DE" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X apm arts avi berkdb bitmap-fonts crypt cups doc emacs encode esd f77 fam font-server foomaticdb fortran freetds gdbm gif gimpprint gnome gpm gtk gtk2 imagemagick imlib java jpeg kde ldap libg++ libwww mad mikmod mmx mng motif mpeg mssql ncurses nls odbc oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline samba sdl slang spell sse ssl tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb wmf xml2 xmms xv zlib linguas_de" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
I can't reproduce this, since I doesn't have a win98/me system to check. In samba 3.0.8-3.0.9 a printing patch for win98/ME NULL name printer check was included. Maybe this a bug from the dead(tm): try checking http://www.mail-archive.com/samba@lists.samba.org/msg48594.html (the patch) https://bugzilla.samba.org/show_bug.cgi?id=2018 (the bug) and, in case, reopen the upstream bug: samba 3.0.11 is in release candidate, and maybe this fix can be included before final commitment.
^^^^^^^^^^^^^^^^^^^^^^ I doesn't -> I don't :-)
btw: win9x/ME systems use the _weak_ lanman authentication. try setting these flags in [global] section (I'm not confident these would override a NULL printing error, though): lanman auth = No server signing = disable client signing = disable client use spnego = No
erik, what's the latest on this?
currently i am using samba 3.0.10 and everything works. i am not sure what i changed. it was not on the win98 side though. i'm sorry i can't find the problem anymore, even though it was really there :-) Maybe some other part of the system has been updated. Seems to be strange though.
erik, we're about to move to 3.0.14a-r2, just so you know. I'll close this bug since it's apparently fixed. If 3.0.14a-r2 shows the same problems, please reopen. thanks :)