Project

Profile

Help

Issue #4432

closed

Pulp upgrade from 2.7 to 2.18 logs says Database initialization failed.

Added by ymadav about 5 years ago. Updated about 5 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
OS:
RHEL 7
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Hi All,

I have reproduced my working environment 2.7 in my non-prod environment and created the repos and working fine without any issues.I have upgraded the pulp package from 2.7 to 2.18 version and have mongodb running with 2.6.We have dedicated servers for each components.

When i run the pulp-manage-db it throws me error saying "DuplicateKeyError: E11000 duplicate key error index: pulp_database.repos.$repo_id_-1 dup key: { : null }" and also during the restart of httpd service i see that pulp_database initialization failed.I am attaching the /var/log/messages and output of pulp-manage-db output.Can some one let me know if you have faced certain type of issue.

When i run sudo -u apache pulp-manage-db --dry-run it runs fine but without dry-run it encounters with duplicate error and fails.


Files

error_log.docx (14.2 KB) error_log.docx ymadav, 02/19/2019 11:21 AM
Pulp_error_log.rtf (20.9 KB) Pulp_error_log.rtf ymadav, 02/19/2019 03:33 PM
managedb_2.8_firstrun (9.48 KB) managedb_2.8_firstrun upgrade file from 2.7 to 2.8 ymadav, 02/25/2019 03:30 PM
managedb_2.9_firstrun (4.14 KB) managedb_2.9_firstrun upgrade file from 2.8 to 2.9 ymadav, 02/25/2019 03:30 PM

Also available in: Atom PDF