I have set up nginx proxy by the offical guide https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy and this is log from /var/log/nginx/access.log [26/Aug/2020:08:56:24 +0200] "GET /api2/json/nodes/devel4/storage/Kamzik5/content HTTP/1.1" 596 5 "-" "python-requests/2.24.0"
Hi, i have tha same issue with proxmoxer, succesfully "except" it with:
Code:
from requests import exceptions
...
except exceptions.ConnectionError as e:
pass
It seems that sometimes proxmox do not have time to answer. That is, a control command was sent but no response was received. At the same time, in 99% of cases, if you ask again, everything is ok.
Reviving an old post. What is interesting to me is that I’ve been trying to lab Ansible to make proxmox api calls via proxmoxer from a lxc container (privileged or not). If I use ssh backend there’s no issues. If I try to use https, my connection attempts always timeout. I’ve configured another test machine inside an actual VM with the exact same ansible playbook and it works right away without any issues. I’m wondering if it would have something to do with the container network where proxmox would try to answer with the wrong interface. The next thing I’ll try to confirm is to put a reverse proxy as an outside hop. Not sure if run it this way even if it worked. But I’ve spent so much time on this already that at least I’ll have closure.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.