• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Resolved All docker ports are blocked

sundowatch

New Pleskian
Server operating system version
AlmaLinux 8.8 (Sapphire Caracal)
Plesk version and microupdate number
Plesk Obsidian Version 18.0.55
Hi,

I was using the Plesk docker extension to serve my microservices and mongo databases. But I couldn't understand that now I'm not able to reach these ports.

For example, I have 2 docker containers as you see below:
1696135033348.png

I use both these containers to solve this problem. Let's check the configurations.
it-tools:
1696135141619.png
mongo-testdb:
1696135204593.png

As you see, I want to reach to the it-tools by using <IP_ADDRESS>:1010 and to the mongo-testdb by using <IP_ADDRESS>:27018. But I get
Code:
ERR_ADDRESS_UNREACHABLE
error in it-tools, it also fails to connect to the server in mongo-testdb connection.

I have tried these ways:
  • I always reboot my server after I tried to fix the problem.
  • Connect to server via SSH and
    Code:
    plesk repair all -y
  • Remove the containers and reestablish them
Also I have used this command to check if the ports are being listened:
Code:
netstat -tuplen

Code:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name  
tcp        0      0 0.0.0.0:4190            0.0.0.0:*               LISTEN      0          13301      1457/dovecot      
tcp        0      0 0.0.0.0:52223           0.0.0.0:*               LISTEN      0          41801      3521/im360: master
tcp        0      0 0.0.0.0:52224           0.0.0.0:*               LISTEN      0          41797      3521/im360: master
tcp        0      0 127.0.0.1:12768         0.0.0.0:*               LISTEN      89         28927      1425/psa-pc-remote
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      0          38948      1457/dovecot      
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      0          38920      1457/dovecot      
tcp        0      0 0.0.0.0:52233           0.0.0.0:*               LISTEN      0          41802      3521/im360: master
tcp        0      0 127.0.0.1:27018         0.0.0.0:*               LISTEN      0          46006      3761/docker-proxy  
tcp        0      0 0.0.0.0:52234           0.0.0.0:*               LISTEN      0          41798      3521/im360: master
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      0          38128      2202/master        
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      0          38918      1457/dovecot      
tcp        0      0 127.0.0.1:783           0.0.0.0:*               LISTEN      0          2567115    181363/perl        
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      0          38946      1457/dovecot      
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          1238       1/systemd          
tcp        0      0 0.0.0.0:8880            0.0.0.0:*               LISTEN      0          74290      6485/sw-cp-server:
tcp        0      0 0.0.0.0:465             0.0.0.0:*               LISTEN      0          38118      2202/master        
tcp        0      0 127.0.0.1:1010          0.0.0.0:*               LISTEN      0          5418910    408682/docker-proxy
tcp        0      0 172.17.0.1:53           0.0.0.0:*               LISTEN      25         36791      1537/named        
tcp        0      0 162.132.127.134:53      0.0.0.0:*               LISTEN      25         29136      1537/named        
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      25         29134      1537/named        
tcp        0      0 127.0.0.1:3030          0.0.0.0:*               LISTEN      974        41631      2546/grafana-server
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          30340      1405/sshd          
tcp        0      0 127.0.0.1:3000          0.0.0.0:*               LISTEN      100        47860      2550/drwebd.real  
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      0          38027      2202/master        
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      25         29137      1537/named        
tcp        0      0 127.0.0.1:12346         0.0.0.0:*               LISTEN      0          38101      2202/master        
tcp        0      0 0.0.0.0:8443            0.0.0.0:*               LISTEN      0          74289      6485/sw-cp-server:
tcp6       0      0 :::4190                 :::*                    LISTEN      0          13302      1457/dovecot      
tcp6       0      0 :::52223                :::*                    LISTEN      0          41803      3521/im360: master
tcp6       0      0 :::52224                :::*                    LISTEN      0          41799      3521/im360: master
tcp6       0      0 :::993                  :::*                    LISTEN      0          38949      1457/dovecot      
tcp6       0      0 :::995                  :::*                    LISTEN      0          38921      1457/dovecot      
tcp6       0      0 :::52233                :::*                    LISTEN      0          41804      3521/im360: master
tcp6       0      0 :::52234                :::*                    LISTEN      0          41800      3521/im360: master
tcp6       0      0 :::7050                 :::*                    LISTEN      0          37700      1730/httpd        
tcp6       0      0 127.0.0.1:3306          :::*                    LISTEN      27         41060      1823/mysqld        
tcp6       0      0 :::106                  :::*                    LISTEN      0          37023      1824/xinetd        
tcp6       0      0 :::587                  :::*                    LISTEN      0          38129      2202/master        
tcp6       0      0 :::110                  :::*                    LISTEN      0          38919      1457/dovecot      
tcp6       0      0 ::1:783                 :::*                    LISTEN      0          2567113    181363/perl        
tcp6       0      0 :::143                  :::*                    LISTEN      0          38947      1457/dovecot      
tcp6       0      0 :::111                  :::*                    LISTEN      0          1240       1/systemd          
tcp6       0      0 :::8880                 :::*                    LISTEN      0          74292      6485/sw-cp-server:
tcp6       0      0 :::80                   :::*                    LISTEN      0          41315      1730/httpd        
tcp6       0      0 :::465                  :::*                    LISTEN      0          38119      2202/master        
tcp6       0      0 :::21                   :::*                    LISTEN      0          37022      1824/xinetd        
tcp6       0      0 :::53                   :::*                    LISTEN      25         29131      1537/named        
tcp6       0      0 :::22                   :::*                    LISTEN      0          30342      1405/sshd          
tcp6       0      0 :::25                   :::*                    LISTEN      0          38028      2202/master        
tcp6       0      0 :::8443                 :::*                    LISTEN      0          74291      6485/sw-cp-server:
tcp6       0      0 :::443                  :::*                    LISTEN      0          36507      1730/httpd        
udp        0      0 172.17.0.1:53           0.0.0.0:*                           25         36790      1537/named        
udp        0      0 162.132.127.134:53      0.0.0.0:*                           25         29135      1537/named        
udp        0      0 127.0.0.1:53            0.0.0.0:*                           25         29133      1537/named        
udp        0      0 0.0.0.0:111             0.0.0.0:*                           0          1239       1/systemd          
udp        0      0 127.0.0.1:323           0.0.0.0:*                           0          25493      1022/chronyd      
udp6       0      0 :::53                   :::*                                25         29129      1537/named        
udp6       0      0 :::111                  :::*                                0          1241       1/systemd          
udp6       0      0 ::1:323                 :::*                                0          25494      1022/chronyd      
udp6       0      0 :::1514                 :::*                                0          4036731    306349/ossec-remote

On the other hand I tried to check if the mongodb is being listened, but it is not.
Code:
MongoDB shell version v4.0.28
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
2023-10-01T07:50:34.814+0300 E QUERY    [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:356:17
@(connect):2:6
exception: connect failed

When I type
Code:
netstat -vatn
, I can see the
Code:
127.0.0.1:27018
Code:
127.0.0.1:1010
addresses.

I can not understand what I'm missing.
 
Back
Top