I think we’ve „fixed“ it. The error was presumably created by Puppet which 
started the pulp services during the migration process. We’ve dropped the 
unit_deb* collections from mongodb and the update went through.


> Am 28.05.2019 um 10:06 schrieb Sebastian Sonne <[email protected]>:
>
> Hello everyone,
>
> I’ve just upgraded to 2.19.0 from 2.18.0. During pulp-manage-db I’ve received 
> the following error:
>
> Migration package pulp.server.db.migrations is up to date at version 29
> Applying pulp_deb.plugins.migrations version 2
> *******************************************************************************
> * Migrating Deb Package content...
> * Migrated units: 30181 of 301817
> * Migrated units: 60362 of 301817
> * Migrated units: 90543 of 301817
> * Migrated units: 120724 of 301817
> *******************************************************************************
> Applying migration 
> pulp_deb.plugins.migrations.0002_make_rel_fields_consistent failed.
>
> Halting migrations due to a migration failure.
> '$unset' is empty. You must specify a field like so: {$unset: {<field>: ...}}
> Traceback (most recent call last):
>  File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 240, 
> in main
>    return _auto_manage_db(options)
>  File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 307, 
> in _auto_manage_db
>    migrate_database(options)
>  File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 135, 
> in migrate_database
>    update_current_version=not options.test)
>  File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/models.py", 
> line 189, in apply_migration
>    migration.migrate()
>  File 
> "/usr/lib/python2.7/site-packages/pulp_deb/plugins/migrations/0002_make_rel_fields_consistent.py",
>  line 99, in migrate
>    {'$unset': remove_fields},)
>  File "/usr/lib64/python2.7/site-packages/pymongo/collection.py", line 835, 
> in update_one
>    bypass_doc_val=bypass_document_validation)
>  File "/usr/lib64/python2.7/site-packages/pymongo/collection.py", line 710, 
> in _update
>    _check_write_command_response([(0, result)])
>  File "/usr/lib64/python2.7/site-packages/pymongo/helpers.py", line 301, in 
> _check_write_command_response
>    raise WriteError(error.get("errmsg"), error.get("code"), error)
> WriteError: '$unset' is empty. You must specify a field like so: {$unset: 
> {<field>: …}}
>
> How can I fix this?
>
> Regards,
> Sebastian
>
> --
> Sebastian Sonne
> IT Systems Engineer (Linux)
> Systems & Applications
>
> noris network AG
> Thomas-Mann-Straße 16-20
> 90471 Nürnberg
> Deutschland
>
> Tel +49 911 9352 1184
> Fax +49 911 9352 100
> Mobil +49 151 41466075
> Email [email protected]
>
> noris network AG - Mehr Leistung als Standard
> Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Jürgen Städing
> Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689
> _______________________________________________
> Pulp-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/pulp-list


--
Sebastian Sonne
IT Systems Engineer (Linux)
Systems & Applications

noris network AG
Thomas-Mann-Straße 16-20
90471 Nürnberg
Deutschland

Tel +49 911 9352 1184
Fax +49 911 9352 100
Mobil +49 151 41466075
Email [email protected]

noris network AG - Mehr Leistung als Standard
Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Jürgen Städing
Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to