iiab / internet-in-a-box

Humane Heritage - OLD VERSION
Other
104 stars 16 forks source link

Investigate Wikipedia 500 Error on Fedora 18 #75

Closed johnjkim closed 11 years ago

johnjkim commented 11 years ago

From Braddock to me

The /var/httpd/error_log file had the following error:

IOError: [Errno 2] No such file or directory: '/knowledge/modules/wikipedia-kiwix/library.xml', referer: http://localhost/iiab

So the first thing to do is check if that library.xml file actually exists where the system thinks it does. It does appear to exist in the QuickStart Sampler dataset, so if you untarred that to / it shoudl be there. You aren't getting an red errror messages about not being able to find the "knowledge" dataset on the main page?

Then check permissions for that file and all directories above it. They must be readable by the 'apache' user.

I am getting a different error to the effect that SELinux is disallowing access to the file. I don't know much about SELinux, but I see the error in /var/log/messages, so look there. If you have an SELinux error, please disable SELinux and tell me how you did it and see if that works.

To disable SELinux, see: https://docs.fedoraproject.org/en-US/Fedora/13/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-Enabling_and_Disabling_SELinux.html

I have never worked with SELinux before and have not tested the instructions at that link.

johnjkim commented 11 years ago

Fortunately, I didn't get the red error message.

I actually - and inadvertently - installed the knowledge directory in another knowledge directory. '/knowledge/knowledge/modules/wikipedia-kiwix', I updated the path to '/knowledge/modules/wikipedia-kiwix/library.xml'. The library.xml file is there. Funny, even with /knowledge/knowledge/.., I didn't get any /knowledge red error message with the initial setup.

Disabling SELinux got rid of the Wikipedia loading error entirely.

To disable SELinux

I wrote this paste for your reference. Github markdown didn't help with the # comments. Did it work for you?

http://pastebin.com/TtJXwVVG

johnjkim commented 11 years ago

I'm going to mark this as closed, unless there has been a problem.

braddockcg commented 11 years ago

Thanks John. This did work for me. Anna's problem was unrelated and has also been resolved. I'll add a note to INSTALL.txt that if you have SELinux on you need to do something about it.