Python version mismatch, expected '2.7.5+', found '2.7.16'.

Discussion in 'General' started by vk3heg, Feb 21, 2022.

  1. vk3heg

    vk3heg Member

    HI Guys,

    Debian 10 (Fully dated), Ispconfig 3.2.7. Apache 2.

    The ispconfig panel is working, but no client sites. (Even ones that are static html).

    This is the Apache error.log. No error in client error log. No site is accessible.


    Code:
    Mon Feb 21 10:48:33.672036 2022] [:error] [pid 8417] python_init: Python version mismatch, expected '2.7.5+', found '2.7.16'.
    [Mon Feb 21 10:48:33.672106 2022] [:error] [pid 8417] python_init: Python executable found '/usr/bin/python'.
    [Mon Feb 21 10:48:33.672114 2022] [:error] [pid 8417] python_init: Python path being used '/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
    [Mon Feb 21 10:48:33.672137 2022] [:notice] [pid 8417] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
    [Mon Feb 21 10:48:33.672145 2022] [:notice] [pid 8417] mod_python: using mutex_directory /tmp
    [Mon Feb 21 10:48:33.685222 2022] [mpm_prefork:notice] [pid 8417] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 Phusion_Passenger/5.0.30 OpenSSL/1.1.1d mod_python/3.3.1 Python/2.7.16 mod_perl/2.0.10 Perl/v5.28.1 configured -- resuming normal operations
    [Mon Feb 21 10:48:33.685258 2022] [core:notice] [pid 8417] AH00094: Command line: '/usr/sbin/apache2'
    
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 10 (buster)
    [INFO] uptime:  10:41:44 up 1 day,  9:26,  1 user,  load average: 0.02, 0.02, 0.00
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:           23Gi       2.1Gi        14Gi       186Mi       7.2Gi        20Gi
    Swap:          14Gi          0B        14Gi
    [INFO] systemd failed services status:
    0 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.7p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.3.31-1~deb10u1
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.3.31
    
    ##### PORT CHECK #####
    
    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening
    [WARN] Port 143 (IMAP server) seems to be BLOCKED in firewall
    [WARN] Port 25 (SMTP server) seems to be BLOCKED in firewall
    [WARN] Port 22 (SSH server) seems NOT to be listening
    [WARN] Port 25 (SMTP server) seems to be BLOCKED in firewall
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
       Apache 2 (PID 7184)
    [INFO] I found the following mail server(s):
       Postfix (PID 5839)
    [INFO] I found the following pop3 server(s):
       Dovecot (PID 5879)
    [INFO] I found the following imap server(s):
       Dovecot (PID 5879)
    [INFO] I found the following ftp server(s):
       PureFTP (PID 5503)
    
    ##### LISTENING PORTS #####
    (only       ()
    Local       (Address)
    [anywhere]:993       (5879/dovecot)
    [anywhere]:995       (5879/dovecot)
    [localhost]:10023       (867/postgrey)
    [localhost]:10024       (7396/amavisd-new)
    [localhost]:10025       (5839/master)
    [localhost]:10026       (7396/amavisd-new)
    [localhost]:10027       (5839/master)
    [anywhere]:587       (5839/master)
    [localhost]:11211       (619/memcached)
    [anywhere]:110       (5879/dovecot)
    [anywhere]:9102       (729/sshd)
    [anywhere]:143       (5879/dovecot)
    [anywhere]:655       (640/tincd)
    [anywhere]:465       (5839/master)
    [anywhere]:21       (5503/pure-ftpd)
    ***.***.***.***:53       (30539/named)
    ***.***.***.***:53       (30539/named)
    [localhost]:53       (30539/named)
    [localhost]:8053       (30539/named)
    [anywhere]:25       (5839/master)
    [localhost]:953       (30539/named)
    *:*:*:*::*:443       (7184/apache2)
    *:*:*:*::*:993       (5879/dovecot)
    *:*:*:*::*:995       (5879/dovecot)
    *:*:*:*::*:10023       (867/postgrey)
    *:*:*:*::*:10024       (7396/amavisd-new)
    *:*:*:*::*:10026       (7396/amavisd-new)
    *:*:*:*::*:3306       (29937/mysqld)
    *:*:*:*::*:587       (5839/master)
    [localhost]10       (5879/dovecot)
    *:*:*:*::*:9102       (729/sshd)
    [localhost]43       (5879/dovecot)
    *:*:*:*::*:80       (7184/apache2)
    *:*:*:*::*:465       (5839/master)
    *:*:*:*::*:21       (5503/pure-ftpd)
    *:*:*:*::*:53       (30539/named)
    *:*:*:*::*:25       (5839/master)
    *:*:*:*::*:953       (30539/named)
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    
    lots of fail2ban rejects...
    
    
    ** Python***
    dh-python                   install
    libapache2-mod-python               install
    libpython-stdlib:amd64               install
    libpython2-stdlib:amd64               install
    libpython2.7:amd64               install
    libpython2.7-minimal:amd64           install
    libpython2.7-stdlib:amd64           install
    libpython3-dev:amd64               install
    libpython3-stdlib:amd64               install
    libpython3.7:amd64               install
    libpython3.7-dev:amd64               install
    libpython3.7-minimal:amd64           install
    libpython3.7-stdlib:amd64           install
    python                       install
    python-apt-common               install
    python-minimal                   install
    python-pip-whl                   install
    python2                       install
    python2-minimal                   install
    python2.7                   install
    python2.7-minimal               install
    python3                       install
    python3-apt                   install
    python3-certifi                   install
    python3-chardet                   install
    python3-debconf                   install
    python3-debian                   install
    python3-debianbts               install
    python3-dev                   install
    python3-distutils               install
    python3-httplib2               install
    python3-idna                   install
    python3-lib2to3                   install
    python3-minimal                   install
    python3-pkg-resources               install
    python3-ply                   install
    python3-pycurl                   install
    python3-pyinotify               install
    python3-pysimplesoap               install
    python3-reportbug               install
    python3-requests               install
    python3-six                   install
    python3-systemd                   install
    python3-urllib3                   install
    python3-virtualenv               install
    python3.7                   install
    python3.7-dev                   install
    python3.7-minimal               install
    
    
    
    
    
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Do you need mod_python? If not, a2dismod it and see if things work.
     

Share This Page