Closed NetTech2001 closed 1 month ago
Hello @NetTech2001 can you try to recollect static using the following commands:
python3 manage.py collectstatic --no-input
systemctl restart netbox
Also are there any errors in the browser console?
works until I restart the Netbox docker container, any idea how would one make this persistent inside Docker?
Keith Knowles
Lethbridge College
Senior Network Analyst, ITS Ph. 403-320-3202 #5811 3000 College Drive S., Lethbridge, AB T1K 1L6
*Reach me on Microsoft @.> for chat, video or voice calls. Contact the help @.> if you need help.
From: minitriga @.> Sent: Monday, May 20, 2024 4:44 PM To: netbox-community/netbox-reorder-rack @.> Cc: Keith Knowles @.>; Mention @.> Subject: Re: [netbox-community/netbox-reorder-rack] Reorder Page Not Loading (Issue #12)
Hello @NetTech2001https://github.com/NetTech2001 can you try to recollect static using the following commands:
python3 manage.py collectstatic --no-input systemctl restart netbox
— Reply to this email directly, view it on GitHubhttps://github.com/netbox-community/netbox-reorder-rack/issues/12#issuecomment-2121338996, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6WOKU56YOD6EPO4X46VXELZDJ4F7AVCNFSM6AAAAABIAPETL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGMZTQOJZGY. You are receiving this because you were mentioned.Message ID: @.***>
This communication is privileged, confidential, subject to copyright and may contain personal information. Please contact the sender immediately if you are not the intended recipient. Any unauthorized use or disclosure is prohibited. If received in error, this message should be deleted or destroyed.
This communication is privileged, confidential, subject to copyright and may contain personal information. Please contact the sender immediately if you are not the intended recipient. Any unauthorized use or disclosure is prohibited. If received in error, this message should be deleted or destroyed.
Solved by adding
COPY ./configuration/load_plugin.py /etc/netbox/config/load_plugin.py RUN SECRET_KEY="_read_secret('secret_key', environ.get('SECRET_KEY', ''))" /opt/netbox/venv/bin/python3 manage.py collectstatic --no-input
to the Dockerfile-Plugins
and creating file configuration/load_plugin.py thats contains only
PLUGINS = ['netbox_reorder_rack']
Then issue a docker compose build --no-cache to properly build the latest release.
Keith Knowles
Lethbridge College
Senior Network Analyst, ITS Ph. 403-320-3202 #5811 3000 College Drive S., Lethbridge, AB T1K 1L6
*Reach me on Microsoft @.> for chat, video or voice calls. Contact the help @.> if you need help.
From: minitriga @.> Sent: Monday, May 20, 2024 4:44 PM To: netbox-community/netbox-reorder-rack @.> Cc: Keith Knowles @.>; Mention @.> Subject: Re: [netbox-community/netbox-reorder-rack] Reorder Page Not Loading (Issue #12)
Hello @NetTech2001https://github.com/NetTech2001 can you try to recollect static using the following commands:
python3 manage.py collectstatic --no-input systemctl restart netbox
— Reply to this email directly, view it on GitHubhttps://github.com/netbox-community/netbox-reorder-rack/issues/12#issuecomment-2121338996, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6WOKU56YOD6EPO4X46VXELZDJ4F7AVCNFSM6AAAAABIAPETL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGMZTQOJZGY. You are receiving this because you were mentioned.Message ID: @.***>
This communication is privileged, confidential, subject to copyright and may contain personal information. Please contact the sender immediately if you are not the intended recipient. Any unauthorized use or disclosure is prohibited. If received in error, this message should be deleted or destroyed.
This communication is privileged, confidential, subject to copyright and may contain personal information. Please contact the sender immediately if you are not the intended recipient. Any unauthorized use or disclosure is prohibited. If received in error, this message should be deleted or destroyed.
Perfect yes this is the best way to do it :)
https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins#dockerfile-plugins
Thank you I will close the issue. Let me know if you have further issues.
netbox-reorder-rack version
4.0.2
Python version
3.11
Steps to Reproduce
Click re-order button
Expected Behavior
you should be presented with a page to click and drag devices to a new location in the rack.
Observed Behavior
Page load with no devices.