failed Retracing Cables due to netbox 2.9.11 -> 2.10.0 upgrade #5061

Closed
opened 2025-12-29 19:23:41 +01:00 by adam · 0 comments
Owner

Originally created by @dfwmlb on GitHub (Jul 12, 2021).

NetBox version

2.10.0

Python version

3.6

Steps to Reproduce

OLD=2.9.11
NEW=2.10.0
tar -xzf netbox-"${NEW}".tar.gz -C /opt
ln -sfn /opt/netbox-"${NEW}"/ /opt/netbox
cp /opt/netbox-"${OLD}"/local_requirements.txt /opt/netbox/
cp /opt/netbox-"${OLD}"/netbox/netbox/configuration.py /opt/netbox/netbox/netbox/
cp /opt/netbox-"${OLD}"/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/
cp -npr /opt/netbox-"${OLD}"/netbox/media/ /opt/netbox/netbox/
cp -nr /opt/netbox-"${OLD}"/netbox/scripts /opt/netbox/netbox/
cp -nr /opt/netbox-"${OLD}"/netbox/reports /opt/netbox/netbox/
cd /opt/netbox
./upgrade.sh

Expected Behavior

upgrade complete successfully

Observed Behavior

./upgrade.sh
Creating a new virtual environment at /opt/netbox-2.10.0/venv...
Installing Python system packages (pip3 install wheel)...
Collecting wheel
  Using cached https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl
Installing collected packages: wheel
Successfully installed wheel-0.36.2
You are using pip version 9.0.3, however version 21.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Installing core dependencies (pip3 install -r requirements.txt)...
Collecting Django==3.1.3 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/7f/17/16267e782a30ea2ce08a9a452c1db285afb0ff226cfe3753f484d3d65662/Django-3.1.3-py3-none-any.whl (7.8MB)
    100% |████████████████████████████████| 7.8MB 203kB/s 
Collecting django-cacheops==5.1 (from -r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/5d/0c/530f4f32e770c1f0df3ecc988f97ef548ae59ce5a49caae8bcad96afcaec/django_cacheops-5.1-py2.py3-none-any.whl
Collecting django-cors-headers==3.5.0 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/51/99/41898d5eddb68bc5545c08f5315e00d6036cc6f1aba5fd824042dd1b04ea/django_cors_headers-3.5.0-py3-none-any.whl
Collecting django-debug-toolbar==3.1.1 (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/22/14/864c8805134fa25a8165f895c630cdd08d8ae4dd2d3557878624a9f686d2/django_debug_toolbar-3.1.1-py3-none-any.whl (197kB)
    100% |████████████████████████████████| 204kB 5.0MB/s 
Collecting django-filter==2.4.0 (from -r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/71/2b/b2fe483c3095b6222725dd05f9ad9e6ed6cb7347c154fdbd80238d36f1a8/django_filter-2.4.0-py3-none-any.whl (73kB)
    100% |████████████████████████████████| 81kB 6.9MB/s 
Collecting django-mptt==0.11.0 (from -r requirements.txt (line 6))
  Using cached https://files.pythonhosted.org/packages/83/86/78a64e1aa72dc6156a1a4f1f830564c932b0900460607def7ccd56a1df80/django_mptt-0.11.0-py2.py3-none-any.whl
Collecting django-pglocks==1.0.4 (from -r requirements.txt (line 7))
Collecting django-prometheus==2.1.0 (from -r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/9b/1b/af5e3c82da897618c90836e7ff3c17f6c3f1dfb82ba33cc20815b2a1f8be/django_prometheus-2.1.0-py2.py3-none-any.whl
Collecting django-rq==2.4.0 (from -r requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/53/bb/fb8306b3cba7f6cbae57a1f4d17c3abd4aeb767c1febf97cf1d38d3c724f/django_rq-2.4.0-py2.py3-none-any.whl (46kB)
    100% |████████████████████████████████| 51kB 7.8MB/s 
Collecting django-tables2==2.3.3 (from -r requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/dd/1d/27bcbfe4dc80c2e38ee80f2d2a35555a00b44731f6155c60a214a4494490/django_tables2-2.3.3-py2.py3-none-any.whl (91kB)
    100% |████████████████████████████████| 92kB 7.3MB/s 
Collecting django-taggit==1.3.0 (from -r requirements.txt (line 11))
  Using cached https://files.pythonhosted.org/packages/56/3e/dde2d7151bc0c4ac65d225e611a85e54a897c551507e8eca2c06a083f3f4/django_taggit-1.3.0-py3-none-any.whl
Collecting django-timezone-field==4.0 (from -r requirements.txt (line 12))
  Using cached https://files.pythonhosted.org/packages/b3/23/ac06d9dcc9450b8ed51a7f861630b5ae4c1779c53401c83703fb87fbef39/django_timezone_field-4.0-py3-none-any.whl
Collecting djangorestframework==3.12.2 (from -r requirements.txt (line 13))
  Downloading https://files.pythonhosted.org/packages/8e/42/4cd19938181a912150e55835109b1933be26b776f3d4fb186491968dc41d/djangorestframework-3.12.2-py3-none-any.whl (957kB)
    100% |████████████████████████████████| 962kB 1.5MB/s 
Collecting drf-yasg[validation]==1.20.0 (from -r requirements.txt (line 14))
  Downloading https://files.pythonhosted.org/packages/fc/5c/4584321c7a7fd85429f73fd4c3406b09309e3a071e250177739384a4ab48/drf_yasg-1.20.0-py2.py3-none-any.whl (1.6MB)
    100% |████████████████████████████████| 1.6MB 989kB/s 
Collecting gunicorn==20.0.4 (from -r requirements.txt (line 15))
  Using cached https://files.pythonhosted.org/packages/69/ca/926f7cd3a2014b16870086b2d0fdc84a9e49473c68a8dff8b57f7c156f43/gunicorn-20.0.4-py2.py3-none-any.whl
Collecting Jinja2==2.11.2 (from -r requirements.txt (line 16))
  Using cached https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl
Collecting Markdown==3.3.3 (from -r requirements.txt (line 17))
  Downloading https://files.pythonhosted.org/packages/ac/ef/24a91ca96efa0d7802dffb83ccc7a3c677027bea19ec3c9ee80be740408e/Markdown-3.3.3-py3-none-any.whl (96kB)
    100% |████████████████████████████████| 102kB 5.6MB/s 
Collecting netaddr==0.8.0 (from -r requirements.txt (line 18))
  Using cached https://files.pythonhosted.org/packages/ff/cd/9cdfea8fc45c56680b798db6a55fa60a22e2d3d3ccf54fc729d083b50ce4/netaddr-0.8.0-py2.py3-none-any.whl
Collecting Pillow==8.0.1 (from -r requirements.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/5f/19/d4c25111d36163698396f93c363114cf1cddbacb24744f6612f25b6aa3d0/Pillow-8.0.1-cp36-cp36m-manylinux1_x86_64.whl (2.2MB)
    100% |████████████████████████████████| 2.2MB 461kB/s 
Collecting psycopg2-binary==2.8.6 (from -r requirements.txt (line 20))
  Downloading https://files.pythonhosted.org/packages/f2/1b/720b36697158113ca1b2221a8e96a470088ccf3770d182214689d1a96a07/psycopg2_binary-2.8.6-cp36-cp36m-manylinux1_x86_64.whl (3.0MB)
    100% |████████████████████████████████| 3.0MB 532kB/s 
Collecting pycryptodome==3.9.9 (from -r requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/2b/6f/7e38d7c97fbbc3987539c804282c33f56b6b07381bf2390deead696440c5/pycryptodome-3.9.9-cp36-cp36m-manylinux1_x86_64.whl (13.7MB)
    100% |████████████████████████████████| 13.7MB 118kB/s 
Collecting PyYAML==5.3.1 (from -r requirements.txt (line 22))
Collecting svgwrite==1.4 (from -r requirements.txt (line 23))
  Using cached https://files.pythonhosted.org/packages/1c/85/1dc25b36c3ac4f3fe285d33065fc0f2ea7bdfb9209d6369e01a3e8ef6252/svgwrite-1.4-py3-none-any.whl
Collecting asgiref<4,>=3.2.10 (from Django==3.1.3->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/17/8b/05e225d11154b8f5358e6a6d277679c9741ec0339d1e451c9cef687a9170/asgiref-3.3.4-py3-none-any.whl
Collecting pytz (from Django==3.1.3->-r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl
Collecting sqlparse>=0.2.2 (from Django==3.1.3->-r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/14/05/6e8eb62ca685b10e34051a80d7ea94b7137369d8c0be5c3b9d9b6e3f5dae/sqlparse-0.4.1-py3-none-any.whl
Collecting redis>=3.0.0 (from django-cacheops==5.1->-r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/a7/7c/24fb0511df653cf1a5d938d8f5d19802a88cef255706fdda242ff97e91b7/redis-3.5.3-py2.py3-none-any.whl
Collecting funcy<2.0,>=1.8 (from django-cacheops==5.1->-r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/44/52/5cf7401456a461e4b481650dfb8279bc000f31a011d0918904f86e755947/funcy-1.16-py2.py3-none-any.whl
Collecting six>=1.4.0 (from django-cacheops==5.1->-r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Collecting django-js-asset (from django-mptt==0.11.0->-r requirements.txt (line 6))
  Using cached https://files.pythonhosted.org/packages/aa/2d/98089cf51c8e83bc70723021390b94a3638a4a0ce30a47e2e70476b2095d/django_js_asset-1.2.2-py2.py3-none-any.whl
Collecting prometheus-client>=0.7 (from django-prometheus==2.1.0->-r requirements.txt (line 8))
  Using cached https://files.pythonhosted.org/packages/09/da/4e8471ff825769581593b5b84769d32f58e5373b59fccaf355d3529ad530/prometheus_client-0.11.0-py2.py3-none-any.whl
Collecting rq>=1.2 (from django-rq==2.4.0->-r requirements.txt (line 9))
  Using cached https://files.pythonhosted.org/packages/3b/c6/2a7e669a48b6f843e03e71fd50bd40a3dfa044d488384337e894de233513/rq-1.8.1-py2.py3-none-any.whl
Collecting coreapi>=2.3.3 (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/fc/3a/9dedaad22962770edd334222f2b3c3e7ad5e1c8cab1d6a7992c30329e2e5/coreapi-2.3.3-py2.py3-none-any.whl
Collecting inflection>=0.3.1 (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/59/91/aa6bde563e0085a02a435aa99b49ef75b0a4b062635e606dab23ce18d720/inflection-0.5.1-py2.py3-none-any.whl
Collecting coreschema>=0.0.4 (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
Collecting ruamel.yaml>=0.15.34 (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/0e/57/19361b93542a1bb071fe8b7dd5ae792de6e8ab86c707aa2c44db08c60b99/ruamel.yaml-0.17.10-py3-none-any.whl
Collecting packaging (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/3e/89/7ea760b4daa42653ece2380531c90f64788d979110a2ab51049d92f408af/packaging-20.9-py2.py3-none-any.whl
Collecting uritemplate>=3.0.0 (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/bf/0c/60d82c077998feb631608dca3cc1fe19ac074e772bf0c24cf409b977b815/uritemplate-3.0.1-py2.py3-none-any.whl
Collecting swagger-spec-validator>=2.1.0; extra == "validation" (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/09/de/e78cefbf5838b434b63a789264b79821cb2267f1498fbed23ef8590133e4/swagger_spec_validator-2.7.3-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=3.0 in ./venv/lib/python3.6/site-packages (from gunicorn==20.0.4->-r requirements.txt (line 15))
Collecting MarkupSafe>=0.23 (from Jinja2==2.11.2->-r requirements.txt (line 16))
  Using cached https://files.pythonhosted.org/packages/fc/d6/57f9a97e56447a1e340f8574836d3b636e2c14de304943836bd645fa9c7e/MarkupSafe-2.0.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting importlib-metadata; python_version < "3.8" (from Markdown==3.3.3->-r requirements.txt (line 17))
  Using cached https://files.pythonhosted.org/packages/23/5d/f2151217058e7d5c5b4b584bc6052c2ae478c5a36b58a056364351613bfb/importlib_metadata-4.5.0-py3-none-any.whl
Collecting importlib-resources; python_version < "3.7" (from netaddr==0.8.0->-r requirements.txt (line 18))
  Using cached https://files.pythonhosted.org/packages/a4/30/b230b6586bcf6b80752ae42979f3b0da70bbde977d2b73eafd20c693b3db/importlib_resources-5.1.4-py3-none-any.whl
Collecting typing-extensions; python_version < "3.8" (from asgiref<4,>=3.2.10->Django==3.1.3->-r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/2e/35/6c4fff5ab443b57116cb1aad46421fb719bed2825664e8fe77d66d99bcbc/typing_extensions-3.10.0.0-py3-none-any.whl
Collecting click>=5.0.0 (from rq>=1.2->django-rq==2.4.0->-r requirements.txt (line 9))
  Using cached https://files.pythonhosted.org/packages/76/0a/b6c5f311e32aeb3b406e03c079ade51e905ea630fc19d1262a46249c1c86/click-8.0.1-py3-none-any.whl
Collecting requests (from coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl
Collecting itypes (from coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/3f/bb/3bd99c7cd34d4a123b2903e16da364f6d2078b1c3a3530a8ad105c668104/itypes-1.2.0-py2.py3-none-any.whl
Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.10" (from ruamel.yaml>=0.15.34->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/88/ff/ec25dc01ef04232a9e68ff18492e37dfa01f1f58172e702ad4f38536d41b/ruamel.yaml.clib-0.2.2-cp36-cp36m-manylinux1_x86_64.whl
Collecting pyparsing>=2.0.2 (from packaging->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl
Collecting jsonschema (from swagger-spec-validator>=2.1.0; extra == "validation"->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata; python_version < "3.8"->Markdown==3.3.3->-r requirements.txt (line 17))
  Using cached https://files.pythonhosted.org/packages/0f/8c/715c54e9e34c0c4820f616a913a7de3337d0cd79074dd1bed4dd840f16ae/zipp-3.4.1-py3-none-any.whl
Collecting chardet<5,>=3.0.2 (from requests->coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl
Collecting idna<3,>=2.5 (from requests->coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/05/1b/0a0dece0e8aa492a6ec9e4ad2fe366b511558cdc73fd3abc82ba7348e875/certifi-2021.5.30-py2.py3-none-any.whl
Collecting urllib3<1.27,>=1.21.1 (from requests->coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/0c/cd/1e2ec680ec7b09846dc6e605f5a7709dfb9d7128e51a026e7154e18a234e/urllib3-1.26.5-py2.py3-none-any.whl
Collecting pyrsistent>=0.14.0 (from jsonschema->swagger-spec-validator>=2.1.0; extra == "validation"->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
Collecting attrs>=17.4.0 (from jsonschema->swagger-spec-validator>=2.1.0; extra == "validation"->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/20/a9/ba6f1cd1a1517ff022b35acd6a7e4246371dfab08b8e42b829b6d07913cc/attrs-21.2.0-py2.py3-none-any.whl
Installing collected packages: typing-extensions, asgiref, pytz, sqlparse, Django, redis, funcy, six, django-cacheops, django-cors-headers, django-debug-toolbar, django-filter, django-js-asset, django-mptt, django-pglocks, prometheus-client, django-prometheus, zipp, importlib-metadata, click, rq, django-rq, django-tables2, django-taggit, django-timezone-field, djangorestframework, MarkupSafe, Jinja2, coreschema, chardet, idna, certifi, urllib3, requests, uritemplate, itypes, coreapi, inflection, ruamel.yaml.clib, ruamel.yaml, pyparsing, packaging, PyYAML, pyrsistent, attrs, jsonschema, swagger-spec-validator, drf-yasg, gunicorn, Markdown, importlib-resources, netaddr, Pillow, psycopg2-binary, pycryptodome, svgwrite
Successfully installed Django-3.1.3 Jinja2-2.11.2 Markdown-3.3.3 MarkupSafe-2.0.1 Pillow-8.0.1 PyYAML-5.3.1 asgiref-3.3.4 attrs-21.2.0 certifi-2021.5.30 chardet-4.0.0 click-8.0.1 coreapi-2.3.3 coreschema-0.0.4 django-cacheops-5.1 django-cors-headers-3.5.0 django-debug-toolbar-3.1.1 django-filter-2.4.0 django-js-asset-1.2.2 django-mptt-0.11.0 django-pglocks-1.0.4 django-prometheus-2.1.0 django-rq-2.4.0 django-tables2-2.3.3 django-taggit-1.3.0 django-timezone-field-4.0 djangorestframework-3.12.2 drf-yasg-1.20.0 funcy-1.16 gunicorn-20.0.4 idna-2.10 importlib-metadata-4.5.0 importlib-resources-5.1.4 inflection-0.5.1 itypes-1.2.0 jsonschema-3.2.0 netaddr-0.8.0 packaging-20.9 prometheus-client-0.11.0 psycopg2-binary-2.8.6 pycryptodome-3.9.9 pyparsing-2.4.7 pyrsistent-0.17.3 pytz-2021.1 redis-3.5.3 requests-2.25.1 rq-1.8.1 ruamel.yaml-0.17.10 ruamel.yaml.clib-0.2.2 six-1.16.0 sqlparse-0.4.1 svgwrite-1.4 swagger-spec-validator-2.7.3 typing-extensions-3.10.0.0 uritemplate-3.0.1 urllib3-1.26.5 zipp-3.4.1
You are using pip version 9.0.3, however version 21.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Skipping local dependencies (local_requirements.txt not found)
Applying database migrations (python3 netbox/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 dcim.0117_custom_field_data... OK
  Applying dcim.0118_inventoryitem_mptt... OK
  Applying dcim.0119_inventoryitem_mptt_rebuild... OK
  Applying dcim.0120_cache_cable_peer...
    Updating console port cable peers...
    Updating console server port cable peers...
    Updating power port cable peers...
    Updating power outlet cable peers...
    Updating interface cable peers...
    Updating front port cable peers...
    Updating rear port cable peers...
    Updating power feed cable peers...
 OK
  Applying dcim.0121_cablepath... OK
  Applying circuits.0020_custom_field_data... OK
  Applying circuits.0021_cache_cable_peer...
    Updating circuit termination cable peers...
 OK
  Applying circuits.0022_cablepath... OK
  Applying circuits.0023_circuittermination_port_speed_optional... OK
  Applying circuits.0024_standardize_name_length... OK
  Applying dcim.0122_standardize_name_length... OK
  Applying virtualization.0018_custom_field_data... OK
  Applying tenancy.0010_custom_field_data... OK
  Applying secrets.0010_custom_field_data... OK
  Applying ipam.0038_custom_field_data... OK
  Applying extras.0048_exporttemplate_remove_template_language... OK
  Applying extras.0049_remove_graph... OK
  Applying extras.0050_customfield_changes... OK
  Applying extras.0051_migrate_customfields... OK
  Applying extras.0052_customfield_cleanup... OK
  Applying extras.0053_rename_webhook_obj_type... OK
  Applying tenancy.0011_standardize_name_length... OK
  Applying ipam.0039_service_ports_array... OK
  Applying ipam.0040_service_drop_port... OK
  Applying ipam.0041_routetarget... OK
  Applying ipam.0042_standardize_name_length... OK
  Applying ipam.0043_add_tenancy_to_aggregates... OK
  Applying secrets.0011_secret_generic_assignments... OK
  Applying secrets.0012_standardize_name_length... OK
  Applying virtualization.0019_standardize_name_length... OK
Checking for missing cable paths (python3 netbox/manage.py trace_paths --no-input)...
Found no missing circuit termination paths; skipping
Retracing 39 cabled console ports...
Traceback (most recent call last):
  File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 173, in __get__
    rel_obj = self.field.get_cached_value(instance)
  File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/db/models/fields/mixins.py", line 15, in get_cached_value
    return instance._state.fields_cache[cache_name]
KeyError: 'cable'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "netbox/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/core/management/base.py", line 330, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/core/management/base.py", line 371, in execute
    output = self.handle(*args, **options)
  File "/opt/netbox-2.10.0/netbox/dcim/management/commands/trace_paths.py", line 82, in handle
    create_cablepath(obj)
  File "/opt/netbox-2.10.0/netbox/dcim/signals.py", line 16, in create_cablepath
    cp = CablePath.from_origin(node)
  File "/opt/netbox-2.10.0/netbox/dcim/models/cables.py", line 388, in from_origin
    if origin is None or origin.cable is None:
  File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 187, in __get__
    rel_obj = self.get_object(instance)
  File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 154, in get_object
    return qs.get(self.field.get_reverse_related_filter(instance))
  File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/cacheops/query.py", line 353, in get
    return qs._no_monkey.get(qs, *args, **kwargs)
  File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/db/models/query.py", line 431, in get
    self.model._meta.object_name
dcim.models.cables.DoesNotExist: Cable matching query does not exist.
Originally created by @dfwmlb on GitHub (Jul 12, 2021). ### NetBox version 2.10.0 ### Python version 3.6 ### Steps to Reproduce ``` OLD=2.9.11 NEW=2.10.0 tar -xzf netbox-"${NEW}".tar.gz -C /opt ln -sfn /opt/netbox-"${NEW}"/ /opt/netbox cp /opt/netbox-"${OLD}"/local_requirements.txt /opt/netbox/ cp /opt/netbox-"${OLD}"/netbox/netbox/configuration.py /opt/netbox/netbox/netbox/ cp /opt/netbox-"${OLD}"/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/ cp -npr /opt/netbox-"${OLD}"/netbox/media/ /opt/netbox/netbox/ cp -nr /opt/netbox-"${OLD}"/netbox/scripts /opt/netbox/netbox/ cp -nr /opt/netbox-"${OLD}"/netbox/reports /opt/netbox/netbox/ cd /opt/netbox ./upgrade.sh ``` ### Expected Behavior upgrade complete successfully ### Observed Behavior ``` ./upgrade.sh Creating a new virtual environment at /opt/netbox-2.10.0/venv... Installing Python system packages (pip3 install wheel)... Collecting wheel Using cached https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl Installing collected packages: wheel Successfully installed wheel-0.36.2 You are using pip version 9.0.3, however version 21.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Installing core dependencies (pip3 install -r requirements.txt)... Collecting Django==3.1.3 (from -r requirements.txt (line 1)) Downloading https://files.pythonhosted.org/packages/7f/17/16267e782a30ea2ce08a9a452c1db285afb0ff226cfe3753f484d3d65662/Django-3.1.3-py3-none-any.whl (7.8MB) 100% |████████████████████████████████| 7.8MB 203kB/s Collecting django-cacheops==5.1 (from -r requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/5d/0c/530f4f32e770c1f0df3ecc988f97ef548ae59ce5a49caae8bcad96afcaec/django_cacheops-5.1-py2.py3-none-any.whl Collecting django-cors-headers==3.5.0 (from -r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/51/99/41898d5eddb68bc5545c08f5315e00d6036cc6f1aba5fd824042dd1b04ea/django_cors_headers-3.5.0-py3-none-any.whl Collecting django-debug-toolbar==3.1.1 (from -r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/22/14/864c8805134fa25a8165f895c630cdd08d8ae4dd2d3557878624a9f686d2/django_debug_toolbar-3.1.1-py3-none-any.whl (197kB) 100% |████████████████████████████████| 204kB 5.0MB/s Collecting django-filter==2.4.0 (from -r requirements.txt (line 5)) Downloading https://files.pythonhosted.org/packages/71/2b/b2fe483c3095b6222725dd05f9ad9e6ed6cb7347c154fdbd80238d36f1a8/django_filter-2.4.0-py3-none-any.whl (73kB) 100% |████████████████████████████████| 81kB 6.9MB/s Collecting django-mptt==0.11.0 (from -r requirements.txt (line 6)) Using cached https://files.pythonhosted.org/packages/83/86/78a64e1aa72dc6156a1a4f1f830564c932b0900460607def7ccd56a1df80/django_mptt-0.11.0-py2.py3-none-any.whl Collecting django-pglocks==1.0.4 (from -r requirements.txt (line 7)) Collecting django-prometheus==2.1.0 (from -r requirements.txt (line 8)) Downloading https://files.pythonhosted.org/packages/9b/1b/af5e3c82da897618c90836e7ff3c17f6c3f1dfb82ba33cc20815b2a1f8be/django_prometheus-2.1.0-py2.py3-none-any.whl Collecting django-rq==2.4.0 (from -r requirements.txt (line 9)) Downloading https://files.pythonhosted.org/packages/53/bb/fb8306b3cba7f6cbae57a1f4d17c3abd4aeb767c1febf97cf1d38d3c724f/django_rq-2.4.0-py2.py3-none-any.whl (46kB) 100% |████████████████████████████████| 51kB 7.8MB/s Collecting django-tables2==2.3.3 (from -r requirements.txt (line 10)) Downloading https://files.pythonhosted.org/packages/dd/1d/27bcbfe4dc80c2e38ee80f2d2a35555a00b44731f6155c60a214a4494490/django_tables2-2.3.3-py2.py3-none-any.whl (91kB) 100% |████████████████████████████████| 92kB 7.3MB/s Collecting django-taggit==1.3.0 (from -r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/56/3e/dde2d7151bc0c4ac65d225e611a85e54a897c551507e8eca2c06a083f3f4/django_taggit-1.3.0-py3-none-any.whl Collecting django-timezone-field==4.0 (from -r requirements.txt (line 12)) Using cached https://files.pythonhosted.org/packages/b3/23/ac06d9dcc9450b8ed51a7f861630b5ae4c1779c53401c83703fb87fbef39/django_timezone_field-4.0-py3-none-any.whl Collecting djangorestframework==3.12.2 (from -r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/8e/42/4cd19938181a912150e55835109b1933be26b776f3d4fb186491968dc41d/djangorestframework-3.12.2-py3-none-any.whl (957kB) 100% |████████████████████████████████| 962kB 1.5MB/s Collecting drf-yasg[validation]==1.20.0 (from -r requirements.txt (line 14)) Downloading https://files.pythonhosted.org/packages/fc/5c/4584321c7a7fd85429f73fd4c3406b09309e3a071e250177739384a4ab48/drf_yasg-1.20.0-py2.py3-none-any.whl (1.6MB) 100% |████████████████████████████████| 1.6MB 989kB/s Collecting gunicorn==20.0.4 (from -r requirements.txt (line 15)) Using cached https://files.pythonhosted.org/packages/69/ca/926f7cd3a2014b16870086b2d0fdc84a9e49473c68a8dff8b57f7c156f43/gunicorn-20.0.4-py2.py3-none-any.whl Collecting Jinja2==2.11.2 (from -r requirements.txt (line 16)) Using cached https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl Collecting Markdown==3.3.3 (from -r requirements.txt (line 17)) Downloading https://files.pythonhosted.org/packages/ac/ef/24a91ca96efa0d7802dffb83ccc7a3c677027bea19ec3c9ee80be740408e/Markdown-3.3.3-py3-none-any.whl (96kB) 100% |████████████████████████████████| 102kB 5.6MB/s Collecting netaddr==0.8.0 (from -r requirements.txt (line 18)) Using cached https://files.pythonhosted.org/packages/ff/cd/9cdfea8fc45c56680b798db6a55fa60a22e2d3d3ccf54fc729d083b50ce4/netaddr-0.8.0-py2.py3-none-any.whl Collecting Pillow==8.0.1 (from -r requirements.txt (line 19)) Downloading https://files.pythonhosted.org/packages/5f/19/d4c25111d36163698396f93c363114cf1cddbacb24744f6612f25b6aa3d0/Pillow-8.0.1-cp36-cp36m-manylinux1_x86_64.whl (2.2MB) 100% |████████████████████████████████| 2.2MB 461kB/s Collecting psycopg2-binary==2.8.6 (from -r requirements.txt (line 20)) Downloading https://files.pythonhosted.org/packages/f2/1b/720b36697158113ca1b2221a8e96a470088ccf3770d182214689d1a96a07/psycopg2_binary-2.8.6-cp36-cp36m-manylinux1_x86_64.whl (3.0MB) 100% |████████████████████████████████| 3.0MB 532kB/s Collecting pycryptodome==3.9.9 (from -r requirements.txt (line 21)) Downloading https://files.pythonhosted.org/packages/2b/6f/7e38d7c97fbbc3987539c804282c33f56b6b07381bf2390deead696440c5/pycryptodome-3.9.9-cp36-cp36m-manylinux1_x86_64.whl (13.7MB) 100% |████████████████████████████████| 13.7MB 118kB/s Collecting PyYAML==5.3.1 (from -r requirements.txt (line 22)) Collecting svgwrite==1.4 (from -r requirements.txt (line 23)) Using cached https://files.pythonhosted.org/packages/1c/85/1dc25b36c3ac4f3fe285d33065fc0f2ea7bdfb9209d6369e01a3e8ef6252/svgwrite-1.4-py3-none-any.whl Collecting asgiref<4,>=3.2.10 (from Django==3.1.3->-r requirements.txt (line 1)) Downloading https://files.pythonhosted.org/packages/17/8b/05e225d11154b8f5358e6a6d277679c9741ec0339d1e451c9cef687a9170/asgiref-3.3.4-py3-none-any.whl Collecting pytz (from Django==3.1.3->-r requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl Collecting sqlparse>=0.2.2 (from Django==3.1.3->-r requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/14/05/6e8eb62ca685b10e34051a80d7ea94b7137369d8c0be5c3b9d9b6e3f5dae/sqlparse-0.4.1-py3-none-any.whl Collecting redis>=3.0.0 (from django-cacheops==5.1->-r requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/a7/7c/24fb0511df653cf1a5d938d8f5d19802a88cef255706fdda242ff97e91b7/redis-3.5.3-py2.py3-none-any.whl Collecting funcy<2.0,>=1.8 (from django-cacheops==5.1->-r requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/44/52/5cf7401456a461e4b481650dfb8279bc000f31a011d0918904f86e755947/funcy-1.16-py2.py3-none-any.whl Collecting six>=1.4.0 (from django-cacheops==5.1->-r requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl Collecting django-js-asset (from django-mptt==0.11.0->-r requirements.txt (line 6)) Using cached https://files.pythonhosted.org/packages/aa/2d/98089cf51c8e83bc70723021390b94a3638a4a0ce30a47e2e70476b2095d/django_js_asset-1.2.2-py2.py3-none-any.whl Collecting prometheus-client>=0.7 (from django-prometheus==2.1.0->-r requirements.txt (line 8)) Using cached https://files.pythonhosted.org/packages/09/da/4e8471ff825769581593b5b84769d32f58e5373b59fccaf355d3529ad530/prometheus_client-0.11.0-py2.py3-none-any.whl Collecting rq>=1.2 (from django-rq==2.4.0->-r requirements.txt (line 9)) Using cached https://files.pythonhosted.org/packages/3b/c6/2a7e669a48b6f843e03e71fd50bd40a3dfa044d488384337e894de233513/rq-1.8.1-py2.py3-none-any.whl Collecting coreapi>=2.3.3 (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/fc/3a/9dedaad22962770edd334222f2b3c3e7ad5e1c8cab1d6a7992c30329e2e5/coreapi-2.3.3-py2.py3-none-any.whl Collecting inflection>=0.3.1 (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/59/91/aa6bde563e0085a02a435aa99b49ef75b0a4b062635e606dab23ce18d720/inflection-0.5.1-py2.py3-none-any.whl Collecting coreschema>=0.0.4 (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Collecting ruamel.yaml>=0.15.34 (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/0e/57/19361b93542a1bb071fe8b7dd5ae792de6e8ab86c707aa2c44db08c60b99/ruamel.yaml-0.17.10-py3-none-any.whl Collecting packaging (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/3e/89/7ea760b4daa42653ece2380531c90f64788d979110a2ab51049d92f408af/packaging-20.9-py2.py3-none-any.whl Collecting uritemplate>=3.0.0 (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/bf/0c/60d82c077998feb631608dca3cc1fe19ac074e772bf0c24cf409b977b815/uritemplate-3.0.1-py2.py3-none-any.whl Collecting swagger-spec-validator>=2.1.0; extra == "validation" (from drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/09/de/e78cefbf5838b434b63a789264b79821cb2267f1498fbed23ef8590133e4/swagger_spec_validator-2.7.3-py2.py3-none-any.whl Requirement already satisfied: setuptools>=3.0 in ./venv/lib/python3.6/site-packages (from gunicorn==20.0.4->-r requirements.txt (line 15)) Collecting MarkupSafe>=0.23 (from Jinja2==2.11.2->-r requirements.txt (line 16)) Using cached https://files.pythonhosted.org/packages/fc/d6/57f9a97e56447a1e340f8574836d3b636e2c14de304943836bd645fa9c7e/MarkupSafe-2.0.1-cp36-cp36m-manylinux1_x86_64.whl Collecting importlib-metadata; python_version < "3.8" (from Markdown==3.3.3->-r requirements.txt (line 17)) Using cached https://files.pythonhosted.org/packages/23/5d/f2151217058e7d5c5b4b584bc6052c2ae478c5a36b58a056364351613bfb/importlib_metadata-4.5.0-py3-none-any.whl Collecting importlib-resources; python_version < "3.7" (from netaddr==0.8.0->-r requirements.txt (line 18)) Using cached https://files.pythonhosted.org/packages/a4/30/b230b6586bcf6b80752ae42979f3b0da70bbde977d2b73eafd20c693b3db/importlib_resources-5.1.4-py3-none-any.whl Collecting typing-extensions; python_version < "3.8" (from asgiref<4,>=3.2.10->Django==3.1.3->-r requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/2e/35/6c4fff5ab443b57116cb1aad46421fb719bed2825664e8fe77d66d99bcbc/typing_extensions-3.10.0.0-py3-none-any.whl Collecting click>=5.0.0 (from rq>=1.2->django-rq==2.4.0->-r requirements.txt (line 9)) Using cached https://files.pythonhosted.org/packages/76/0a/b6c5f311e32aeb3b406e03c079ade51e905ea630fc19d1262a46249c1c86/click-8.0.1-py3-none-any.whl Collecting requests (from coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl Collecting itypes (from coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/3f/bb/3bd99c7cd34d4a123b2903e16da364f6d2078b1c3a3530a8ad105c668104/itypes-1.2.0-py2.py3-none-any.whl Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.10" (from ruamel.yaml>=0.15.34->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/88/ff/ec25dc01ef04232a9e68ff18492e37dfa01f1f58172e702ad4f38536d41b/ruamel.yaml.clib-0.2.2-cp36-cp36m-manylinux1_x86_64.whl Collecting pyparsing>=2.0.2 (from packaging->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl Collecting jsonschema (from swagger-spec-validator>=2.1.0; extra == "validation"->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl Collecting zipp>=0.5 (from importlib-metadata; python_version < "3.8"->Markdown==3.3.3->-r requirements.txt (line 17)) Using cached https://files.pythonhosted.org/packages/0f/8c/715c54e9e34c0c4820f616a913a7de3337d0cd79074dd1bed4dd840f16ae/zipp-3.4.1-py3-none-any.whl Collecting chardet<5,>=3.0.2 (from requests->coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl Collecting idna<3,>=2.5 (from requests->coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl Collecting certifi>=2017.4.17 (from requests->coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/05/1b/0a0dece0e8aa492a6ec9e4ad2fe366b511558cdc73fd3abc82ba7348e875/certifi-2021.5.30-py2.py3-none-any.whl Collecting urllib3<1.27,>=1.21.1 (from requests->coreapi>=2.3.3->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/0c/cd/1e2ec680ec7b09846dc6e605f5a7709dfb9d7128e51a026e7154e18a234e/urllib3-1.26.5-py2.py3-none-any.whl Collecting pyrsistent>=0.14.0 (from jsonschema->swagger-spec-validator>=2.1.0; extra == "validation"->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Collecting attrs>=17.4.0 (from jsonschema->swagger-spec-validator>=2.1.0; extra == "validation"->drf-yasg[validation]==1.20.0->-r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/20/a9/ba6f1cd1a1517ff022b35acd6a7e4246371dfab08b8e42b829b6d07913cc/attrs-21.2.0-py2.py3-none-any.whl Installing collected packages: typing-extensions, asgiref, pytz, sqlparse, Django, redis, funcy, six, django-cacheops, django-cors-headers, django-debug-toolbar, django-filter, django-js-asset, django-mptt, django-pglocks, prometheus-client, django-prometheus, zipp, importlib-metadata, click, rq, django-rq, django-tables2, django-taggit, django-timezone-field, djangorestframework, MarkupSafe, Jinja2, coreschema, chardet, idna, certifi, urllib3, requests, uritemplate, itypes, coreapi, inflection, ruamel.yaml.clib, ruamel.yaml, pyparsing, packaging, PyYAML, pyrsistent, attrs, jsonschema, swagger-spec-validator, drf-yasg, gunicorn, Markdown, importlib-resources, netaddr, Pillow, psycopg2-binary, pycryptodome, svgwrite Successfully installed Django-3.1.3 Jinja2-2.11.2 Markdown-3.3.3 MarkupSafe-2.0.1 Pillow-8.0.1 PyYAML-5.3.1 asgiref-3.3.4 attrs-21.2.0 certifi-2021.5.30 chardet-4.0.0 click-8.0.1 coreapi-2.3.3 coreschema-0.0.4 django-cacheops-5.1 django-cors-headers-3.5.0 django-debug-toolbar-3.1.1 django-filter-2.4.0 django-js-asset-1.2.2 django-mptt-0.11.0 django-pglocks-1.0.4 django-prometheus-2.1.0 django-rq-2.4.0 django-tables2-2.3.3 django-taggit-1.3.0 django-timezone-field-4.0 djangorestframework-3.12.2 drf-yasg-1.20.0 funcy-1.16 gunicorn-20.0.4 idna-2.10 importlib-metadata-4.5.0 importlib-resources-5.1.4 inflection-0.5.1 itypes-1.2.0 jsonschema-3.2.0 netaddr-0.8.0 packaging-20.9 prometheus-client-0.11.0 psycopg2-binary-2.8.6 pycryptodome-3.9.9 pyparsing-2.4.7 pyrsistent-0.17.3 pytz-2021.1 redis-3.5.3 requests-2.25.1 rq-1.8.1 ruamel.yaml-0.17.10 ruamel.yaml.clib-0.2.2 six-1.16.0 sqlparse-0.4.1 svgwrite-1.4 swagger-spec-validator-2.7.3 typing-extensions-3.10.0.0 uritemplate-3.0.1 urllib3-1.26.5 zipp-3.4.1 You are using pip version 9.0.3, however version 21.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Skipping local dependencies (local_requirements.txt not found) Applying database migrations (python3 netbox/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 dcim.0117_custom_field_data... OK Applying dcim.0118_inventoryitem_mptt... OK Applying dcim.0119_inventoryitem_mptt_rebuild... OK Applying dcim.0120_cache_cable_peer... Updating console port cable peers... Updating console server port cable peers... Updating power port cable peers... Updating power outlet cable peers... Updating interface cable peers... Updating front port cable peers... Updating rear port cable peers... Updating power feed cable peers... OK Applying dcim.0121_cablepath... OK Applying circuits.0020_custom_field_data... OK Applying circuits.0021_cache_cable_peer... Updating circuit termination cable peers... OK Applying circuits.0022_cablepath... OK Applying circuits.0023_circuittermination_port_speed_optional... OK Applying circuits.0024_standardize_name_length... OK Applying dcim.0122_standardize_name_length... OK Applying virtualization.0018_custom_field_data... OK Applying tenancy.0010_custom_field_data... OK Applying secrets.0010_custom_field_data... OK Applying ipam.0038_custom_field_data... OK Applying extras.0048_exporttemplate_remove_template_language... OK Applying extras.0049_remove_graph... OK Applying extras.0050_customfield_changes... OK Applying extras.0051_migrate_customfields... OK Applying extras.0052_customfield_cleanup... OK Applying extras.0053_rename_webhook_obj_type... OK Applying tenancy.0011_standardize_name_length... OK Applying ipam.0039_service_ports_array... OK Applying ipam.0040_service_drop_port... OK Applying ipam.0041_routetarget... OK Applying ipam.0042_standardize_name_length... OK Applying ipam.0043_add_tenancy_to_aggregates... OK Applying secrets.0011_secret_generic_assignments... OK Applying secrets.0012_standardize_name_length... OK Applying virtualization.0019_standardize_name_length... OK Checking for missing cable paths (python3 netbox/manage.py trace_paths --no-input)... Found no missing circuit termination paths; skipping Retracing 39 cabled console ports... Traceback (most recent call last): File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 173, in __get__ rel_obj = self.field.get_cached_value(instance) File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/db/models/fields/mixins.py", line 15, in get_cached_value return instance._state.fields_cache[cache_name] KeyError: 'cable' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "netbox/manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/core/management/base.py", line 330, in run_from_argv self.execute(*args, **cmd_options) File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/core/management/base.py", line 371, in execute output = self.handle(*args, **options) File "/opt/netbox-2.10.0/netbox/dcim/management/commands/trace_paths.py", line 82, in handle create_cablepath(obj) File "/opt/netbox-2.10.0/netbox/dcim/signals.py", line 16, in create_cablepath cp = CablePath.from_origin(node) File "/opt/netbox-2.10.0/netbox/dcim/models/cables.py", line 388, in from_origin if origin is None or origin.cable is None: File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 187, in __get__ rel_obj = self.get_object(instance) File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 154, in get_object return qs.get(self.field.get_reverse_related_filter(instance)) File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/cacheops/query.py", line 353, in get return qs._no_monkey.get(qs, *args, **kwargs) File "/opt/netbox-2.10.0/venv/lib64/python3.6/site-packages/django/db/models/query.py", line 431, in get self.model._meta.object_name dcim.models.cables.DoesNotExist: Cable matching query does not exist. ```
adam added the type: bug label 2025-12-29 19:23:41 +01:00
adam closed this issue 2025-12-29 19:23:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5061