Failing to install on 4.0 #544
Replies: 10 comments
-
So you ran the command ./upgrade.sh? |
Beta Was this translation helpful? Give feedback.
-
If I dont have the plugin configured in local_requirements and configuration.py, the ./upgrade.sh completes without issues, When I add the plugin back into my local_requirements and confguration.py, then the ./upgrade.sh fails with the above. |
Beta Was this translation helpful? Give feedback.
-
Any idea why I cannot install this plugin? |
Beta Was this translation helpful? Give feedback.
-
Is there a way to recreate the tables? |
Beta Was this translation helpful? Give feedback.
-
While you're talking about "recreating" tables, I don't see a proof that any tables have been created at all. Your log says:
That can't be the whole truth. You can show all applied migrations in your venv with
Have any migrations for netbox_topology_views been applied before? In addition you can have a look at dbshell and check the tables:
It is possible to revert migrations (if you'd like to re-apply them), but to be honest, I've never done that. So be careful if you do that. Make a backup or snapshot first. This is what I have found: https://stackoverflow.com/questions/32123477/how-to-revert-the-last-migration I'm converting this thread into a discussion, as it doesn't seem to be bug but an individual problem. |
Beta Was this translation helpful? Give feedback.
-
A fresh install of the plugin on Netbox 4.0.8 fails in the same way.
It looks like there is no tables created for the plugin |
Beta Was this translation helpful? Give feedback.
-
Migration 007 complains that the table "netbox_topology_views_individualoptions" doesn't exist. If you have a look at your migrations you can see that migration 001 to 006 have been applied before (marked with an [x]). Nevertheless, the tables that should have been created for 001 to 006 are missing. This leads me to the assumption that you have installed a lower version version of NTV before and restored an older database version after that. This would explain why the tables are gone.
|
Beta Was this translation helpful? Give feedback.
-
I got this working by manually creating the tables. |
Beta Was this translation helpful? Give feedback.
-
Finally got it working by following the removal procedure here : https://netboxlabs.com/docs/netbox/en/stable/plugins/removal/ |
Beta Was this translation helpful? Give feedback.
-
NetBox version
v4.0.7
Topology Views version
v4.0.0
Steps to Reproduce
cd /opt/netbox
Active venv >> source /opt/netbox/venv/bin/activate
install with >> pip install netbox-topology-views
add to local_requirements.txt >> cd /opt/netbox >> echo netbox-topology-views >> local_requirements.txt
add to configuration.py >> cd /opt/netbox/netbox/netbox >> nano configuration.py >> add "netbox_topology_views",
cd /opt/netbox/netbox
pip3 install netbox-topology-views
python3 manage.py migrate netbox_topology_views
python3 manage.py collectstatic --no-input
Added the following to configuration.py
cd /opt/netbox
./upgrade.sh
Expected Behavior
For ./upgrad.sh to complete, reboot netbox and netbox-rq and be able to use netbox-typology.
Observed Behavior
Beta Was this translation helpful? Give feedback.
All reactions