netdevopsbr / netbox-proxbox

Netbox Plugin for integration between Proxmox and Netbox
Apache License 2.0
338 stars 50 forks source link

Stuck when full request #107

Open asanchov opened 1 year ago

asanchov commented 1 year ago

Hi, I have netbox-docker with proxbox plugin, and when I clic on Full Request I get this message

<class 'requests.exceptions.ConnectionError'>

HTTPConnectionPool(host='localhost', port=8001): Max retries exceeded with url: /api/virtualization/cluster-types/?name=Proxmox&slug=proxmox&limit=0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3b28d8eef0>: Failed to establish a new connection: [Errno 111] Connection refused'))

Python version: 3.10.6 NetBox version: 3.5.0

I haven't found anything about this issue and how to solve it. Any idea?

Thanks

incoggnito commented 1 year ago

Hi,

i had the same problem and solved it by replacing "localhost" with the actual ip address of my netbox-docker host. (within configuration.py) Don't forget to fill the ALLOWED_HOSTS Variable. I've created a new api token without any specific ip-adresses.

Maybe it's a good idea to follow this guide: https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins