Hi, I have a FreeBSD 4.1.1-RELEASE and samba-2.2.4 installed in my server, I have a printer configured and working through samba. My problem is, when I reboot my server, my Windows 2000 with service pack 2, can't print anymore, when I sent a printer job, there is no error, but nothing appear on printer, the other shares area ok, and I can get files from this shares. Then I restart the deamon's (smbd and nmbd) and everything is working again. Someone know how to solve this ? Thank's Nuno Dias -- ____________________________________________________________________ Nuno Dias (ndias@fccn.pt) - WorkGroup LAN - Tel. +351 21 8440100 Funda??o para a Computa??o Cient?fica Nacional (http://www.fccn.pt) ?? Unix is user friendly, it simply chooses its friends wisely !! ??
Nuno Dias <ndias@fccn.pt> schrieb:> Hi, > > I have a FreeBSD 4.1.1-RELEASE and samba-2.2.4 installed in my server, I > have a printer configured and working through samba. > > My problem is, when I reboot my server, my Windows 2000 with service > pack 2, can't print anymore, when I sent a printer job, there is no > error, but nothing appear on printer, the other shares area ok, and I > can get files from this shares. > > Then I restart the deamon's (smbd and nmbd) and everything is working > again.My magic globe says that you're using CUPS on the Server. If cups startup is not finished when smbd is started, smbd will not find any printers (since there is no /etc/printcap in cups). When you've noticed this and restart smbd, cups is up and running, so smbd gets the printer information. As a solution, I changed /etc/rc?.d/S20cupsd to /etc/rc?.d/S19cupsd, smbd ist started by /etc/rc?.d/S20samba HTH, Frank -- Frank F?rst, physikalische Biochemie, Universit?t Potsdam, Germany Tel.: +49-331-977-5244 Fax: +49-331-977-5062
I looked through the mailing list archives and tried some queries against the searchable with no success. I've got a strange problem... Customer calls up unable to print. Everything else is working fine, nobody made any Samba or other changes just suddenly no PC can print to a Samba-shared printer. Server is AIX, Samba is 2.2.3a compiled by IBM from the IBM Toolbox site. Same config I have running on >10 sites and this one for a long time up until now. Have rebooted PCs, rebooted the server, etc... I found a way to reproduce the error SSH'ed into their server from remote though: # echo "test" | smbclient "\\\\server\\printer" rootspwd -N -P -c 'print -' added interface ip=192.168.100.10 bcast=192.168.100.255 nmask=255.255.255.0 Domain=[DOM] OS=[Unix] Server=[Samba 2.2.3a] NT_STATUS_NO_SUCH_FILE opening remote file stdin-23850 Here's a snippet of the log file with debug=4: [2002/09/18 12:49:46, 3] smbd/dosmode.c:unix_mode(111) unix_mode(stdin-26128) returning 0744 [2002/09/18 12:49:46, 3] printing/printing.c:print_cache_expired(772) print cache expired for queue las1 (last_cache = 1032371363, time now = 1032371386, qcachetime = 10) [2002/09/18 12:49:46, 3] printing/print_generic.c:print_run_command(88) Running the command `lpq -Plas1' gave 0 [2002/09/18 12:49:46, 3] printing/printing.c:print_queue_update(396) 0 jobs in queue for las1 [2002/09/18 12:49:47, 3] printing/printing.c:print_job_start(936) print_job_start: either jobid (6956)==next_jobid(6956) or print_job_store failed. [2002/09/18 12:49:47, 3] printing/printing.c:print_job_start(985) print_job_start: returning fail. Error = No such file or directory [2002/09/18 12:49:47, 3] smbd/error.c:error_packet(91) error string = No such file or directory [2002/09/18 12:49:47, 3] smbd/error.c:error_packet(103) error packet at smbd/reply.c(1650) cmd=45 (SMBopenX) NT_STATUS_NO_SUCH_FILE [2002/09/18 12:49:47, 3] smbd/process.c:timeout_processing(1092) receive_smb error (Error 0) exiting [2002/09/18 12:49:47, 3] smbd/sec_ctx.c:set_sec_ctx(314) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2002/09/18 12:49:47, 2] smbd/server.c:exit_server(458) Closing connections I've tried changing the path= in [printers] thinking it couldn't create a file for some reason. No luck... Thanks in advance for any suggestions!