Prometheus Proxmox VE Exporter LXC install fails due to time outs #454

Closed
opened 2025-11-20 04:48:49 -05:00 by saavagebueno · 12 comments
Owner

Originally created by @Builder-DE-TH on GitHub (Feb 2, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Prometheus Proxmox VE Exporter LXC

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/prometheus-pve-exporter.sh)"

📝 Provide a clear and concise description of the issue.

install fails due to connection to files.pythonhosted.org timing out

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

execute install script

Paste the full error output (if available).

✔️  Setup Python3
⠹  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de82eea50>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl
⠙  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de82ef050>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl
⠇  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de82ef850>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl
⠸  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de843b350>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl
⠇  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de82f0550>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl
⠸ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl (Caused by ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de82f0b90>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)'))

⠼
[ERROR] in line 31: exit code 0: while executing command python3 -m pip install --quiet --root-user-action=ignore prometheus-pve-exporter

🖼️ Additional context (optional).

No response

Originally created by @Builder-DE-TH on GitHub (Feb 2, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Prometheus Proxmox VE Exporter LXC ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/prometheus-pve-exporter.sh)" ### 📝 Provide a clear and concise description of the issue. install fails due to connection to files.pythonhosted.org timing out ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. execute install script ### ❌ Paste the full error output (if available). ``` ✔️ Setup Python3 ⠹ WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de82eea50>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl ⠙ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de82ef050>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl ⠇ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de82ef850>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl ⠸ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de843b350>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl ⠇ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de82f0550>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl ⠸ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/3d/3d/851129dfba38bf4bd8c0f1b42bc26b82bbdb49e360659f2e6062784ff48c/prometheus_pve_exporter-3.5.1-py3-none-any.whl (Caused by ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x774de82f0b90>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')) ⠼ [ERROR] in line 31: exit code 0: while executing command python3 -m pip install --quiet --root-user-action=ignore prometheus-pve-exporter ``` ### 🖼️ Additional context (optional). _No response_
Author
Owner

@MickLesk commented on GitHub (Feb 2, 2025):

@andygrunwald can you Check it?

@MickLesk commented on GitHub (Feb 2, 2025): @andygrunwald can you Check it?
Author
Owner

@andygrunwald commented on GitHub (Feb 2, 2025):

This seem to be a slow Internet Connection or something the pip repository had network trouble

One idea to verify:
Install another tool that uses pip.

One idea to decrease the problem likelihood is to increase the timeout.

I can make a PR later on for this.

@andygrunwald commented on GitHub (Feb 2, 2025): This seem to be a slow Internet Connection or something the pip repository had network trouble One idea to verify: Install another tool that uses pip. One idea to decrease the problem likelihood is to increase the timeout. I can make a PR later on for this.
Author
Owner

@andygrunwald commented on GitHub (Feb 2, 2025):

See https://github.com/community-scripts/ProxmoxVE/pull/1950

@andygrunwald commented on GitHub (Feb 2, 2025): See https://github.com/community-scripts/ProxmoxVE/pull/1950
Author
Owner

@michelroegl-brunner commented on GitHub (Feb 3, 2025):

merged

@michelroegl-brunner commented on GitHub (Feb 3, 2025): merged
Author
Owner

@Builder-DE-TH commented on GitHub (Feb 3, 2025):

This hasn't fixed the issue. just takes longer to fail now. It isn't a slow connection issue either, can access the site in the browser instantly on my gig fiber connection.

@Builder-DE-TH commented on GitHub (Feb 3, 2025): This hasn't fixed the issue. just takes longer to fail now. It isn't a slow connection issue either, can access the site in the browser instantly on my gig fiber connection.
Author
Owner

@MickLesk commented on GitHub (Feb 3, 2025):

check your adguard dns or pihole? work before fine for me, and now again

@MickLesk commented on GitHub (Feb 3, 2025): check your adguard dns or pihole? work before fine for me, and now again
Author
Owner

@tremor021 commented on GitHub (Feb 3, 2025):

or you can try using some pypi mirror to test it out

@tremor021 commented on GitHub (Feb 3, 2025): or you can try using some pypi mirror to test it out
Author
Owner

@Builder-DE-TH commented on GitHub (Feb 3, 2025):

I have done and that's not it either. Does it assume you have IPv6 and needs to be forced to IPV4?

@Builder-DE-TH commented on GitHub (Feb 3, 2025): I have done and that's not it either. Does it assume you have IPv6 and needs to be forced to IPV4?
Author
Owner

@andygrunwald commented on GitHub (Feb 3, 2025):

Does it assume you have IPv6 and needs to be forced to IPV4?

Not that I am aware of.
Are you behind a proxy or something similar?

Are you able to run a pip install prometheus-pve-exporter from any other machine in the same network?

I re-installed Prometheus Proxmox VE Exporter yesterday again, it worked fine on my Proxmox.

@andygrunwald commented on GitHub (Feb 3, 2025): > Does it assume you have IPv6 and needs to be forced to IPV4? Not that I am aware of. Are you behind a proxy or something similar? Are you able to run a `pip install prometheus-pve-exporter` from any other machine in the same network? I re-installed Prometheus Proxmox VE Exporter yesterday again, it worked fine on my Proxmox.
Author
Owner

@Builder-DE-TH commented on GitHub (Feb 3, 2025):

I'm not behind a proxy.

I get the same failure from another machine on the network.

This must be some network issue here. apologies.

@Builder-DE-TH commented on GitHub (Feb 3, 2025): I'm not behind a proxy. I get the same failure from another machine on the network. This must be some network issue here. apologies.
Author
Owner

@andygrunwald commented on GitHub (Feb 3, 2025):

@Builder-DE-TH Maybe the --verbose flag helps during pip install to debug it.

@andygrunwald commented on GitHub (Feb 3, 2025): @Builder-DE-TH Maybe the `--verbose` flag helps during pip install to debug it.
Author
Owner

@Builder-DE-TH commented on GitHub (Feb 4, 2025):

FYI: the cause was Emerging Threats ruleset blocks files.pythonhosted.org in your IDS. All good now.

@Builder-DE-TH commented on GitHub (Feb 4, 2025): FYI: the cause was Emerging Threats ruleset blocks files.pythonhosted.org in your IDS. All good now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#454