[katello-devel] Nightly is broken

Martin Bacovsky mbacovsk at redhat.com
Tue Feb 12 15:12:27 UTC 2013


On 02/12/2013 03:59 PM, Justin Sherrill wrote:
> On 02/12/2013 09:56 AM, Martin Bacovsky wrote:
>> On 02/12/2013 01:15 PM, Miroslav Suchý wrote:
>>> Today's nightly Katello is broken - it does not start and webui 
>>> reports:
>>> Service Temporarily Unavailable
>>>
>>> From:
>>> /var/log/httpd/error_log
>>>
>>> [Tue Feb 12 06:43:53 2013] [error] 2013-02-12 06:43:53,293 
>>> pulp.server.db.connection:CRITICAL: Database initialization failed
>>> [Tue Feb 12 06:43:53 2013] [error] mod_wsgi (pid=24301): Target WSGI 
>>> script '/srv/pulp/webservices.wsgi' cannot be loaded as Python module.
>>> [Tue Feb 12 06:43:53 2013] [error] mod_wsgi (pid=24301): Exception 
>>> occurred processing WSGI script '/srv/pulp/webservices.wsgi'.
>>> [Tue Feb 12 06:43:53 2013] [error] Traceback (most recent call last):
>>> [Tue Feb 12 06:43:53 2013] [error]   File 
>>> "/srv/pulp/webservices.wsgi", line 16, in <module>
>>> [Tue Feb 12 06:43:53 2013] [error]     from 
>>> pulp.server.webservices.application import wsgi_application
>>> [Tue Feb 12 06:43:53 2013] [error]   File 
>>> "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", 
>>> line 40, in <module>
>>> [Tue Feb 12 06:43:53 2013] [error] db_connection.initialize()
>>> [Tue Feb 12 06:43:53 2013] [error]   File 
>>> "/usr/lib/python2.6/site-packages/pulp/server/db/connection.py", 
>>> line 47, in initialize
>>> [Tue Feb 12 06:43:53 2013] [error]     _connection = 
>>> pymongo.Connection(seeds)
>>> [Tue Feb 12 06:43:53 2013] [error]   File 
>>> "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 
>>> 381, in __init__
>>> [Tue Feb 12 06:43:53 2013] [error]     self.__find_node()
>>> [Tue Feb 12 06:43:53 2013] [error]   File 
>>> "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 
>>> 659, in __find_node
>>> [Tue Feb 12 06:43:53 2013] [error]     raise AutoReconnect(', 
>>> '.join(errors))
>>> [Tue Feb 12 06:43:53 2013] [error] AutoReconnect: could not connect 
>>> to localhost:27017: [Errno 111] Connection refused
>>>
>>> Confirmed on two independent machines.
>>>
>>> If you broke it, please fix it, please.
>>
>> I found solution/workaround for this issue.
>>
>> sed -i 's/seeds: localhost/seeds: 127.0.0.1/' /etc/pulp/server.conf
>> service mongod restart
>> service httpd restart
>>
>> If anyone has idea why that worked, please let me know.
> is localhost defined in  /etc/hosts  ?
>
Yes it is. it resolves and I'm even able to connect and use the db via:
$ mongo localhost:27017/pulp_database



> -Justin
>
>>
>> Martin
>>
>>
>> _______________________________________________
>> katello-devel mailing list
>> katello-devel at redhat.com
>> https://www.redhat.com/mailman/listinfo/katello-devel
>
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel




More information about the katello-devel mailing list