• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Plesk is using Port 443 but Traefik-Container needs it

getdedget

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.52
I am new to using Plesk and I am already facing a problem that must be because of Plesk, since I never had this problem without Plesk.

I just tried to install and start Traefik container via Docker, but it shows the following error message:

Error response from daemon: driver failed programming external connectivity on endpoint traefik (“number+words”): Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use

lsof -i :443

this shows me the following processes using the port.

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 401 root 6u IPv4 4859056730 0t0 TCP server.mydomain.xx:https (LISTEN)
nginx 403 nginx 6u IPv4 4175398569 0t0 TCP server.mydomain.xx:https (LISTEN)
Apparently nginx from Plesk is preventing access to port 443 from Traefik.
How to fix it?

I was thinking about disabling/uninstalling nginx in Plesk. But then it says things like other processes may depend on it and cause more problems etc etc.

Maybe reinstall the server directly without Plesk? I am not a heavy-user of Plesk, but I just had it set up to get to know it. Would have gladly left Plesk on if it didn't get in the way with other services. Server is used only for Docker/containers.
 
I am not sure what to say, because port 443 is the SSL standard port on the Internet. All SSL/TLS (https://) connections run on it. For that reason Plesk configures web servers to respond on that port. If you had a stand-alone installation with no other domains that needed that port and did not configure your web server(s) to respond on the port, then your container can grab and occupy it. It is not possible that two different services listen on the same port.

If you uninstall Nginx, Apache will take over and naturally occupy port 443, because that is its job.
 
Back
Top