Bug 785894 - Sync Management view 500s if system reboots during repo sync
Summary: Sync Management view 500s if system reboots during repo sync
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
low
high vote
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-30 20:37 UTC by Og Maciel
Modified: 2019-09-26 13:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-10 21:36:36 UTC
Target Upstream Version:
mmccune: needinfo+


Attachments (Terms of Use)
Web UI displaying error (86.65 KB, image/png)
2012-01-30 20:37 UTC, Og Maciel
no flags Details

Description Og Maciel 2012-01-30 20:37:25 UTC
Created attachment 558449 [details]
Web UI displaying error

Description of problem:

During the process of synchronizing several RHEL 6.1 repositories, my CFSE system locked and had to be rebooted. Once the system came up, going to Content Management > Sync Management displays the following error in the web ui:

Pulp::Repository: 500 Internal Server Error
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.15 (Red Hat) Server at qetello01.usersys.redhat.com Port 443
(GET /pulp/api/repositories/)

Version-Release number of selected component (if applicable):

katello-0.1.206-1.el6.noarch
pulp-0.0.263-1.el6.noarch
candlepin-0.5.8-1.el6.noarch

How reproducible:


Steps to Reproduce:
1. Uploaded manifest
2. Chose RHEL 6.1 and RHEL 6.2 Optional and "regular" (not sure what the standard repo is called) repositories
3. From Content Management > Sync Management chose only the repos for RHL 6.1 and clicked the button to sync. After several minutes my CFSE system locked down and I had to reboot it.
  
Actual results:


Expected results:


Additional info:

katello.log:
===========

Started GET "/katello/sync_management/index" for 10.11.230.241 at Mon Jan 30 15:23:12 -0500 2012
  Processing by SyncManagementController#index as HTML
Pulp::Repository: 500 Internal Server Error <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at qetello01.usersys.redhat.com Port 443</address>
</body></html>
 (GET /pulp/api/repositories/)
Pulp::Repository: 500 Internal Server Error <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at qetello01.usersys.redhat.com Port 443</address>
</body></html>
 (GET /pulp/api/repositories/)
Pulp::Repository: 500 Internal Server Error <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at qetello01.usersys.redhat.com Port 443</address>
</body></html>
 (GET /pulp/api/repositories/): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at qetello01.usersys.redhat.com Port 443</address>
</body></html>
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in `process_result'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in `transmit'
/usr/lib/ruby/1.8/net/http.rb:543:in `start'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in `transmit'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/resource.rb:54:in `get'
/usr/share/katello/lib/http_resource.rb:92:in `get'
/usr/share/katello/lib/resources/pulp.rb:183:in `all'
/usr/share/katello/app/models/glue/pulp/repos.rb:116:in `prepopulate!'
/usr/share/katello/app/helpers/sync_management_helper.rb:39:in `collect_repos'
/usr/share/katello/app/controllers/sync_management_controller.rb:79:in `index'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/abstract_controller/base.rb:150:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/rendering.rb:11:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/abstract_controller/callbacks.rb:18:in `process_action'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:457:in `_run__1945219280__process_action__199225275__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:221:in `_conditional_callback_around_2661'
/usr/share/katello/lib/util/threadsession.rb:79:in `thread_locals'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:220:in `_conditional_callback_around_2661'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:451:in `_run__1945219280__process_action__199225275__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:410:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:94:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:94:in `run_callbacks'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/abstract_controller/callbacks.rb:17:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/rescue.rb:17:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/notifications.rb:52:in `instrument'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/notifications.rb:52:in `instrument'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/abstract_controller/base.rb:119:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/abstract_controller/rendering.rb:41:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal.rb:138:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_controller/metal.rb:178:in `action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:62:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:27:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.7.1/lib/rack/mount/route_set.rb:150:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.7.1/lib/rack/mount/code_generation.rb:93:in `recognize'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.7.1/lib/rack/mount/code_generation.rb:68:in `optimized_each'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.7.1/lib/rack/mount/code_generation.rb:92:in `recognize'
/usr/lib/ruby/gems/1.8/gems/rack-mount-0.7.1/lib/rack/mount/route_set.rb:141:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:493:in `call'
/usr/lib/ruby/gems/1.8/gems/warden-1.0.3/lib/warden/manager.rb:35:in `call'
/usr/lib/ruby/gems/1.8/gems/warden-1.0.3/lib/warden/manager.rb:34:in `catch'
/usr/lib/ruby/gems/1.8/gems/warden-1.0.3/lib/warden/manager.rb:34:in `call'
/usr/lib/ruby/gems/1.8/gems/sass-3.1.7/lib/sass/../sass/plugin/rack.rb:54:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/head.rb:14:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/methodoverride.rb:24:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/flash.rb:182:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/cookies.rb:302:in `call'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:32:in `call'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:12:in `cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:31:in `call'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:46:in `call'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/sendfile.rb:102:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
/usr/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/rack/logger.rb:13:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/runtime.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/lock.rb:34:in `call'
/usr/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:168:in `call'
/usr/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:77:in `send'
/usr/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:77:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/urlmap.rb:52:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/urlmap.rb:46:in `each'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/urlmap.rb:46:in `call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:84:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:57:in `process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:42:in `receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `send'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/bin/thin:6
/usr/share/katello/script/thin:59:in `load'
/usr/share/katello/script/thin:59
Rendering 500:Pulp::Repository: 500 Internal Server Error &lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt;
&lt;html&gt;&lt;head&gt;
&lt;title&gt;500 Internal Server Error&lt;/title&gt;
&lt;/head&gt;&lt;body&gt;
&lt;h1&gt;Internal Server Error&lt;/h1&gt;
&lt;p&gt;The server encountered an internal error or
misconfiguration and was unable to complete
your request.&lt;/p&gt;
&lt;p&gt;Please contact the server administrator,
 root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.&lt;/p&gt;
&lt;p&gt;More information about this error may be available
in the server error log.&lt;/p&gt;
&lt;hr&gt;
&lt;address&gt;Apache/2.2.15 (Red Hat) Server at qetello01.usersys.redhat.com Port 443&lt;/address&gt;
&lt;/body&gt;&lt;/html&gt;
 (GET /pulp/api/repositories/)
Rendered layouts/_org.haml (1.1ms)
Rendered layouts/_header.haml (7.0ms)
Rendered layouts/_footer.haml (0.9ms)
Rendered common/_config.html.haml (0.6ms)
Rendered layouts/_ajax_notices.haml (4.0ms)
Rendered layouts/_notification.haml (0.5ms)
Rendered common/_common_i18n.html.haml (0.7ms)
Rendered common/_edit_i18n.html.haml (1.4ms)
Rendered common/500.html.haml within layouts/katello (614.7ms)
Completed 500 Internal Server Error in 775ms (Views: 587.7ms | ActiveRecord: 87.7ms)

pulp.log:
========

2012-01-30 15:15:36,768 1373:139787758786528: pulp.server.db.connection:INFO: connection:46 Attempting Database connection with seeds = localhost
2012-01-30 15:15:36,832 1373:139787758786528: pulp.server.db.connection:CRITICAL: connection:53 Database initialization failed
2012-01-30 15:17:02,285 1373:139787471816448: pulp.server.db.connection:INFO: connection:46 Attempting Database connection with seeds = localhost
2012-01-30 15:17:02,364 1373:139787471816448: pulp.server.db.connection:CRITICAL: connection:53 Database initialization failed
2012-01-30 15:22:42,749 1373:139787398387456: pulp.server.db.connection:INFO: connection:46 Attempting Database connection with seeds = localhost
2012-01-30 15:22:42,793 1373:139787398387456: pulp.server.db.connection:CRITICAL: connection:53 Database initialization failed
2012-01-30 15:22:58,222 1373:139787471816448: pulp.server.db.connection:INFO: connection:46 Attempting Database connection with seeds = localhost
2012-01-30 15:22:58,224 1373:139787471816448: pulp.server.db.connection:CRITICAL: connection:53 Database initialization failed
2012-01-30 15:23:12,271 1373:139787398387456: pulp.server.db.connection:INFO: connection:46 Attempting Database connection with seeds = localhost
2012-01-30 15:23:12,274 1373:139787398387456: pulp.server.db.connection:CRITICAL: connection:53 Database initialization failed
2012-01-30 15:28:59,545 1373:139787471816448: pulp.server.db.connection:INFO: connection:46 Attempting Database connection with seeds = localhost
2012-01-30 15:28:59,589 1373:139787471816448: pulp.server.db.connection:CRITICAL: connection:53 Database initialization failed

Comment 1 Og Maciel 2012-01-30 20:44:59 UTC
httpd log:
=========

[Mon Jan 30 15:15:32 2012] [warn] mod_wsgi: Compiled for Python/2.6.5.
[Mon Jan 30 15:15:32 2012] [warn] mod_wsgi: Runtime using Python/2.6.6.
[Mon Jan 30 15:15:32 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.3 Python/2.6.6 configured -- resuming normal operations
[Mon Jan 30 15:15:36 2012] [error] 2012-01-30 15:15:36,832 pulp.server.db.connection:CRITICAL: Database initialization failed
[Mon Jan 30 15:15:36 2012] [error] mod_wsgi (pid=1373): Target WSGI script '/srv/pulp/webservices.wsgi' cannot be loaded as Python module.
[Mon Jan 30 15:15:36 2012] [error] mod_wsgi (pid=1373): Exception occurred processing WSGI script '/srv/pulp/webservices.wsgi'.
[Mon Jan 30 15:15:36 2012] [error] Traceback (most recent call last):
[Mon Jan 30 15:15:36 2012] [error]   File "/srv/pulp/webservices.wsgi", line 16, in <module>
[Mon Jan 30 15:15:36 2012] [error]     from pulp.server.webservices.application import wsgi_application
[Mon Jan 30 15:15:36 2012] [error]   File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 27, in <module>
[Mon Jan 30 15:15:36 2012] [error]     db_connection.initialize()
[Mon Jan 30 15:15:36 2012] [error]   File "/usr/lib/python2.6/site-packages/pulp/server/db/connection.py", line 47, in initialize
[Mon Jan 30 15:15:36 2012] [error]     _connection = pymongo.Connection(seeds)
[Mon Jan 30 15:15:36 2012] [error]   File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 305, in __init__
[Mon Jan 30 15:15:36 2012] [error]     self.__find_master()
[Mon Jan 30 15:15:36 2012] [error]   File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 509, in __find_master
[Mon Jan 30 15:15:36 2012] [error]     raise AutoReconnect("could not find master/primary")
[Mon Jan 30 15:15:36 2012] [error] AutoReconnect: could not find master/primary
[Mon Jan 30 15:17:02 2012] [error] 2012-01-30 15:17:02,364 pulp.server.db.connection:CRITICAL: Database initialization failed
[Mon Jan 30 15:22:42 2012] [error] 2012-01-30 15:22:42,793 pulp.server.db.connection:CRITICAL: Database initialization failed

Comment 2 Mike McCune 2012-02-13 23:49:32 UTC
so are you saying we need to fix:

1) The fact that there was a 500 error thrown while rebooting the box Katello was running on?

2) The fact that you had to reboot while syncing?

If it is (1) you are hoping we address I don't think the Sync Management page or really any other page in the UI is built to survive the server being rebooted out from underneath it and I doubt we will do anything to address this.

if it is (2), and your server locked up while syncing and it was the fault of Katello then we definitely need to look into this.

Comment 3 Og Maciel 2012-02-15 14:08:30 UTC
I believe it is actually (3): I don't know exactly why my system locked up, but I had to reboot it while the sync process was running. When it came back, visiting Content Management > Sync Management gave me the 500 (only this page).

Comment 4 Mike McCune 2012-02-23 23:08:16 UTC
I wouldn't expect all of Katello's webui to function 100% properly during a reboot.  Page refreshes and system errors are highly likely while the site is down.

To me this is just more the nature of most webapps.  Going to close but reopen if you feel strongly we need to address this. 

I imagine there are other places in the UI where you would see 500 errors while the server underneath was rebooting.

Comment 5 dipu 2012-05-24 11:53:10 UTC
Mike,

>> 1) The fact that there was a 500 error thrown while rebooting the box Katello was running on?
   I also facing the same issue, I was syncing a custom repo and I rebooted the machine for some other reason. Once the server came back online, I am getting 'Resources::Pulp::Repository: 500 Internal Server Error' when clicking on many links in the katello UI(for eg: sync management -> sync status. I could see the following error message in the /var/log/pulp/pulp.log

--------------------
2012-05-24 11:40:18,981 3596:139992417195776: pulp.server.db.connection:INFO: connection:46 Attempting Database connection with seeds = localhost
2012-05-24 11:40:18,982 3596:139992417195776: pulp.server.db.connection:CRITICAL: connection:53 Database initialization failed
---------------------
[root@vm43 ~]# /etc/init.d/pulp-server status
mongod dead but subsys locked

Tried restarting mongod, pulp-server etc but issue still persists.

I think this should be fixed as in a real world scenario sometimes there are chances for a system reboot(for what ever reason) when content sync is in progress.

~dipu

Comment 6 Mike McCune 2012-05-30 15:06:57 UTC
this got re-opened since Comment 5 indicates that pulp actually never recovers from a reboot.  Need to get mongod able to safely handle a hard reboot without a proper shutdown.

This isn't an actual Katello bug in itself, is more of an issue with mongod


Note You need to log in before you can comment on or make changes to this bug.