Cannot connect to portainer on port 9000 or 9443 #964

Open
opened 2025-11-20 04:57:19 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @shahab-cl on GitHub (Apr 22, 2025).

Have you read and understood the above guidelines?

yes

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

ct/docker.sh

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

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

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

📝 Provide a clear and concise description of the issue.

When prompted to install portainer, the image gets installed but port 9000 is not open.
I tried to curl to the open ports (8000, 9443) and they do not respond with portainer UI.

Is it possible to add port 9000 to the port mapping on
46ca78abc8/install/docker-install.sh (L37)

46ca78abc8/install/alpine-docker-install.sh (L43)

46ca78abc8/install/podman-homeassistant-install.sh (L57)

46ca78abc8/install/podman-install.sh (L57)

Also is it possile to open the git repo so others can create PR to fix issue.

🔄 Steps to reproduce the issue.

docker run -d
-p 8000:8000
-p 9000:9000
-p 9443:9443
...
to test if this works. I was not able to test using bask as portainer does not contain /bin/bash.

Paste the full error output (if available).

Trying to curl to the lxc server on port 9000

root@docker-lxc:~# curl http://192.168.1.245:9000

  • Trying 192.168.1.245:9000...
  • connect to 192.168.1.245 port 9000 failed: Connection refused
  • Failed to connect to 192.168.1.245 port 9000 after 0 ms: Couldn't connect to server
  • Closing connection 0
    curl: (7) Failed to connect to 192.168.1.245 port 9000 after 0 ms: Couldn't connect to server

root@docker-lxc:~# curl -vv http://192.168.1.245:9443 --insecure

  • Trying 192.168.1.245:9443...
  • Connected to 192.168.1.245 (192.168.1.245) port 9443 (#0)

GET / HTTP/1.1
Host: 192.168.1.245:9443
User-Agent: curl/7.88.1
Accept: /

  • HTTP 1.0, assume close after body
    < HTTP/1.0 400 Bad Request
    <
    Client sent an HTTP request to an HTTPS server.
  • Closing connection 0

root@docker-lxc:~# curl -vv http://192.168.1.245:8000

  • Trying 192.168.1.245:8000...
  • Connected to 192.168.1.245 (192.168.1.245) port 8000 (#0)

GET / HTTP/1.1
Host: 192.168.1.245:8000
User-Agent: curl/7.88.1
Accept: /

< HTTP/1.1 404 Not Found
< Date: Tue, 22 Apr 2025 22:39:41 GMT
< Content-Length: 9
< Content-Type: text/plain; charset=utf-8
<

  • Connection #0 to host 192.168.1.245 left intact
    Not foundroot@docker-lxc:~#

🖼️ Additional context (optional).

No response

Originally created by @shahab-cl on GitHub (Apr 22, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? ct/docker.sh ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/docker.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📝 Provide a clear and concise description of the issue. When prompted to install portainer, the image gets installed but port 9000 is not open. I tried to curl to the open ports (8000, 9443) and they do not respond with portainer UI. Is it possible to add port 9000 to the port mapping on https://github.com/community-scripts/ProxmoxVE/blob/46ca78abc893f876e00b158f0f17ec7dc159722c/install/docker-install.sh#L37 https://github.com/community-scripts/ProxmoxVE/blob/46ca78abc893f876e00b158f0f17ec7dc159722c/install/alpine-docker-install.sh#L43 https://github.com/community-scripts/ProxmoxVE/blob/46ca78abc893f876e00b158f0f17ec7dc159722c/install/podman-homeassistant-install.sh#L57 https://github.com/community-scripts/ProxmoxVE/blob/46ca78abc893f876e00b158f0f17ec7dc159722c/install/podman-install.sh#L57 Also is it possile to open the git repo so others can create PR to fix issue. ### 🔄 Steps to reproduce the issue. docker run -d \ -p 8000:8000 \ -p 9000:9000 \ -p 9443:9443 \ ... to test if this works. I was not able to test using bask as portainer does not contain /bin/bash. ### ❌ Paste the full error output (if available). Trying to curl to the lxc server on port 9000 root@docker-lxc:~# curl http://192.168.1.245:9000 * Trying 192.168.1.245:9000... * connect to 192.168.1.245 port 9000 failed: Connection refused * Failed to connect to 192.168.1.245 port 9000 after 0 ms: Couldn't connect to server * Closing connection 0 curl: (7) Failed to connect to 192.168.1.245 port 9000 after 0 ms: Couldn't connect to server root@docker-lxc:~# curl -vv http://192.168.1.245:9443 --insecure * Trying 192.168.1.245:9443... * Connected to 192.168.1.245 (192.168.1.245) port 9443 (#0) > GET / HTTP/1.1 > Host: 192.168.1.245:9443 > User-Agent: curl/7.88.1 > Accept: */* > * HTTP 1.0, assume close after body < HTTP/1.0 400 Bad Request < Client sent an HTTP request to an HTTPS server. * Closing connection 0 root@docker-lxc:~# curl -vv http://192.168.1.245:8000 * Trying 192.168.1.245:8000... * Connected to 192.168.1.245 (192.168.1.245) port 8000 (#0) > GET / HTTP/1.1 > Host: 192.168.1.245:8000 > User-Agent: curl/7.88.1 > Accept: */* > < HTTP/1.1 404 Not Found < Date: Tue, 22 Apr 2025 22:39:41 GMT < Content-Length: 9 < Content-Type: text/plain; charset=utf-8 < * Connection #0 to host 192.168.1.245 left intact Not foundroot@docker-lxc:~# ### 🖼️ Additional context (optional). _No response_
saavagebueno added the bug label 2025-11-20 04:57:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#964