netbox-community / netbox-topology-views

A netbox plugin that draws topology views
Apache License 2.0
757 stars 63 forks source link

Plugin not working on Netbox 3.3.7 #182

Closed emintjeee closed 1 year ago

emintjeee commented 1 year ago

Topology Views doesnt view anything after updating everything, Screenshot_3

cyberndj commented 1 year ago

Howdy, By chance, have your run python3 manage.py collectstatic --no-input after the upgrade?

emintjeee commented 1 year ago

After installing all the pip modules required at manage.py it works again, only i get this error, littlebit strange because the plugin works fine now. any solution? image

mattieserver commented 1 year ago

When you install the requirements, is this with the venv active?


From: emintjeee @.> Sent: Wednesday, November 9, 2022 9:17:01 AM To: mattieserver/netbox-topology-views @.> Cc: Subscribed @.***> Subject: Re: [mattieserver/netbox-topology-views] Plugin not working on Netbox 3.3.7 (Issue #182)

After installing all the pip modules required at manage.py it works again, only i get this error, littlebit strange because the plugin works fine now. any solution? [image]https://user-images.githubusercontent.com/95137379/200775719-3aeb68f2-db1f-4fc1-b956-901dbef707c8.png

— Reply to this email directly, view it on GitHubhttps://github.com/mattieserver/netbox-topology-views/issues/182#issuecomment-1308374774, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAXITDAVJFEUCSWAJT5NB6LWHNMX3ANCNFSM6AAAAAAR2DXUV4. You are receiving this because you are subscribed to this thread.Message ID: @.***>

thr3swe commented 1 year ago

I have the same issue and I've run "python3 manage.py collectstatic --no-input" with the environment activated. Also did pip3 install -r requirements.txt and rebooted the server. image image

emintjeee commented 1 year ago

Yes i did, now i got the same as thr3swe.

mattieserver commented 1 year ago

hi,

I will check if can reproduce this tomorrow. Currently i have not tested the plugin on 3.3.7 of netbox.

cernikradek commented 1 year ago

Yes, I have the same problem on Netbox version 3.3.7. Thank you in advance for solving this problem mattieserver.

cernikradek commented 1 year ago

Greetings. So the plugin works in Netbox version 3.3.7! What did I do wrong? I ran "python3 manage.py collectstatic" outside the virtual environment!

It worked for me... 1) source /opt/netbox/venv/bin/activate 2) pip install netbox-topology-views 3) python3 manage.py collectstatic 4) exit 5) sudo echo netbox-topology-views >> local_requirements.txt 6) sudo systemctl restart netbox netbox-rq

Schoolboy mistake.

thr3swe commented 1 year ago

I ran inside the virtual environment.

Went through all your steps now again just to be sure. Didn't solve the issue for me.

labrnth commented 1 year ago

I seem to be having a similar issue with Netbox 3.3.8. I followed the install instructions to a tee under the venv but I still just get a black screen under the Topology plugin. When I ran python3 manage.py collectstatic --no-input I got the following output which I'm assuming is correct:

(venv) [root@victa01-netbox01 netbox]# python3 manage.py collectstatic --no-input

22 static files copied to '/opt/netbox-3.3.8/netbox/static', 520 unmodified.

UPDATE: Nevermind, it appears to be working. I just needed to search for a site using the filter.

quantum909 commented 1 year ago

I also have problems in netbox 3.3.8 to display the network topolgy with Netbox in a docker container. After creating the docker container topology view doesnt view anything.

When I try to run 'python3 manage.py collectstatic --no-input' in the active venv, I get the following permission error.

1 2
quantum909 commented 1 year ago

It is running now. I had forgotten to add these lines to the dockerfile plugins file.

# These lines are only required if your plugin has its own static files.
COPY configuration/configuration.py /etc/netbox/config/configuration.py
RUN SECRET_KEY="dummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input