Error after upgrading to 3.2+ "ModuleNotFoundError: No module named 'cacheops' " #9841
-
Hi, I'm currently running 3.1.11 on Ubuntu 20.04 and would now like to upgrade to the latest 3.2 version. The upgrade process seems successful and after a reboot I get the nginx "502 Bad Gateway" page. When I run "journalctl -u netbox" and sort through the logs, it seems like the issue is related to a missing Django module "cacheops". This instance was initially upgraded from 2.6->2.9>2.11>3.0>3.1.11, so I'm thinking it could be related to some older configuration cruft. I've tried upgrading Django and Django-cachops to the latest, did not work. Also tried updating Ubuntu from 20 to 22, but that created a whole different mess and did not work. Upgrade: admin@netbox:/opt/netbox# sudo NETBOX_DELETE_LEGACY_DATA=1 ./upgrade.sh 0 static files copied to '/opt/netbox/netbox/static', 548 unmodified. sudo journalctl -u netbox output: Jul 25 15:10:59 INF-IPAM001 systemd[1]: Started NetBox WSGI Service. PIP Freeze Django Output: admin@netbox:~$ pip freeze |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The output of running upgrade.sh you showed us does not look like NetBox 3.x upgrade.sh output at all, so your /opt/netbox must be at some older version. |
Beta Was this translation helpful? Give feedback.
The output of running upgrade.sh you showed us does not look like NetBox 3.x upgrade.sh output at all, so your /opt/netbox must be at some older version.