Description

MoinMoin 1.5.3 / 1.5.4 reports an error that data_dir does not exist.

This problem is true both for CGI and standalone server mode. The data directory exists (a subdirectory of where moin.cgi and moin.py is located), is owned by Apache user and group and permissions are all set. data_dir is pointed to by absolute path.

The problem appears on Fedora Core 3 with SELinux security model enabled.

Steps to reproduce

  1. install MoinMoin

  2. create instance
  3. try to run MoinMoin - get the error message (see example)

Example

data_dir "/...path.../data" does not exists, or has incorrect ownership or permissions.

Make sure the directory and the subdirectory pages are owned by the web server and are readable, writable and executable by the web server user and group.

It is recommended to use absolute paths and not relative paths. Check also the spelling of the directory name.

If you want to report a bug, please save this page and attach it to your bug report.

Details

traceback.html

Workaround

Discussion

This might be an environment error. Hope that someone can suggest how to solve it.

(Follow-up) Did get the standalone version running by changing absolute paths in wikiconfig.py to relative ( './data' ). It is strange that Python did not find the directory when given the absolute path, but does find it by relative path. CGI version still does not work - nor with absolute, nor relative paths.

(Solved) Reason of the problem is SELinux security model - if enforced, it prevents Apache from accessing files even when normal linux file permissions are all ok. For more info see FC3 SELinux FAQ.

Comment by OlavVitters:

chcon -t httpd_sys_content_t -R underlay data

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/DataDirectoryPermissionsError (last edited 2007-10-29 19:20:36 by localhost)