Project

Profile

Help

Issue #483

closed

pulp-manage-db doesn't set up logging early enough

Added by rbarlow about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.4 Beta
Platform Release:
2.6.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

We had a user today who has some exception happening early on during pulp-manage-db. We aren't sure what the exception is because it happens before pulp-manage-db sets up logging. This led to this error message on stderr:

No handler could be found for logger "pulp.server.db.connection"

Here are steps to reproduce:

1) Stop mongod (service mongod stop)

2) Run pulp-manage-db

3) Observe that pulp-manage-db seems to hang forever, and prints this message to the screen: 'No handler could be found for logger "pulp.server.db.connection"'

We should fix it so that the user is given an informative message that Mongo can't be reached, and pulp-manage-db should exit.

To verify that this bug is fixed:

1) Stop mongod (service mongod stop)

2) Run pulp-manage-db

3) Observe the pulp-manage-db exits, and prints a useful error message.

+ This bug was cloned from Bugzilla Bug #1127846 +

Actions #1

Updated by amacdona@redhat.com about 9 years ago

This has been fixed by several commits over the last couple of months which will be included in 2.6.

+ This comment was cloned from Bugzilla #1127846 comment 1 +

Actions #2

Updated by cduryee about 9 years ago

fixed in pulp 2.6.0-0.2.beta

+ This comment was cloned from Bugzilla #1127846 comment 2 +

Actions #3

Updated by igulina@redhat.com about 9 years ago

rpm -qa | grep pulp-server

pulp-server-2.6.0-0.2.beta.el6.noarch

service mongod stop

Stopping mongod: [ OK ]

sudo -u apache pulp-manage-db

Could not connect to MongoDB at localhost:27017:
Cannot connect to database default :
could not connect to localhost:27017: [Errno 111] Connection refused
... Waiting 1 seconds and trying again.
Could not connect to MongoDB at localhost:27017:
Cannot connect to database default :
could not connect to localhost:27017: [Errno 111] Connection refused
... Waiting 1 seconds and trying again.
Could not connect to MongoDB at localhost:27017:
Cannot connect to database default :
could not connect to localhost:27017: [Errno 111] Connection refused
... Waiting 1 seconds and trying again.

service mongod start

Starting mongod: [ OK ]

sudo -u apache pulp-manage-db

Mongo database for connection is version 2.4.12
Loading content types.
....
Database migrations complete.

+ This comment was cloned from Bugzilla #1127846 comment 3 +

Actions #4

Updated by bmbouter about 9 years ago

  • Severity changed from Medium to 2. Medium
Actions #5

Updated by rbarlow about 9 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #7

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF