[Pulp-list] Fresh Start with Pulp Database

Jay Dobies jason.dobies at redhat.com
Tue Nov 15 21:50:36 UTC 2011


On 11/15/2011 04:45 PM, Phil Gardner wrote:
> Is there an easy way to just start the mongo database from scratch, like
> a script that runs when the RPMs are first installed? I think mine is
> hosed from trying to move the database to another partition. Keep
> getting this error when trying to list the repos in pulp -
>
> # pulp-admin repo list
> error:  error: operation failed: IndexError: list index out of range
>
> db.repairDatabase had no effect.

Not exactly. You can do the following:

* Go into mongo's shell (just type mongo) and run:
 > use pulp_database
 > db.dropDatabase()

* Exit the shell and run "pulp-migrate"

* Restart httpd (that part is needed to seed the database with some 
initial stuffs)

That should be all you need to do.


-- 
Jay Dobies
Freenode: jdob @ #pulp
http://pulpproject.org | http://blog.pulpproject.org




More information about the Pulp-list mailing list