Mail client problem

Discussion in 'ISPConfig 3 Priority Support' started by christian.perego, Oct 27, 2022.

  1. christian.perego

    christian.perego Member HowtoForge Supporter

    Here the output. I only hide the server-name with XXXX manually, and some private data also (city,road....)

    ispconfig_update.sh --force


    --------------------------------------------------------------------------------
    _____ ___________ _____ __ _
    |_ _/ ___| ___ \ / __ \ / _(_)
    | | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _
    | | `--. \ __/ | | / _ \| '_ \| _| |/ _` |
    _| |_/\__/ / | | \__/\ (_) | | | | | | | (_| |
    \___/\____/\_| \____/\___/|_| |_|_| |_|\__, |
    __/ |
    |___/
    --------------------------------------------------------------------------------


    >> Update

    Please choose the update method. For production systems select 'stable'.
    WARNING: The update from GIT is only for development systems and may break your current setup. Do not use the GIT version on servers that host any live websites!
    Note: On Multiserver systems, enable maintenance mode and update your master server first. Then update all slave servers, and disable maintenance mode when all servers are updated.

    Select update method (stable,nightly,git-develop) [stable]:

    Downloading ISPConfig update.
    Unpacking ISPConfig update.


    --------------------------------------------------------------------------------
    _____ ___________ _____ __ _ ____
    |_ _/ ___| ___ \ / __ \ / _(_) /__ \
    | | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _ _/ /
    | | `--. \ __/ | | / _ \| '_ \| _| |/ _` | |_ |
    _| |_/\__/ / | | \__/\ (_) | | | | | | | (_| | ___\ \
    \___/\____/\_| \____/\___/|_| |_|_| |_|\__, | \____/
    __/ |
    |___/
    --------------------------------------------------------------------------------


    >> Update

    Operating System: Debian 10.0 (Buster) or compatible

    This application will update ISPConfig 3 on your server.

    Shall the script create a ISPConfig backup in /var/backup/ now? (yes,no) [yes]:

    Creating backup of "/usr/local/ispconfig" directory...
    Creating backup of "/etc" directory...
    Creating backup of "/etc/letsencrypt" directory...
    Checking ISPConfig database .. OK
    Starting incremental database update.
    Loading SQL patch file: /tmp/update_runner.sh.yc341UwVC3/install/sql/incremental/upd_dev_collection.sql
    Reconfigure Permissions in master database? (yes,no) [no]:

    Service 'firewall_server' has been detected (currently disabled) do you want to enable and configure it? (yes,no) [no]:

    Reconfigure Services? (yes,no,selected) [yes]:

    Configuring Postfix
    Configuring Dovecot
    Configuring Mailman
    Configuring Spamassassin
    Configuring Amavisd
    Configuring Getmail
    Configuring BIND
    [INFO] haveged not detected - DNSSEC can fail
    Configuring Pureftpd
    Configuring Apache
    Configuring vlogger
    Configuring Apps vhost
    Configuring Jailkit
    Configuring AppArmor
    Configuring Database
    Updating ISPConfig
    ISPConfig Port [8080]:

    Create new ISPConfig SSL certificate (yes,no) [no]: yes

    Checking / creating certificate for XXXX
    Using certificate path /etc/letsencrypt/live/XXXX
    Using apache for certificate validation
    Traceback (most recent call last):
    File "/opt/eff.org/certbot/venv/bin/certbot", line 7, in <module>
    from certbot.main import main
    File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 2, in <module>
    from certbot._internal import main as internal_main
    File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/_internal/main.py", line 6, in <module>
    import logging.handlers
    File "/usr/lib/python2.7/logging/__init__.py", line 26, in <module>
    import sys, os, time, cStringIO, traceback, warnings, weakref, collections
    File "/usr/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
    ImportError: cannot import name _remove_dead_weakref
    Issuing certificate via certbot failed. Please check log files and make sure that your hostname can be verified by letsencrypt
    Could not issue letsencrypt certificate, falling back to self-signed.
    Generating a RSA private key
    ..................................................................................................................................................................................................................................................................................................................++++
    ...............++++
    writing new private key to '/usr/local/ispconfig/interface/ssl/ispserver.key'
    -----
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [AU]:IT
    State or Province Name (full name) [Some-State]:XXXX
    Locality Name (eg, city) []:XXXX
    Organization Name (eg, company) [Internet Widgits Pty Ltd]:XXXX
    Organizational Unit Name (eg, section) []:.
    Common Name (e.g. server FQDN or YOUR name) []:.
    Email Address []:.
    Symlink ISPConfig SSL certs to Postfix? (y,n) [y]:

    Symlink ISPConfig SSL certs to Pure-FTPd? Creating dhparam file may take some time. (y,n) [y]:

    Reconfigure Crontab? (yes,no) [yes]:

    Updating Crontab
    Restarting services ...
    Update finished.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, here you can see your issue:

    Code:
    Traceback (most recent call last):
    File "/opt/eff.org/certbot/venv/bin/certbot", line 7, in <module>
    from certbot.main import main
    File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 2, in <module>
    from certbot._internal import main as internal_main
    File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/_internal/main.py", line 6, in <module>
    import logging.handlers
    File "/usr/lib/python2.7/logging/__init__.py", line 26, in <module>
    import sys, os, time, cStringIO, traceback, warnings, weakref, collections
    File "/usr/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
    ImportError: cannot import name _remove_dead_weakref
    Issuing certificate via certbot failed. Please check log files and make sure that your hostname can be verified by letsencrypt
    which basically means that certbot on your system is broken.

    First, remove the old broken certbot installation. You can find its symlink with the command:

    which certbot

    and delete it and then also delete the folder /opt/eff.org/certbot
    Finally install a new version of certbot via snap as shown on the certbot web page:

    https://certbot.eff.org/instructions?ws=other&os=debianbuster

    follow steps 1 - 6 (including 6) but not 7+. Then rerun the ispconfig update.
     
  3. christian.perego

    christian.perego Member HowtoForge Supporter

    I did it and the SSL certificate now is correct.
    Thanks a lot! You are amazing!
     

Share This Page