Skip to content

Upgrading from netbox 3.7.8 to 4.4.9 or 4.3.7 #21061

@remchuk

Description

@remchuk

NetBox Edition

NetBox Community

NetBox Version

v3.7.8

Python Version

3.11

Steps to Reproduce

We are using the image version of Netbox, so I tried upgrading from Netbox 3.5.6 to 3.7.8, so I uploaded the new image and from the Netbox-rqworker I run python3 manage.py migrate and it worked.

Later I tried doing the same procedure using 4.4.9 or 4.3.7.

Expected Behavior

The expected behavior is that The new 4.X.x version would work as 3.7.8 worked.

Observed Behavior

The script gave out the following error and killed the pod.

ALTER TABLE users_user_object_permissions RENAME CONSTRAINT users_objectpermission_users_user_id_16c0905d_fk_auth_user_id TO users_user_object_permissions_user_id_9d647aac_fk_users_user_id`; (params None)

psycopg.errors.UndefinedObject: constraint "users_user_object_permissions_user_id_9d647aac_fk_users_user_id" for table "users_user_object_permissions" does not exist

django.db.utils.ProgrammingError: constraint "users_user_object_permissions_user_id_9d647aac_fk_users_user_id" for table "users_user_object_permissions" does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    netboxseverity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationtype: bugA confirmed report of unexpected behavior in the application

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions