Upgrade fails 3.1.x to 3.7.8 #9711

Closed
opened 2025-12-29 21:21:26 +01:00 by adam · 0 comments
Owner

Originally created by @inDane on GitHub (May 21, 2024).

Deployment Type

Self-hosted

NetBox Version

v3.1.x

Python Version

3.10

Steps to Reproduce

Python Version is 3.8.

cd /opt/netbox
sudo git pull
sudo git checkout v3.7.8
sudo ./upgrade.sh

Expected Behavior

The upgrade script should succeed.

Observed Behavior

The upgrade-script fails at db migration. It cant find file "base/16384/24621" and fails.

Operations to perform:
  Apply all migrations: account, admin, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, vpn, wireless
Running migrations:
  Applying dcim.0144_fix_cable_abs_length... OK
  Applying dcim.0145_site_remove_deprecated_fields... OK
  Applying users.0002_standardize_id_fields... OK
  Applying users.0003_token_allowed_ips_last_used... OK
  Applying users.0004_netboxgroup_netboxuser... OK
  Applying account.0001_initial... OK
  Applying wireless.0002_standardize_id_fields... OK
  Applying wireless.0003_created_datetimefield... OK
  Applying tenancy.0005_standardize_id_fields... OK
  Applying tenancy.0006_created_datetimefield... OK
  Applying tenancy.0007_contact_link... OK
  Applying wireless.0004_wireless_tenancy... OK
  Applying ipam.0054_vlangroup_min_max_vids... OK
  Applying extras.0068_configcontext_cluster_types...Traceback (most recent call last):
  File "/opt/netbox-git/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 87, in _execute
    return self.cursor.execute(sql)
  File "/opt/netbox-git/venv/lib/python3.8/site-packages/psycopg/cursor.py", line 732, in execute
    raise ex.with_traceback(None)
psycopg.errors.UndefinedFile: konnte Datei »base/16384/24621« nicht öffnen: Datei oder Verzeichnis nicht gefunden
CONTEXT:  SQL-Anweisung »SELECT fk."configcontext_id" FROM ONLY "public"."extras_configcontext_cluster_types" fk LEFT OUTER JOIN ONLY "public"."extras_configcontext" pk ON ( pk."id" OPERATOR(pg_catalog.=) fk."configcontext_id") WHERE pk."id" IS NULL AND (fk."configcontext_id" IS NOT NULL)«

Originally created by @inDane on GitHub (May 21, 2024). ### Deployment Type Self-hosted ### NetBox Version v3.1.x ### Python Version 3.10 ### Steps to Reproduce Python Version is 3.8. ``` cd /opt/netbox sudo git pull sudo git checkout v3.7.8 sudo ./upgrade.sh ``` ### Expected Behavior The upgrade script should succeed. ### Observed Behavior The upgrade-script fails at db migration. It cant find file "base/16384/24621" and fails. ``` Operations to perform: Apply all migrations: account, admin, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, vpn, wireless Running migrations: Applying dcim.0144_fix_cable_abs_length... OK Applying dcim.0145_site_remove_deprecated_fields... OK Applying users.0002_standardize_id_fields... OK Applying users.0003_token_allowed_ips_last_used... OK Applying users.0004_netboxgroup_netboxuser... OK Applying account.0001_initial... OK Applying wireless.0002_standardize_id_fields... OK Applying wireless.0003_created_datetimefield... OK Applying tenancy.0005_standardize_id_fields... OK Applying tenancy.0006_created_datetimefield... OK Applying tenancy.0007_contact_link... OK Applying wireless.0004_wireless_tenancy... OK Applying ipam.0054_vlangroup_min_max_vids... OK Applying extras.0068_configcontext_cluster_types...Traceback (most recent call last): File "/opt/netbox-git/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 87, in _execute return self.cursor.execute(sql) File "/opt/netbox-git/venv/lib/python3.8/site-packages/psycopg/cursor.py", line 732, in execute raise ex.with_traceback(None) psycopg.errors.UndefinedFile: konnte Datei »base/16384/24621« nicht öffnen: Datei oder Verzeichnis nicht gefunden CONTEXT: SQL-Anweisung »SELECT fk."configcontext_id" FROM ONLY "public"."extras_configcontext_cluster_types" fk LEFT OUTER JOIN ONLY "public"."extras_configcontext" pk ON ( pk."id" OPERATOR(pg_catalog.=) fk."configcontext_id") WHERE pk."id" IS NULL AND (fk."configcontext_id" IS NOT NULL)« ```
adam closed this issue 2025-12-29 21:21:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9711