[Moin-user] data_dir permission problem

Mike Fechner mike.fechner at consultingwerk.de
Tue Sep 19 13:41:58 EDT 2006


wwwrun is listed as the userid in the /etc/apache/uid.conf file and the apache processes also show this user is.

Here's the traceback:

Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

/usr/lib/python2.4/site-packages/MoinMoin/request.py in __init__ (self=<MoinMoin.request.RequestCGI object>, properties={})

1373 
1374 self._setup_vars_from_std_env(os.environ) 
1375 RequestBase.__init__(self, properties) 
1376 
1377 except Exception, err: 
global RequestBase = <class 'MoinMoin.request.RequestBase'> RequestBase.__init__ = <unbound method RequestBase.__init__> self = <MoinMoin.request.RequestCGI object> properties = {} 
/usr/lib/python2.4/site-packages/MoinMoin/request.py in __init__ (self=<MoinMoin.request.RequestCGI object>, properties={})

147 self.__dict__.update(properties) 
148 try: 
149 self._load_multi_cfg() 
150 except error.NoConfigMatchedError: 
151 self.makeForbidden(404, 'No wiki configuration matching the URL found!\r\n') 
self = <MoinMoin.request.RequestCGI object> self._load_multi_cfg = <bound method RequestCGI._load_multi_cfg of <MoinMoin.request.RequestCGI object>> 
/usr/lib/python2.4/site-packages/MoinMoin/request.py in _load_multi_cfg (self=<MoinMoin.request.RequestCGI object>)

303 if not hasattr(self, 'cfg'): 
304 self.clock.start('load_multi_cfg') 
305 self.cfg = multiconfig.getConfig(self.url) 
306 self.clock.stop('load_multi_cfg') 
307 
self = <MoinMoin.request.RequestCGI object> self.cfg undefined global multiconfig = <module 'MoinMoin.multiconfig' from '/usr/lib/python2.4/site-packages/MoinMoin/multiconfig.pyc'> multiconfig.getConfig = <function getConfig> self.url = 'www.extreme-dynamics.org/ExtremeDynamics/' 
/usr/lib/python2.4/site-packages/MoinMoin/multiconfig.py in getConfig (url='www.extreme-dynamics.org/ExtremeDynamics/')

160 config = _config_cache[configName] 
161 except KeyError: 
162 config = _makeConfig(configName) 
163 config = _config_cache.setdefault(configName, config) 
164 return config 
config undefined global _makeConfig = <function _makeConfig> configName = 'wikiconfig' 
/usr/lib/python2.4/site-packages/MoinMoin/multiconfig.py in _makeConfig (name='wikiconfig')

97 module, mtime = _importConfigModule(name) 
98 configClass = getattr(module, 'Config') 
99 cfg = configClass(name) 
100 cfg.cfg_mtime = max(mtime, _farmconfig_mtime) 
101 except ImportError, err: 
cfg undefined configClass = <class wikiconfig.Config> name = 'wikiconfig' 
/usr/lib/python2.4/site-packages/MoinMoin/multiconfig.py in __init__ (self=<wikiconfig.Config instance>, siteid='wikiconfig')

488 self._decode() 
489 
490 self._check_directories() 
491 
492 if not isinstance(self.superuser, list): 
self = <wikiconfig.Config instance> self._check_directories = <bound method Config._check_directories of <wikiconfig.Config instance>> 
/usr/lib/python2.4/site-packages/MoinMoin/multiconfig.py in _check_directories (self=<wikiconfig.Config instance>)

633 also the spelling of the directory name. 
634 ''' % {'attr': attr, 'path': path,} 
635 raise error.ConfigurationError(msg) 
636 
637 def _loadPluginModule(self): 
global error = <module 'MoinMoin.error' from '/usr/lib/python2.4/site-packages/MoinMoin/error.pyc'> error.ConfigurationError = <class MoinMoin.error.ConfigurationError> msg = '\ndata_underlay_dir "/var/moin/ExtremeDynamics/un.... Check\nalso the spelling of the directory name.\n' 
ConfigurationError
data_underlay_dir "/var/moin/ExtremeDynamics/underlay/" 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. 

exceptions = <bound method ConfigurationError.exceptions of <MoinMoin.error.ConfigurationError instance>> 
innerException = (<class exceptions.KeyError>, <exceptions.KeyError instance>, <traceback object>) 
message = '\ndata_underlay_dir "/var/moin/ExtremeDynamics/un.... Check\nalso the spelling of the directory name.\n' 
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

/usr/lib/python2.4/site-packages/MoinMoin/multiconfig.py in getConfig (url='www.extreme-dynamics.org/ExtremeDynamics/')

158 configName = _getConfigName(url) 
159 try: 
160 config = _config_cache[configName] 
161 except KeyError: 
162 config = _makeConfig(configName) 
config undefined global _config_cache = {} configName = 'wikiconfig' 
KeyError
'wikiconfig'

args = ('wikiconfig',) 
System Details
Date: Tue, 19 Sep 2006 17:35:09 +0000 
Platform: Linux www 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 
Python: Python 2.4 (/usr/bin/python) 
MoinMoin: Release 1.5.5a (release) 

-----Ursprüngliche Nachricht-----
Von: moin-user-bounces at lists.sourceforge.net [mailto:moin-user-bounces at lists.sourceforge.net] Im Auftrag von Thomas Waldmann
Gesendet: Dienstag, 19. September 2006 19:06
Cc: moin-user at lists.sourceforge.net
Betreff: Re: [Moin-user] data_dir permission problem


> The pages directory is also owned by wwwrun (www) and has full r/w/x for everybody.
>   
Strange. Maybe join us on IRC, #moin on irc.freenode.net to debug this.

We could remove the error handling in moin for that case and just look what happens. If there is some backtrace, we maybe would see the problem.

BTW, wwwrun is for sure the user your moin gets executed as?


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Moin-user mailing list
Moin-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user






More information about the Moin-user mailing list