Tags:
create new tag
view all tags

SID-01296: Apache logs errors: gif files not found

Status: Answered Answered TWiki version: 5.1.0 Perl version: 5.8.8
Category: CategoryError Server OS: Red Hat %-3 ES Last update: 14 years ago

Scenario:

I am testing the upgrade from pretty old TWiki instance (03 Sep 2004 $Rev: 1742 $, Plugin API version 1.025) to the latest (TWiki-5.1.0, Sat, 20 Aug 2011, build 22128, Plugin API version 1.4)

Everything seems to be working fine except for these Apache error log entries. Some examples to follow explanation.

The files are NOT found in the new TWiki or OLD TWiki environment. Both servers are running identical versions of PERL and RH 5_3.

The messages occur when accessing pages with attachments. I can run 'tail -f ssl_error_log` to monitor the entries and when I go to a plain vanilla page and refesh, I get no messages.

My "hack", unless you can help me, is to create "dummy" gif files, named after the files being flagged, just to avoid slowing down Apache with its need to log the errors.

Here are some examples:

[Fri Oct 14 20:51:39 2011] [error] [client 10.5.200.181] File does not exist: /home/twikis/BIGAPP/twiki/pub/TWiki/TWikiDocGraphics/ico.gif, referer: https://theserver.example.company.com/twiki/bin/view/TWiki/WebPreferences

[Fri Oct 14 20:53:41 2011] [error] [client 10.5.200.181] File does not exist: /home/twikis/BIGAPP/twiki/pub/TWiki/TWikiDocGraphics/msi.gif, referer: https://theserver.example.company.com/twiki/bin/view/Main/BobDeUser

[Fri Oct 14 20:53:41 2011] [error] [client 10.5.200.181] File does not exist: /home/twikis/BIGAPP/twiki/pub/TWiki/TWikiDocGraphics/JPG.gif, referer: https://theserver.example.company.com/twiki/bin/view/Main/BobDeUser

[Fri Oct 14 20:53:41 2011] [error] [client 10.5.200.181] File does not exist: /home/twikis/BIGAPP/twiki/pub/TWiki/TWikiDocGraphics/log.gif, referer: https://theserver.example.company.com/twiki/bin/view/Main/BobDeUser

[Fri Oct 14 20:53:41 2011] [error] [client 10.5.200.181] File does not exist: /home/twikis/BIGAPP/twiki/pub/TWiki/TWikiDocGraphics/rpm.gif, referer: https://theserver.example.company.com/twiki/bin/view/Main/BobDeUser

[Fri Oct 14 21:24:18 2011] [error] [client 10.5.200.181] File does not exist: /home/twikis/BIGAPP/twiki/pub/TWiki/TWikiDocGraphics/msi.gif, referer: https://theserver.example.company.com/twiki/bin/view/Main/BobDeUser

[Fri Oct 14 21:24:18 2011] [error] [client 10.5.200.181] File does not exist: /home/twikis/BIGAPP/twiki/pub/TWiki/TWikiDocGraphics/JPG.gif, referer: https://theserver.example.company.com/twiki/bin/view/Main/BobDeUser

Discussion and Answer

It looks like you attached additional icons to TWiki.TWikiDocGraphics in your old TWiki. You need to add those to your new TWiki-5.1. Don't attach them to TWiki.TWikiDocGraphics, but see TWikiDocGraphics to learn how to add them.

-- PeterThoeny - 2011-10-15

I checked and I do not see mention of those file names in ANY file in my current TWiki directory tree. My fix, so far, is to copy from similarly named files like ppt.gif for pptx.gif

-- PaulFinkel - 2011-10-17

TWiki maps/caches from file type names to existing file types. Make sure the twiki/working/work_areas directory is owned and writable by the webserver user. Remove the VarICON directory to force a re-cache.

-- PeterThoeny - 2011-10-18

That didn't work. The twiki/working/work_areas directory is owned and writable by the webserver user (apache:apache).

I removed the directory and the problem persists

-- PaulFinkel - 2011-10-18

Does the directory need to be writable by "group" Apache?

-- PaulFinkel - 2011-10-18

Just make it apache.apache. Technically, the owner need to be able to write to it. The twiki/working/work_areas directory must exist, the VarICON directory gets automatically created in there.

-- PeterThoeny - 2011-10-18

I am still witnessing this problem. As a test, I put this bit of code in my own page on the test TWiki:

%ICON{A}%

and this is the error I get:

......File does not exist: /home/twikis/pub/TWiki/TWikiDocGraphics/A.gif, .....

-- PaulFinkel - 2011-10-19

Yes, because the "A" icon deos not exit. Does it work if you do a %ICON{xls}%?

-- PeterThoeny - 2011-10-19

Yes, that works fine. I was just using an example that someone entered who was doing some testing. I'm assuming that something in my content is creating this problem as I see no problem in the stripped down TWiki right out of the tar file. I will review the files I have copied from my current instance to this new one.

TWikiDocGraphics is not overwritten by content from my original instance

-- PaulFinkel - 2011-10-19

I recommend to read TWikiDocGraphics carefully and add new images with aliases to Main.SiteDocGraphics. Check also your content and replace hard-coded image links containing TWikiDocGraphics with %ICON{...}%

-- PeterThoeny - 2011-10-19

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Apache logs errors: gif files not found
SupportCategory CategoryError
TWiki version 5.1.0
Server OS Red Hat %-3 ES
Web server Apache
Perl version 5.8.8
Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2012-01-23 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.