local-admin@netbox:/opt/netbox/netbox$ sudo python3 manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, circuits, contenttypes, dcim, extras, ipam, secrets, sessions, taggit, tenancy, users, virtualization
Running migrations:
Applying extras.0019_tag_taggeditem... OK
Applying circuits.0015_custom_tag_models... OK
Applying circuits.0016_3569_circuit_fields... OK
Applying circuits.0017_circuittype_description... OK
Applying tenancy.0006_custom_tag_models... OK
Applying virtualization.0009_custom_tag_models... OK
Applying secrets.0006_custom_tag_models... OK
Applying ipam.0025_custom_tag_models... OK
Applying dcim.0070_custom_tag_models... OK
Applying extras.0020_tag_data_squashed_0021_add_color_comments_changelog_to_tag... OK
Applying dcim.0071_device_components_add_description_squashed_0088_powerfeed_available_power...
Updating cable device terminations...
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.ObjectInUse: cannot ALTER TABLE "dcim_rack" because it has pending trigger events
Server Error
A database programming error was detected while processing this request. Common causes include the following:
Database migrations missing - When upgrading to a new NetBox release, the upgrade script must be run to apply any new database migrations. You can run migrations manually by executing python3 manage.py migrate from the command line.
Unsupported PostgreSQL version - Ensure that PostgreSQL version 9.4 or higher is in use. You can check this by connecting to the database using NetBox's credentials and issuing a query for SELECT VERSION().
The complete exception is provided below:
<class 'django.db.utils.ProgrammingError'>
column dcim_powerport._connected_poweroutlet_id does not exist
LINE 1: ... integer)) AS "_nat3" FROM "dcim_powerport" WHERE "dcim_powe...
Running PSQL 10
Brady
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/478a49a4-3e55-4ada-9bc7-90ef50c864a1%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/601b15fc-c49a-46ed-a5f5-0c7fad387f14%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/601b15fc-c49a-46ed-a5f5-0c7fad387f14%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/30c1cbad-d40c-4e7f-906d-12a86adec67a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/ee53334f-0029-4742-a815-24173b2538e4%40googlegroups.com.
After some testing it seems that a specific squashed migration (0071_device_components_add_description_squashed_0088_powerfeed_available_power) was triggering an exception under certain conditions. I've removed this file from the v2.7.9 release, which will cause NetBox to apply the individual migrations instead. This should mitigate the issue for anyone now upgrading to v2.7.9+ from an older release.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/ee53334f-0029-4742-a815-24173b2538e4%40googlegroups.com.
--Jeremy Stretch
Sr. Network Automation Engineer
Network to Code, LLC