Closed
Description
If I start the services as cmsuser in my home directory (which obviously isn't accessible to cmsuser) everything works for all services except ResourceService. I get this error:
luca@luca-thinkpad ~ $ sudo -u cmsuser cmsResourceService -a 1
Using configuration file /usr/local/etc/cms.conf.
2013/03/11 22:57:33 - INFO [ResourceService,0] ResourceService 0 up and running!
2013/03/11 22:57:33 - INFO [ResourceService,0] Restarting (AdminWebServer, 0)...
2013/03/11 22:57:33 - CRITICAL [ResourceService,0] Exception not managed, quitting. Exception `OSError(13, 'Permission denied')' and traceback `Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cms-1.1.0pre-py2.7.egg/cms/async/AsyncLibrary.py", line 271, in run
self._step()
File "/usr/lib/python2.7/site-packages/cms-1.1.0pre-py2.7.egg/cms/async/AsyncLibrary.py", line 290, in _step
self._trigger()
File "/usr/lib/python2.7/site-packages/cms-1.1.0pre-py2.7.egg/cms/async/AsyncLibrary.py", line 332, in _trigger
ret = func()
File "/usr/lib/python2.7/site-packages/cms-1.1.0pre-py2.7.egg/cms/service/ResourceService.py", line 171, in _restart_services
cwd=cwd
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied: '.'
'
I don't know exactly what it's doing. I think we should investigate and fix this.
BTW, this is yet another hint that it's probably a good idea to change the way RS starts and detects the other services running on the machine.