Alexander Skwar
2004-Jul-21 10:00 UTC
[Samba] Files get written with sections of log in them - destroying files.
Hello! I'm having a problem with Samba 3.0.4 on a HP-UX 11.00 server. The problem is, that sometimes files don't get written properly; ie. somewhere in the middle of the file, I find a section of logs. You can find a sample file at http://stuff.alexander.skwar.name/Delphi/HP-UX/Samba/broken-samba-file.prt If you open the file with a "binary" editor and have a look at bytes 6000 to 16100, you'll see that something's very wrong. You'll also see that, if you open the file in a normal text "viewer" like your browser. Any ideas at all about why something like this might happen? Further files of interest: http://stuff.alexander.skwar.name/Delphi/HP-UX/Samba/smb.conf http://stuff.alexander.skwar.name/Delphi/HP-UX/Samba/testparm_--suppress-prompt_--verbose.txt Thanks a lot, Alexander Skwar -- Sind Sch?fchens Locken schwarz und braun, dann lehnt es am Elektrozaun. Und wenn es mit den ?uglein rollt, dann will es sagen: "Zuviel Volt!"
Alexander Skwar
2004-Jul-21 19:08 UTC
[Samba] Files get written with sections of log in them - destroying files.
Herb Lewis wrote:> Did you by any chance get a log rotate about the time of the corruption?You mean the Samba logs, don't you (ie. not the logs from syslog and the like)?> We have seen these things in the past but they have never been reproducibleYes. I also cannot really reproduce it - ie. I cannot do X and have the file be destroyed. I wish I were able to :(> so have been hard to track down.Yep. Don't you just hate those Heisenbugs? Well, I do :(> At one time I had a theory that something > was going wrong at the time the logs reached the max size and were being > "rotated" because all the cases had a max log size set. Can you check your > logs and see if you have an old log that ends about the time of the > log entries that were inserted into your file?Well, at least that's a theory. Tomorrow when I'm back at work, I'll for sure checkt that. PS: Why did you reply off-list? Alexander Skwar -- printk(KERN_WARNING "Warning: defective CD-ROM (volume sequence number). Enabling \"cruft\" mount option.\n"); 2.2.16 /usr/src/linux/fs/isofs/inode.c
Alexander Skwar
2004-Jul-22 09:59 UTC
[Samba] Files get written with sections of log in them - destroying files.
Herb Lewis wrote:> Did you by any chance get a log rotate about the time of the corruption?Hm, I can't find any logs that got rotated at about that time - however, this doesn't mean much, since it's of course very much possible, that new logs got rotated over the then-new log file. Anyhow, right now I'm wondering about a different thing. In my smb.conf, I removed the "log level" setting. testparm -sv shows me: log level = 0 Nonetheless, I get log files created (even after I restarted smb). Why's that? Thanks, Alexander
Seemingly Similar Threads
- Cannot change password on HP-UX: PANIC: failed to set gid, INTERNAL ERROR
- Cannot change samba password: "Error was : RAP86: The specified password is invalid."
- Overlooked? Windows can't create folders/files with long file names
- Setting up 1.6.2.9 on Debian 6.0 Squeeze
- SWAT: chdir failed - the server is not configured correctly