Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Forbidden issue #68

Closed
pims848 opened this issue Aug 9, 2021 · 3 comments
Closed

403 Forbidden issue #68

pims848 opened this issue Aug 9, 2021 · 3 comments

Comments

@pims848
Copy link

pims848 commented Aug 9, 2021

Hi there,

I just installed a containerized Netbox with nextbox-ui-plugin.
Plugin was enabled successfully and I can browse to the Topology Viewer but I don't see any of my devices and connections...

I check the debugger and I get a 403 Forbidden answers for the following to requests:

GET | http://0.0.0.0:8000/static/nextbox_ui_plugin/next_sources/js/next.js
GET | http://0.0.0.0:8000/static/nextbox_ui_plugin/next_sources/css/next.css

I checked inside the container for any permission mismatch without any result.
Could you please help?

Thx a lot :)

@pims848 pims848 changed the title Loading 403 Forbidden issue Aug 9, 2021
@cervajs
Copy link

cervajs commented Oct 4, 2021

same issue
GET http://mydomain:8000/static/nextbox_ui_plugin/next_sources/js/next.js net::ERR_ABORTED 403 (Forbidden)

followed manual for docker install

netbox fa7ca066c1ed (v3.0.2)

docker log
netbox_1 | 2021/10/04 20:00:20 [error] 24#29 *11 open("/opt/netbox/netbox/static/nextbox_ui_plugin/next_sources/js/next.js") failed (13: Permission denied)

@cervajs
Copy link

cervajs commented Oct 4, 2021

solved by changing
COPY --chown=1000:1000 --chmod=644 ./nextbox_ui_plugin/static/nextbox_ui_plugin /opt/netbox/netbox/static/nextbox_ui_plugin
to
COPY ./nextbox_ui_plugin/static/nextbox_ui_plugin /opt/netbox/netbox/static/nextbox_ui_plugin

in Dockerfile

@pims848
Copy link
Author

pims848 commented Oct 11, 2021

Hi,
Indeed it did the trick for me too.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants