jeremyschulman / netbox-plugin-auth-saml2

Netbox plugin for SSO using SAML2
119 stars 21 forks source link

Unable to Install Using Netbox-Docker #73

Closed sam-karateman closed 8 months ago

sam-karateman commented 8 months ago

Hello, I'm attempting to install this plugin as a proof of concept for our environment and I'm having some trouble getting the plugin installed with the Docker version of Netbox. I'm using this documentation to build the plugin and I have installed the plugin using python3 setup.py install. When I attempt to run the docker compose build --no-cache command, I'm getting this error:

 => ERROR [netbox 3/6] RUN /opt/netbox/venv/bin/pip install  --no-warn-script-location -r /opt/netbox/plugin_requirements.txt                                                                                                   401.2s
------                                                                                                                                                                                                                                 
 > [netbox 3/6] RUN /opt/netbox/venv/bin/pip install  --no-warn-script-location -r /opt/netbox/plugin_requirements.txt:                                                                                                                
57.11 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f394426da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/netbox-plugin-auth-saml2/                                                                                                                          
113.7 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3944260290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/netbox-plugin-auth-saml2/                                                                                                                          
170.7 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3944260b90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/netbox-plugin-auth-saml2/
228.8 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3944261510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/netbox-plugin-auth-saml2/
288.9 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3944261f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/netbox-plugin-auth-saml2/
344.9 ERROR: Could not find a version that satisfies the requirement netbox-plugin-auth-saml2 (from versions: none)
344.9 ERROR: No matching distribution found for netbox-plugin-auth-saml2
------
failed to solve: process "/bin/sh -c /opt/netbox/venv/bin/pip install  --no-warn-script-location -r /opt/netbox/plugin_requirements.txt" did not complete successfully: exit code: 1

Would you have any recommendations as far as how to get this plugin working with the Docker version of Netbox?

sam-karateman commented 8 months ago

This ended up being an issue with docker iptables, setting it to true resolved the issue.