Re: Horrible: Apache corrupting files?
On Tue, Apr 25, 2006 at 03:41:18PM +, Ben Paley wrote: > On Friday 21 April 2006 00:31, Alex de Kruijff wrote: > > On Thu, Apr 20, 2006 at 10:17:47AM +, Ben Paley wrote: > > > Hello, > > > > > > I have Apache 2 running on FreeBSD 6.1-PRERELEASE on a laptop on a small > > > office lan. Whenever one of the other machines (mostly Macs) makes a > > > request for a certain page on my machine, it is delivered succesfully but > > > the file itself is absolutely scrambled beyond recognition into a binary > > > file. Subsequent requests rescramble it into a different but equally > > > nonsense binary. > > > > > > I've looked with a binary editor and it really is completely messed up. I > > > can restore the file from a good archive copy, but every time the same > > > thing happens. > > > > > > The file was originally created on a mac by Flash (it's a 1.1k html file > > > which just embeds a flash movie). Recently I copied it to and from a > > > Solaris box via ftp from an Windows NT machine (although it wasn't opened > > > afaik - a long story, clearly, which also involves a usb flash drive...). > > > > > > Anyone have any ideas? The file itself is inconsequential, but the fact > > > of such blatant and relentless data corruption is very worrying to me! I > > > don't know if it's the file or my system or some combination... I'd > > > really appreciate some advice, I've been staring at it for two days and > > > I'm starting to bite my nails... > > > > How about setting the permission so that the file can not be changed. > > Then access the file and see if a process complains about not being able > > to change the file? > > > > P.S. I find it hard to beleave apache2 does this. I run apache2 myself > > and don't have this. > > I've set the permissions to 444 and I'm still seeing the same corruption, so > it must be something running as root, or something quite low level. No > console messages and I don't really know where to look for error logs - I > think you're right and it's not apache. > > I've started to notice some other strange corruptions - some php files seem > to > become binary on a remote machine, even though my local copies are fine. > Perhaps it's the server... but we've never had this trouble before, and it > seems a little too much like what's happening on my machine to be a > coincidence. One file I tried uploading with two different gui ftp clients > and via command line, in ascii, binary and auto mode, and again the same > thing happened each time - my browser complained of unknown ascii characters > and kate (text editor) told me it was a binary file even though it looked ok. > I tried changing the encoding and that made no difference. > > I am actually quite worried now. There seems to be something holding all > these > occurences together, but I can't quite work out what it is. > > Does anyone have any ideas where to look? I'd really appreciate it! My quess it that its hardware related. Your HD could be dying. -- Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
Ben Paley wrote: On Friday 28 April 2006 10:25, Alex Zbyslaw wrote: Try sysutils/smartmontools or a disk checker from the disk manufacturer. Most provide one. smartmontools seems to confirm there's nothing wrong with the disk: smartctl version 5.33 [i386-portbld-freebsd6.1] Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_DescriptionStatus Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offlineCompleted without error 00% 3069 - # 2 Extended offlineCompleted without error 00% 3064 - # 3 Short offline Completed without error 00% 492 - # 4 Short offline Completed without error 00% 0 - Any more ideas? I assume this was from you running a new long test. If so, then no. I missed most of the thread, I'm afraid, just caught the gist. Have you tried serving the same files from another machine with identical apache setup? If that serves them OK then it shouldn't be apache. That's all I can think of, besides *possibly* there is either some fault on the disk controller or perhaps the FreeBSD driver. You could try upgrading to some newer FreeBSD if there is one but that's quite drastic and might solve nothing. Same for swapping the disk and or controller, if you have any spares. (If you have another disk, then try moving the data to it and comparing, then get apache to server from the new disk and see if that helps), You may have tried all that already. --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Monday 01 May 2006 12:28, Nick Withers wrote: > Understandably, too. Other files are served fine, to your > knowledge? I think something a little like it has happened before - but I was in a real rush to meet a deadline and didn't have time to take notice of the circumstances. At the moment no other files are a problem. > Maybe the NIC? Now I'm really starting to stab in the dark! Do you mean the network card? Wow, that does seem desperate! But clutching at straws... how would I go about checking it? But since it's only one file that this is happening to I'm inclined to look for the problem in something about the file. That's why I mentioned the long complicated journey it's been on in my first message - osx, freebsd, winnt, solaris and back again via ethernet, wireless, usb flash, ftp... Running out of ideas and the will to live ;-) Cheers, Ben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Friday 28 April 2006 10:25, Alex Zbyslaw wrote: > > Try sysutils/smartmontools or a disk checker from the disk > manufacturer. Most provide one. smartmontools seems to confirm there's nothing wrong with the disk: smartctl version 5.33 [i386-portbld-freebsd6.1] Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_DescriptionStatus Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offlineCompleted without error 00% 3069 - # 2 Extended offlineCompleted without error 00% 3064 - # 3 Short offline Completed without error 00% 492 - # 4 Short offline Completed without error 00% 0 - Any more ideas? Thanks, Ben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
Ben Paley wrote: so I'm provisionally eliminating memory failure as the cause of my file corruption. Any idea where I go from here? That file really does change. Could it be a hard disk problem on the exact spot where this file is? is fsck my friend in this instance? I'll go and rtfm right now... fsck is not the answer. It just checks your filesystem for consistency not your hard disk for errors. Try sysutils/smartmontools or a disk checker from the disk manufacturer. Most provide one. --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Wednesday 26 April 2006 13:22, Bill Moran wrote: > memtest86 is also available as a bootable CD. So it is > How long did you run it for? I don't trust the results unless I let > it run for at least 8 hours. _Any_ errors are bad, especially on a > server. The bootable versions (CD or floppy) are better because they > can test more of the machine's memory. 7:44 last night with no errors. Mem-map was set to 'auto' - when I set it to 'all' the screen immediately filled with errors and 'probe' froze the machine instantly. I think (hope?) these failures represent something odd, but not broken, in my laptop's bios rather than a real memory error, so I'm provisionally eliminating memory failure as the cause of my file corruption. Any idea where I go from here? That file really does change. Could it be a hard disk problem on the exact spot where this file is? is fsck my friend in this instance? I'll go and rtfm right now... Thanks, Ben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
>Please, check your RAM. I had similar problem with changing MD5 on PC with bad RAM. I had a similar problem that drove me crazy for a long while. It all made sense when I opened up the box and saw that the CPU fan was stopped. Luckily, there was no permanent damage to the CPU and replacing the fan make everything sane again. hernan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Wed, 26 Apr 2006 13:10:26 + Ben Paley <[EMAIL PROTECTED]> wrote: > On Wednesday 26 April 2006 10:24, Nick Withers wrote: > > On Wed, 26 Apr 2006 10:08:58 + > > > > Ben Paley <[EMAIL PROTECTED]> wrote: > > > Could anyone give me a hint as to how to get started checking the > > > hardware? It's a Dell Inspiron 6000 laptop. I really don't have the > > > foggiest idea what to look for or what to check - I've never had any > > > problems with it before. > > > > You might want to have a gander at Memtest86 > > (http://www.memtest86.com/, /usr/ports/sysutils/memtest86) for > > memory testing, I reckon this should be your first port of call. > > Thanks a lot for the advice. Unfortunately I can't run it as I have no floppy > drive (unless there's another way? I seem to remember it's possible to make a > bootable usb flash drive...). I ran sysutils/memtest with no errors, for > whatever that's worth. memtest86 is also available as a bootable CD. How long did you run it for? I don't trust the results unless I let it run for at least 8 hours. _Any_ errors are bad, especially on a server. The bootable versions (CD or floppy) are better because they can test more of the machine's memory. I don't know of any ready-to-go images for USB, but it should be possible to create one ... -- Bill Moran Collaborative Fusion Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Wed, 26 Apr 2006 13:10:26 + Ben Paley <[EMAIL PROTECTED]> wrote: > On Wednesday 26 April 2006 10:24, Nick Withers wrote: > > On Wed, 26 Apr 2006 10:08:58 + > > > > Ben Paley <[EMAIL PROTECTED]> wrote: > > > Could anyone give me a hint as to how to get started checking the > > > hardware? It's a Dell Inspiron 6000 laptop. I really don't have the > > > foggiest idea what to look for or what to check - I've never had any > > > problems with it before. > > > > You might want to have a gander at Memtest86 > > (http://www.memtest86.com/, /usr/ports/sysutils/memtest86) for > > memory testing, I reckon this should be your first port of call. > > Thanks a lot for the advice. Unfortunately I can't run it as I have no floppy > drive (unless there's another way? I seem to remember it's possible to make a > bootable usb flash drive...). There's an downloadable ISO for creating a bootable CD on their website (http://www.memtest86.com/). > I ran sysutils/memtest with no errors, for whatever that's worth. Not familiar with it myself, but I imagine it's only capable of checking user-space memory if it's run in userland. > Cheers, > Ben -- Nick Withers email: [EMAIL PROTECTED] Web: http://www.nickwithers.com Mobile: +61 414 397 446 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Wednesday 26 April 2006 10:24, Nick Withers wrote: > On Wed, 26 Apr 2006 10:08:58 + > > Ben Paley <[EMAIL PROTECTED]> wrote: > > Could anyone give me a hint as to how to get started checking the > > hardware? It's a Dell Inspiron 6000 laptop. I really don't have the > > foggiest idea what to look for or what to check - I've never had any > > problems with it before. > > You might want to have a gander at Memtest86 > (http://www.memtest86.com/, /usr/ports/sysutils/memtest86) for > memory testing, I reckon this should be your first port of call. Thanks a lot for the advice. Unfortunately I can't run it as I have no floppy drive (unless there's another way? I seem to remember it's possible to make a bootable usb flash drive...). I ran sysutils/memtest with no errors, for whatever that's worth. Cheers, Ben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Wed, 26 Apr 2006 10:08:58 + Ben Paley <[EMAIL PROTECTED]> wrote: > Could anyone give me a hint as to how to get started checking the hardware? > It's a Dell Inspiron 6000 laptop. I really don't have the foggiest idea what > to look for or what to check - I've never had any problems with it before. You might want to have a gander at Memtest86 (http://www.memtest86.com/, /usr/ports/sysutils/memtest86) for memory testing, I reckon this should be your first port of call. > Cheers, > Ben Good luck! -- Nick Withers email: [EMAIL PROTECTED] Web: http://www.nickwithers.com Mobile: +61 414 397 446 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Wednesday 26 April 2006 09:46, Thomas Ludwig wrote: > > If the problem is Apache, though, it doesn't explain the other problems > > I've been having, like the corrupted ftp uploads. Perhaps they are > > unrelated? Or perhaps Apache is not the problem? > > I recommend checking your hardware. I had a similar problem with huge > files, although unrelated to Apache. Files bigger than ~2GB would > *seem* to be corrupted. I suspect its the hard disk drive, because > lowering the ATA bus speed (atacontrol mode ad0 UDMA33) made this > problem go away (the drive is a SAMSUNG SP1614N TM100-24). This > problem occurred with different motherboard chipsets and different > versions of FreeBSD (5-stable, 6-PRERELEASE), so I really think it is > the hard disk drive. Thanks very much. In my case the files involved are very small, and it seems to be only one file at the moment, so I am hold out the hope that you're wrong - but I'll certainly check in case you're right. Could anyone give me a hint as to how to get started checking the hardware? It's a Dell Inspiron 6000 laptop. I really don't have the foggiest idea what to look for or what to check - I've never had any problems with it before. Cheers, Ben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
> If the problem is Apache, though, it doesn't explain the other problems I've > been having, like the corrupted ftp uploads. Perhaps they are unrelated? Or > perhaps Apache is not the problem? I recommend checking your hardware. I had a similar problem with huge files, although unrelated to Apache. Files bigger than ~2GB would *seem* to be corrupted. I suspect its the hard disk drive, because lowering the ATA bus speed (atacontrol mode ad0 UDMA33) made this problem go away (the drive is a SAMSUNG SP1614N TM100-24). This problem occurred with different motherboard chipsets and different versions of FreeBSD (5-stable, 6-PRERELEASE), so I really think it is the hard disk drive. Bye, Thomas > Cheers, > Ben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Tue, Apr 25, 2006 at 10:51:03PM +, Ben Paley wrote: > > before download > > $ md5 test.xml > > MD5 (test.xml) = 25ed4336e8906e64bd05ebea990d29a0 > > > > after download > > $ md5 test.xml > > MD5 (test.xml) = ef0918bc4f7aa323eb6c41768092488e > > > > And after each access the MD5sum change ... > > This sounds exactly like what is happening to me. Does it happen to every > file, or just a few? Or just one? Please, check your RAM. I had similar problem with changing MD5 on PC with bad RAM. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On 4/26/06, Ben Paley <[EMAIL PROTECTED]> wrote: > On Tuesday 25 April 2006 17:19, Dominique Goncalves wrote: > > > What version of apache are you using? > > apache-2.0.55_4 > > > I've already see corruption file when I was tried to share xml podcast > > between my FreeBSD 6.1 and Sony PSP, with Apache 2.2.0 > > > > $ ls -l test.xml > > -r--r--r-- 1 dom dom 5725 Mar 11 17:47 test.xml > > > > before download > > $ md5 test.xml > > MD5 (test.xml) = 25ed4336e8906e64bd05ebea990d29a0 > > > > after download > > $ md5 test.xml > > MD5 (test.xml) = ef0918bc4f7aa323eb6c41768092488e > > > > And after each access the MD5sum change ... > > This sounds exactly like what is happening to me. Does it happen to every > file, or just a few? Or just one? Just podcast xml file for the moment. > > If the problem is Apache, though, it doesn't explain the other problems I've > been having, like the corrupted ftp uploads. Perhaps they are unrelated? Or > perhaps Apache is not the problem? > > Or maybe I've been cursed for having an operating system of which the logo is > a devil ;-) > > > Try to ask directly on the freebsd-apache mailing list. > > OK, I'll try that too, thanks for the tip. > > Cheers, > Ben > -- There's this old saying: "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life." ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Tuesday 25 April 2006 17:19, Dominique Goncalves wrote: > What version of apache are you using? apache-2.0.55_4 > I've already see corruption file when I was tried to share xml podcast > between my FreeBSD 6.1 and Sony PSP, with Apache 2.2.0 > > $ ls -l test.xml > -r--r--r-- 1 dom dom 5725 Mar 11 17:47 test.xml > > before download > $ md5 test.xml > MD5 (test.xml) = 25ed4336e8906e64bd05ebea990d29a0 > > after download > $ md5 test.xml > MD5 (test.xml) = ef0918bc4f7aa323eb6c41768092488e > > And after each access the MD5sum change ... This sounds exactly like what is happening to me. Does it happen to every file, or just a few? Or just one? If the problem is Apache, though, it doesn't explain the other problems I've been having, like the corrupted ftp uploads. Perhaps they are unrelated? Or perhaps Apache is not the problem? Or maybe I've been cursed for having an operating system of which the logo is a devil ;-) > Try to ask directly on the freebsd-apache mailing list. OK, I'll try that too, thanks for the tip. Cheers, Ben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Friday 21 April 2006 00:31, Alex de Kruijff wrote: > On Thu, Apr 20, 2006 at 10:17:47AM +, Ben Paley wrote: > > Hello, > > > > I have Apache 2 running on FreeBSD 6.1-PRERELEASE on a laptop on a small > > office lan. Whenever one of the other machines (mostly Macs) makes a > > request for a certain page on my machine, it is delivered succesfully but > > the file itself is absolutely scrambled beyond recognition into a binary > > file. Subsequent requests rescramble it into a different but equally > > nonsense binary. > > > > I've looked with a binary editor and it really is completely messed up. I > > can restore the file from a good archive copy, but every time the same > > thing happens. > > > > The file was originally created on a mac by Flash (it's a 1.1k html file > > which just embeds a flash movie). Recently I copied it to and from a > > Solaris box via ftp from an Windows NT machine (although it wasn't opened > > afaik - a long story, clearly, which also involves a usb flash drive...). > > > > Anyone have any ideas? The file itself is inconsequential, but the fact > > of such blatant and relentless data corruption is very worrying to me! I > > don't know if it's the file or my system or some combination... I'd > > really appreciate some advice, I've been staring at it for two days and > > I'm starting to bite my nails... > > How about setting the permission so that the file can not be changed. > Then access the file and see if a process complains about not being able > to change the file? > > P.S. I find it hard to beleave apache2 does this. I run apache2 myself > and don't have this. I've set the permissions to 444 and I'm still seeing the same corruption, so it must be something running as root, or something quite low level. No console messages and I don't really know where to look for error logs - I think you're right and it's not apache. I've started to notice some other strange corruptions - some php files seem to become binary on a remote machine, even though my local copies are fine. Perhaps it's the server... but we've never had this trouble before, and it seems a little too much like what's happening on my machine to be a coincidence. One file I tried uploading with two different gui ftp clients and via command line, in ascii, binary and auto mode, and again the same thing happened each time - my browser complained of unknown ascii characters and kate (text editor) told me it was a binary file even though it looked ok. I tried changing the encoding and that made no difference. I am actually quite worried now. There seems to be something holding all these occurences together, but I can't quite work out what it is. Does anyone have any ideas where to look? I'd really appreciate it! Cheers, Ben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Horrible: Apache corrupting files?
On Thu, Apr 20, 2006 at 10:17:47AM +, Ben Paley wrote: > Hello, > > I have Apache 2 running on FreeBSD 6.1-PRERELEASE on a laptop on a small > office lan. Whenever one of the other machines (mostly Macs) makes a request > for a certain page on my machine, it is delivered succesfully but the file > itself is absolutely scrambled beyond recognition into a binary file. > Subsequent requests rescramble it into a different but equally nonsense > binary. > > I've looked with a binary editor and it really is completely messed up. I can > restore the file from a good archive copy, but every time the same thing > happens. > > The file was originally created on a mac by Flash (it's a 1.1k html file > which > just embeds a flash movie). Recently I copied it to and from a Solaris box > via ftp from an Windows NT machine (although it wasn't opened afaik - a long > story, clearly, which also involves a usb flash drive...). > > Anyone have any ideas? The file itself is inconsequential, but the fact of > such blatant and relentless data corruption is very worrying to me! I don't > know if it's the file or my system or some combination... I'd really > appreciate some advice, I've been staring at it for two days and I'm starting > to bite my nails... How about setting the permission so that the file can not be changed. Then access the file and see if a process complains about not being able to change the file? P.S. I find it hard to beleave apache2 does this. I run apache2 myself and don't have this. -- Alex Please copy the original recipients, otherwise I may not read your reply. Howtos based on my personal use, including information about setting up a firewall and creating traffic graphs with MRTG http://alex.kruijff.org/FreeBSD/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Horrible: Apache corrupting files?
Hello, I have Apache 2 running on FreeBSD 6.1-PRERELEASE on a laptop on a small office lan. Whenever one of the other machines (mostly Macs) makes a request for a certain page on my machine, it is delivered succesfully but the file itself is absolutely scrambled beyond recognition into a binary file. Subsequent requests rescramble it into a different but equally nonsense binary. I've looked with a binary editor and it really is completely messed up. I can restore the file from a good archive copy, but every time the same thing happens. The file was originally created on a mac by Flash (it's a 1.1k html file which just embeds a flash movie). Recently I copied it to and from a Solaris box via ftp from an Windows NT machine (although it wasn't opened afaik - a long story, clearly, which also involves a usb flash drive...). Anyone have any ideas? The file itself is inconsequential, but the fact of such blatant and relentless data corruption is very worrying to me! I don't know if it's the file or my system or some combination... I'd really appreciate some advice, I've been staring at it for two days and I'm starting to bite my nails... Thanks a lot, Ben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"