Description of problem: SST run ends with 2013-07-24 09:17:12,957 INFO splice.common.connect connect:_request: Received '500' from 'POST /splice/api//v1/spliceserver/' Error uploading splice server data In apache log we have the following: [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] mod_wsgi (pid=4846): Exception occurred processing WSGI script '/srv/splice/webservices.wsgi'. [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] Traceback (most recent call last): [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 219, in __call__ [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] self.load_middleware() [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 39, in load_middleware [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] for middleware_path in settings.MIDDLEWARE_CLASSES: [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 184, in inner [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] self._setup() [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 42, in _setup [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] self._wrapped = Settings(settings_module) [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 93, in __init__ [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] mod = importlib.import_module(self.SETTINGS_MODULE) [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] __import__(name) [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib/python2.6/site-packages/splice/checkin_service/settings.py", line 84, in <module> [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] CELERY_ENABLED = config.CONFIG.getboolean('celery', 'enabled') [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib64/python2.6/ConfigParser.py", line 349, in getboolean [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] v = self.get(section, option) [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] File "/usr/lib64/python2.6/ConfigParser.py", line 532, in get [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] raise NoSectionError(section) [Wed Jul 24 09:17:12 2013] [error] [client 127.0.0.1] NoSectionError: No section: 'celery' The problem is that apache user is not able to read /etc/splice/splice.conf [root@ec2-54-216-130-0 ~]# id apache uid=48(apache) gid=48(apache) groups=48(apache),182(katello) [root@ec2-54-216-130-0 ~]# ls -al /etc/splice/splice.conf -rw-r-----. 1 root splice 613 Jul 23 14:46 /etc/splice/splice.conf I suggest we add 'apache' to splice group on install or something like this.. Version-Release number of selected component (if applicable): splice-common-config-0.138-1.el6.noarch How reproducible: always Steps to Reproduce: 1. Run SST Actual results: Error 500 from splice-server Expected results: Upload works Additional info:
https://github.com/splice/splice-server/commit/ef6ad0670cbe94e3e1870422e9477d31af5e8290 Issue is that mod_wsgi was running as apache/apache. I've changed it so our mod_wsgi app now runs apache/splice.
SNAP0 contains these bug fixes. Moving to ON_QA.
Verified with splice-0.142-1.el6sam.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2013-1390.html