I fear, there is a broken migration (That will probably have worked on
an empty dataset). Can you please file a bug at
https://github.com/pulp/pulp_rpm/issues ? It would be very helpful to
include the version of pulp-rpm you are coming from and the one you
upgrade to. Also can you please start the `pulpcore-manager migrate`
command by hand and tell which migration emits this error?

Thanks for reaching out!
  Matthias

On Tue, Feb 15, 2022 at 8:01 PM Briand, Sheldon
<sheldon.bri...@nrc-cnrc.gc.ca> wrote:
>
> Hi,
>
>
>
> I’m trying to upgrade a non-production pulp 3 server from version 3.15.2 to 
> 3.17.3.  I’m using the ansible installer for the upgrade.
>
>
>
> I’m not sure if that is a valid upgrade path.  Should I have gone to 3.16 
> first?
>
>
>
> If it is a valid upgrade path I’m receiving this error at the following step:
>
>
>
> TASK [pulp.pulp_installer.pulp_database_config : Run database migrations]
>
> fatal: FAILED! => {"changed": true, "cmd": 
> ["/usr/local/lib/pulp/bin/pulpcore-manager", "migrate", "--no-input"], 
> "delta": "0:00:03.164289", "end": "2022-02-15 13:00:45.103362", "msg": 
> "non-zero return code", "rc": 1, "start": "2022-02-15 13:00:41.939073", 
> "stderr": "Traceback (most recent call last):\n  File 
> \"/usr/local/lib/pulp/lib64/python3.8/site-packages/django/db/backends/utils.py\",
>  line 84, in _execute\n    return self.cursor.execute(sql, 
> params)\npsycopg2.errors.ObjectInUse: cannot ALTER TABLE 
> \"rpm_distributiontree\" because it has pending trigger events\n\n\nThe above 
> exception was the direct cause of the following exception:\n\nTraceback (most 
> recent call last):\n  File \"/usr/local/lib/pulp/bin/pulpcore-manager\", line 
> 8, in <module>\n    sys.exit(manage())\n
>
>
>
> I’m wondering how I can fix the error?
>
>
>
> Thanks,
>
> -Sheldon
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/pulp-list


_______________________________________________
Pulp-list mailing list
Pulp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/pulp-list

Reply via email to