Hello, I seem to be having a strange problem here. First, I will describe my current computer system setup. Second, I will describe the problem. Third, I will pose several suggestions contributing to the problem. Fourth, I will ask you to investigate this for your self in search of quick resolution. Fifth, I will attach relavent configuration files. I have a production web server running Microsoft Windows 2000 Advanced Server and Microsoft IIS 5.0 web server. Next I have my workstation / firewall running SuSE Linux 8.0 and Samba 2.2.4. My workstation is a Microsoft Windows 2000 Advanced Server. Since I do my development both on my Linux and Windows, I mount my production server's shares on my Linux box. When I work off my Windows workstation, I simply share out my mounts from Linux to Windows. When I save my files from my Windows workstation onto my Windows server via my Linux workstation, I am constantly getting "404 File Not Found" errors for pages that I just saved. I end up having to re-save the file several times before the web server sees and processes the file. Is there some sort of delay or file locking going on here? Is this a bug with Samba or NetBIOS, or just a mis-configured setting? Please look into this quickly since this is becoming increasingly frusterating in my development efforts. -- +----------------------------------+---------------------------------+ | Lee Leahu | voice -> 708-444-2690 | | Internet Technology Specialist | fax -> 708-444-2697 | | RICIS, Inc. | email -> lee@ricis.com | +----------------------------------+---------------------------------+ | I cannot conceive that anybody will require multiplications at the | | rate of 40,000 or even 4,000 per hour ... | | -- F. H. Wales (1936) | +--------------------------------------------------------------------+
Why don't you just directly map the server's shares on your windows workstation? Just some generic advice, since there is not much information in your letter about how you have your samba shares configured. Put oplocks = False strict sync = yes sync always into your smb.conf. These settings are not the default. These belong in the share. These options degrade performance, but, you don't sound like that is your problem. read: man smb.conf for the details. You can quickly go to the sections on these topics with: / oplocks etc. Let the list know if this fixes your problem. Joel On Sat, Aug 10, 2002 at 06:25:53PM -0500, Lee Leahu wrote:> Hello, > > I seem to be having a strange problem here. First, I will describe > my current computer system setup. Second, I will describe the problem. > Third, I will pose several suggestions contributing to the problem. > Fourth, I will ask you to investigate this for your self in search > of quick resolution. Fifth, I will attach relavent configuration files. > > I have a production web server running Microsoft Windows 2000 Advanced > Server and Microsoft IIS 5.0 web server. Next I have my workstation / > firewall running SuSE Linux 8.0 and Samba 2.2.4. My workstation is a > Microsoft Windows 2000 Advanced Server. Since I do my development > both on my Linux and Windows, I mount my production server's shares > on my Linux box. When I work off my Windows workstation, I simply > share out my mounts from Linux to Windows. > > When I save my files from my Windows workstation onto my Windows > server via my Linux workstation, I am constantly getting "404 File > Not Found" errors for pages that I just saved. I end up having to > re-save the file several times before the web server sees and > processes the file. > > Is there some sort of delay or file locking going on here? Is this > a bug with Samba or NetBIOS, or just a mis-configured setting? > > Please look into this quickly since this is becoming increasingly > frusterating in my development efforts. > > -- > +----------------------------------+---------------------------------+ > | Lee Leahu | voice -> 708-444-2690 | > | Internet Technology Specialist | fax -> 708-444-2697 | > | RICIS, Inc. | email -> lee@ricis.com | > +----------------------------------+---------------------------------+ > | I cannot conceive that anybody will require multiplications at the | > | rate of 40,000 or even 4,000 per hour ... | > | -- F. H. Wales (1936) | > +--------------------------------------------------------------------+ > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Thankyou Joel. That is working wonders! Joel Hammer <Joel@HammersHome.com> scribbled something about Re: [Samba] File Not Found Errors:> Put > oplocks = False > strict sync = yes > sync always > into your smb.conf. These settings are not the default.-- +----------------------------------+---------------------------------+ | Lee Leahu | voice -> 708-444-2690 | | Internet Technology Specialist | fax -> 708-444-2697 | | RICIS, Inc. | email -> lee@ricis.com | +----------------------------------+---------------------------------+ | I cannot conceive that anybody will require multiplications at the | | rate of 40,000 or even 4,000 per hour ... | | -- F. H. Wales (1936) | +--------------------------------------------------------------------+
On Sat, 10 Aug 2002, Lee Leahu wrote:> When I save my files from my Windows workstation onto my Windows > server via my Linux workstation, I am constantly getting "404 File > Not Found" errors for pages that I just saved. I end up having to > re-save the file several times before the web server sees and > processes the file.Most networked file systems doesn't really like it when you do: machine A ---> machine B ---> machine C I have seen a similar problem with some ftp server (warftpd?) and IIS (and/or frontpage). I believe this was a known problem with how warftp created its files - but I don't have any details. smbfs uses an old SMB to create and open files. You could try this patch for 2.4.19 that changes this to use a more recent operation (and a lot of other things). http://www.hojdpunkten.ac.se/054/samba/smbfs-2.4.19-rc1-ALL.patch.gz I am interested in your feedback on this. I know another nutcase^Wperson that does something like this, and for him this is finally working ok (Hi Jochen :). But he may have hacked samba a bit too. /Urban
I added the three following lines to my smb.conf file on my middle box and solved all my problems. oplocks = False strict sync = yes sync always -- +----------------------------------+---------------------------------+ | Lee Leahu | voice -> 708-444-2690 | | Internet Technology Specialist | fax -> 708-444-2697 | | RICIS, Inc. | email -> lee@ricis.com | +----------------------------------+---------------------------------+ | I cannot conceive that anybody will require multiplications at the | | rate of 40,000 or even 4,000 per hour ... | | -- F. H. Wales (1936) | +--------------------------------------------------------------------+