Server corrupting images
Hi Guys...
I have a problem with displaying images. My server is CentOS release 6.1 (Final) If I a web page displays an image, it doesn't show. If I click on 'show image' I get a message, something like 'image cannot be displayed because it contains errors'. I have setup a page to demonstrate the problem: http://art-burn.co.uk/index.htm This has 2 pictures: 1. src from within the server. 2. src from an external server. Using firefox, the 2 images are displayed, first as a small box (from local server), second normal (from external server) Using IE, the 2 images are displayed, first as a corrupt picture (from local server), second normal (from external server) I'm utterly confused with this, and cannot find any answers by Googling. Can anybody suggest what may be wrong. btw: the server did work fine originally, so it's something that I have done, but I don't know what. |
Running Firefox 16.0.2 on both Windows and Ubuntu 10.04 the first one (from your local server) does not show. Loading http://art-burn.co.uk/images/HonkyTonk-18nov12-sm.jpg directly gives the error message that the file is corrupted.
Inspecting the image properties (with FF) on the page you provided shows that the files have different sizes and your local one shows as 0x0 pixels. Opening in IE shows a text page with garbage and checking properties in IE shows that it's not a jpg. Sounds like you've managed to corrupt the image in some way. |
Yes, the server really seems to send gargabe as HTTP response for url http://art-burn.co.uk/images/HonkyTonk-18nov12-sm.jpg Can you inspect (and post) your apache configuration? Have you enabled some modules or changed something w.r.t. apache recently?
|
Hi Guys...
Many thanks for your input. However, I still believe that the problem is with the server. Quote:
If you do, it's very large - size 38431 If you want to see it, it's here: http://art-burn.co.uk/httpd.conf Quote:
I've tried: Mailview, Webmail Lite, RoundCube and squirrekmail. I removed ALL the webmail programs and started again with squirrelmail. This is when I noticed the image problem. I could load the Squirrelmail image from an external server, but not locally. This is when I started testing. Here is another test that I have done this morning: http://hughes-family-bakers.co.uk/test.htm This site is located on the 'good' server. I also installed postfix admin. This didn't appeal to me when I had it installed, so I removed it. Hope this info helps. Thank you... |
Your httpd.conf is also corrupted ;)
Code:
P—38¼®Å- I'm not sure where I would start looking. |
Hi Wim Sturkenboom...
Thanks for your reply, and taking the trouble to help me. The file is NOT corrupt. I have now copied it to my 'good' server. You can view it here: http://hughes-family-bakers.co.uk/httpd.conf This is the same file, copied from http://art-burn.co.uk/httpd.conf It is obviously the 'faulty' server that is corrupting the files. hth |
I understand it's only the copy. It was showing that it's more than just images that are affected.
If possible, I would run a memtest for a night to check memory and badblocks to check your HD; manufacturer's testutilities for your HD are also an option. |
Very weird indeed. I've worked with apache for 10+ years and I've never seen it corrupting files.
I would try a clean install of apache with clean config files and work my way to desired configuration. |
Hi Guys...
Many thanks for your input. Quote:
My experience is that running memscope will show up any memory problems within the first couple of passes. I used Hirens to run a surface test on the hard drive, which showed no problems. Quote:
However, I'm intrigued to know what I have done wrong - if anything. I'll leave the thread running for a while to see if anybody has any suggestions. Thanks for your help and advice, |
Could be a file system problem. Can you fsck? The easiest way would be to create a /etc/forcefsck file and reboot. Alternatively boot Linux from media such as a Knoppix DVD. Or, for file systems other than root, go to single user mode.
Could be a disk bus controller or related hardware (inc. HDD-related cables) problem. Easiest way to test would be to replace the motherboard and cables with known good items if available. |
Are you out of disk space?
Run 'df' and see what you get. I've done that before, and my server acted in a similar fashion to what you're seeing. |
Hi lrtward...
Thanks for your input. I have plenty of disc space so that's not the problem. catkin said: Quote:
I struggled a bit to get the network working, but managed it eventually. The problem still persists, so back to the drawing board. Quote:
Quote:
However, I don't know how to boot it to see my hard drive. It gets to boot: and then continues to a menu. Now I'm stuck. Any advice ??? Many thanks for your advice... |
Quote:
Sorry -- cannot advise; I currently only have access to a netbook without CD/DVD drive so cannot test. IIRC Knoppix boots to a desktop with icons for partitions containing file systems on the desktop. What are the menu items? EDIT: but how to use Knoppix is academic regards this thread if you have fscked the file system(s) already ... ? |
Quote:
Quote:
I also ran: shutdown -rF now and watched the boot process. Bootup 'flew' through. I don't seem to be getting anywhere with this, so I will do a complete reinstall in a couple of days (when I have time) Thanks for your help and advice |
All times are GMT -5. The time now is 09:18 PM. |