Ubuntu 22 ISPConfig autoinstaller problem (phpMyAdmin)

Discussion in 'Installation/Configuration' started by CJ M, Jan 23, 2024.

  1. CJ M

    CJ M New Member

    I had a fresh Ubuntu 22 server (updated) and got this:

    PHP Warning: Undefined array key 0 in /tmp/ispconfig-ai/lib/os/class.ISPConfigDebianOS.inc.php on line 266

    [ERROR] Exception occurred: ISPConfigOSException -> Command chown -R www-data:www-data '/var/lib/phpmyadmin' ; cd /tmp ; rm -f phpMyAdmin--all-languages.tar.gz ; wget https://files.phpmyadmin.net/phpMyAdmin//phpMyAdmin--all-languages.tar.gz 2>/dev/null && tar xfz phpMyAdmin--all-languages.tar.gz && cp -a phpMyAdmin--all-languages/* /usr/share/phpmyadmin/ && rm -f phpMyAdmin--all-languages.tar.gz && rm -rf phpMyAdmin--all-languages failed. (/ispconfig.ai.php:15)

    This occurred right after:

    [WARN] Unexpected resolver response: Server: 127.0.0.53 (/lib/os/class.ISPConfigDebianOS.inc.php:1708)

    [INFO] Installing packages nginx-full, fcgiwrap

    [INFO] Installed packages nginx-full, fcgiwrap

    [INFO] Installing packages php-pear, php-memcache, php-imagick, mcrypt, imagemagick, libruby, memcached, php-apcu, jailkit, php5.6, php5.6-common, php5.6-gd, php5.6-mysql, php5.6-imap, php5.6-cli, php5.6-mcrypt, php5.6-curl, php5.6-intl, php5.6-pspell, php5.6-recode, php5.6-sqlite3, php5.6-tidy, php5.6-xmlrpc, php5.6-xsl, php5.6-zip, php5.6-mbstring, php5.6-soap, php5.6-opcache, php5.6-cgi, php5.6-fpm, php7.0, php7.0-common, php7.0-gd, php7.0-mysql, php7.0-imap, php7.0-cli, php7.0-mcrypt, php7.0-curl, php7.0-intl, php7.0-pspell, php7.0-recode, php7.0-sqlite3, php7.0-tidy, php7.0-xmlrpc, php7.0-xsl, php7.0-zip, php7.0-mbstring, php7.0-soap, php7.0-opcache, php7.0-cgi, php7.0-fpm, php7.1, php7.1-common, php7.1-gd, php7.1-mysql, php7.1-imap, php7.1-cli, php7.1-mcrypt, php7.1-curl, php7.1-intl, php7.1-pspell, php7.1-recode, php7.1-sqlite3, php7.1-tidy, php7.1-xmlrpc, php7.1-xsl, php7.1-zip, php7.1-mbstring, php7.1-soap, php7.1-opcache, php7.1-cgi, php7.1-fpm, php7.2, php7.2-common, php7.2-gd, php7.2-mysql, php7.2-imap, php7.2-cli, php7.2-curl, php7.2-intl, php7.2-pspell, php7.2-recode, php7.2-sqlite3, php7.2-tidy, php7.2-xmlrpc, php7.2-xsl, php7.2-zip, php7.2-mbstring, php7.2-soap, php7.2-opcache, php7.2-cgi, php7.2-fpm, php7.3, php7.3-common, php7.3-gd, php7.3-mysql, php7.3-imap, php7.3-cli, php7.3-curl, php7.3-intl, php7.3-pspell, php7.3-recode, php7.3-sqlite3, php7.3-tidy, php7.3-xmlrpc, php7.3-xsl, php7.3-zip, php7.3-mbstring, php7.3-soap, php7.3-opcache, php7.3-cgi, php7.3-fpm, php7.4, php7.4-common, php7.4-gd, php7.4-mysql, php7.4-imap, php7.4-cli, php7.4-curl, php7.4-intl, php7.4-pspell, php7.4-sqlite3, php7.4-tidy, php7.4-xmlrpc, php7.4-xsl, php7.4-zip, php7.4-mbstring, php7.4-soap, php7.4-opcache, php7.4-cgi, php7.4-fpm, php8.0, php8.0-common, php8.0-gd, php8.0-mysql, php8.0-imap, php8.0-cli, php8.0-curl, php8.0-intl, php8.0-pspell, php8.0-sqlite3, php8.0-tidy, php8.0-xsl, php8.0-zip, php8.0-mbstring, php8.0-soap, php8.0-opcache, php8.0-cgi, php8.0-fpm, php8.1, php8.1-common, php8.1-gd, php8.1-mysql, php8.1-imap, php8.1-cli, php8.1-curl, php8.1-intl, php8.1-pspell, php8.1-sqlite3, php8.1-tidy, php8.1-xsl, php8.1-zip, php8.1-mbstring, php8.1-soap, php8.1-opcache, php8.1-cgi, php8.1-fpm, php8.2, php8.2-common, php8.2-gd, php8.2-mysql, php8.2-imap, php8.2-cli, php8.2-curl, php8.2-intl, php8.2-pspell, php8.2-sqlite3, php8.2-tidy, php8.2-xsl, php8.2-zip, php8.2-mbstring, php8.2-soap, php8.2-opcache, php8.2-cgi, php8.2-fpm, php8.3, php8.3-common, php8.3-gd, php8.3-mysql, php8.3-imap, php8.3-cli, php8.3-curl, php8.3-intl, php8.3-pspell, php8.3-sqlite3, php8.3-tidy, php8.3-xsl, php8.3-zip, php8.3-mbstring, php8.3-soap, php8.3-opcache, php8.3-cgi, php8.3-fpm

    [INFO] Installed packages php-pear, php-memcache, php-imagick, mcrypt, imagemagick, libruby, memcached, php-apcu, jailkit, php5.6, php5.6-common, php5.6-gd, php5.6-mysql, php5.6-imap, php5.6-cli, php5.6-mcrypt, php5.6-curl, php5.6-intl, php5.6-pspell, php5.6-recode, php5.6-sqlite3, php5.6-tidy, php5.6-xmlrpc, php5.6-xsl, php5.6-zip, php5.6-mbstring, php5.6-soap, php5.6-opcache, php5.6-cgi, php5.6-fpm, php7.0, php7.0-common, php7.0-gd, php7.0-mysql, php7.0-imap, php7.0-cli, php7.0-mcrypt, php7.0-curl, php7.0-intl, php7.0-pspell, php7.0-recode, php7.0-sqlite3, php7.0-tidy, php7.0-xmlrpc, php7.0-xsl, php7.0-zip, php7.0-mbstring, php7.0-soap, php7.0-opcache, php7.0-cgi, php7.0-fpm, php7.1, php7.1-common, php7.1-gd, php7.1-mysql, php7.1-imap, php7.1-cli, php7.1-mcrypt, php7.1-curl, php7.1-intl, php7.1-pspell, php7.1-recode, php7.1-sqlite3, php7.1-tidy, php7.1-xmlrpc, php7.1-xsl, php7.1-zip, php7.1-mbstring, php7.1-soap, php7.1-opcache, php7.1-cgi, php7.1-fpm, php7.2, php7.2-common, php7.2-gd, php7.2-mysql, php7.2-imap, php7.2-cli, php7.2-curl, php7.2-intl, php7.2-pspell, php7.2-recode, php7.2-sqlite3, php7.2-tidy, php7.2-xmlrpc, php7.2-xsl, php7.2-zip, php7.2-mbstring, php7.2-soap, php7.2-opcache, php7.2-cgi, php7.2-fpm, php7.3, php7.3-common, php7.3-gd, php7.3-mysql, php7.3-imap, php7.3-cli, php7.3-curl, php7.3-intl, php7.3-pspell, php7.3-recode, php7.3-sqlite3, php7.3-tidy, php7.3-xmlrpc, php7.3-xsl, php7.3-zip, php7.3-mbstring, php7.3-soap, php7.3-opcache, php7.3-cgi, php7.3-fpm, php7.4, php7.4-common, php7.4-gd, php7.4-mysql, php7.4-imap, php7.4-cli, php7.4-curl, php7.4-intl, php7.4-pspell, php7.4-sqlite3, php7.4-tidy, php7.4-xmlrpc, php7.4-xsl, php7.4-zip, php7.4-mbstring, php7.4-soap, php7.4-opcache, php7.4-cgi, php7.4-fpm, php8.0, php8.0-common, php8.0-gd, php8.0-mysql, php8.0-imap, php8.0-cli, php8.0-curl, php8.0-intl, php8.0-pspell, php8.0-sqlite3, php8.0-tidy, php8.0-xsl, php8.0-zip, php8.0-mbstring, php8.0-soap, php8.0-opcache, php8.0-cgi, php8.0-fpm, php8.1, php8.1-common, php8.1-gd, php8.1-mysql, php8.1-imap, php8.1-cli, php8.1-curl, php8.1-intl, php8.1-pspell, php8.1-sqlite3, php8.1-tidy, php8.1-xsl, php8.1-zip, php8.1-mbstring, php8.1-soap, php8.1-opcache, php8.1-cgi, php8.1-fpm, php8.2, php8.2-common, php8.2-gd, php8.2-mysql, php8.2-imap, php8.2-cli, php8.2-curl, php8.2-intl, php8.2-pspell, php8.2-sqlite3, php8.2-tidy, php8.2-xsl, php8.2-zip, php8.2-mbstring, php8.2-soap, php8.2-opcache, php8.2-cgi, php8.2-fpm, php8.3, php8.3-common, php8.3-gd, php8.3-mysql, php8.3-imap, php8.3-cli, php8.3-curl, php8.3-intl, php8.3-pspell, php8.3-sqlite3, php8.3-tidy, php8.3-xsl, php8.3-zip, php8.3-mbstring, php8.3-soap, php8.3-opcache, php8.3-cgi, php8.3-fpm

    [INFO] Setting default system PHP version.

    [INFO] Installing phpMyAdmin

    PHP Warning: file_get_contents(https://www.phpmyadmin.net/home_page/version.txt): Failed to open stream: Network is unreachable in /tmp/ispconfig-ai/lib/os/class.ISPConfigDebianOS.inc.php on line 264

    I repeated the autoinstall invocation and got the same error.

    So:

    root@mail:/home/someguy# uname -a

    Linux mail 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

    root@mail:/home/chrism# cat /etc/*releas*

    DISTRIB_ID=Ubuntu

    DISTRIB_RELEASE=22.04

    DISTRIB_CODENAME=jammy

    DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"

    PRETTY_NAME="Ubuntu 22.04.3 LTS"

    NAME="Ubuntu"

    VERSION_ID="22.04"

    VERSION="22.04.3 LTS (Jammy Jellyfish)"

    VERSION_CODENAME=jammy

    ID=ubuntu

    ID_LIKE=debian

    HOME_URL="https://www.ubuntu.com/"

    SUPPORT_URL="https://help.ubuntu.com/"

    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"

    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"

    UBUNTU_CODENAME=jammy

    How can I help narrow down the issue? Thanks!
    CJ

     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    It looks like a problem with your internet connection as the network became unreachable during install, and the installation can not work when the installer is unable to download packages from the internet.

    Which exact command line options did you use to run the installer?
     
  3. CJ M

    CJ M New Member

    wget -O - https://get.ispconfig.org | sh -s -- --use-nginx --use-ftp-ports=40110-40210 --unattended-upgrades (what is in the howto guide).

    The internet is working well,


    2 internet connections at this site are load balanced. This morning is a completely different error, maybe I need to turn off IPv6 on Ubuntu?:

    root@mail:/home/someguy# wget -O - https://get.ispconfig.org | sh -s -- --use-nginx --use-ftp-ports=40110-40210 --unattended-upgrades

    --2024-01-23 07:19:54-- https://get.ispconfig.org/

    Resolving get.ispconfig.org (get.ispconfig.org)... 2606:4700:20::681a:bf6, 2606:4700:20::ac43:4b70, 2606:4700:20::681a:af6, ...

    Connecting to get.ispconfig.org (get.ispconfig.org)|2606:4700:20::681a:bf6|:443... failed: Network is unreachable.

    Connecting to get.ispconfig.org (get.ispconfig.org)|2606:4700:20::ac43:4b70|:443... failed: Network is unreachable.

    Connecting to get.ispconfig.org (get.ispconfig.org)|2606:4700:20::681a:af6|:443... failed: Network is unreachable.

    Connecting to get.ispconfig.org (get.ispconfig.org)|104.26.10.246|:443... connected.

    HTTP request sent, awaiting response... 200 OK

    Length: 2003 (2.0K) [application/octet-stream]

    Saving to: ‘STDOUT’


    - 100%[===================================================================================================>] 1.96K --.-KB/s in 0s


    2024-01-23 07:19:58 (24.9 MB/s) - written to stdout [2003/2003]


    WARNING! This script will reconfigure your entire server!

    It should be run on a freshly installed server and all current configuration that you have done will most likely be lost!

    Type 'yes' if you really want to continue: yes

    [INFO] Starting perfect server setup for Ubuntu 22.04.3 LTS

    [INFO] Checking hostname.

    [INFO] Configuring apt repositories.

    [INFO] Updating packages

    [INFO] Updated packages

    [INFO] Installing packages ssh, openssh-server, nano, vim-nox, lsb-release, apt-transport-https, ca-certificates, wget, git, gnupg, software-properties-common, curl, cron, ntp

    [INFO] Installed packages ssh, openssh-server, nano, vim-nox, lsb-release, apt-transport-https, ca-certificates, wget, git, gnupg, software-properties-common, curl, cron, ntp

    [INFO] Activating rspamd repository.

    [INFO] Activating sury php repository.

    Traceback (most recent call last):

    File "/usr/bin/add-apt-repository", line 364, in <module>

    sys.exit(0 if addaptrepo.main() else 1)

    File "/usr/bin/add-apt-repository", line 347, in main

    shortcut = handler(source, **shortcut_params)

    File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler

    return handler(shortcut, **kwargs)

    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 82, in __init__

    if self.lpppa.publish_debug_symbols:

    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in lpppa

    self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)

    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 107, in lpteam

    self._lpteam = self.lp.people(self.teamname)

    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in lp

    self._lp = login_func("%s.%s" % (self.__module__, self.__class__.__name__),

    File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 494, in login_anonymously

    return cls(

    File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 230, in __init__

    super(Launchpad, self).__init__(

    File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 472, in __init__

    self._wadl = self._browser.get_wadl_application(self._root_uri)

    File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 447, in get_wadl_application

    response, content = self._request(url, media_type=wadl_type)

    File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 389, in _request

    response, content = self._request_and_retry(

    File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 359, in _request_and_retry

    response, content = self._connection.request(

    File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1693, in request

    (response, new_content) = self._request(

    File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 144, in _request

    response, content = super(LaunchpadOAuthAwareHttp, self)._request(

    File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 184, in _request

    return super(RestfulHttp, self)._request(

    File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1441, in _request

    (response, content) = self._conn_request(conn, request_uri, method, body, headers)

    File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1363, in _conn_request

    conn.connect()

    File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1199, in connect

    raise socket_err

    File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1153, in connect

    sock.connect((self.host, self.port))

    OSError: [Errno 101] Network is unreachable

    [ERROR] Exception occurred: ISPConfigOSException -> Command add-apt-repository -y ppa:eek:ndrej/php failed. (/ispconfig.ai.php:15)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Might be that your Desktop internet connection works, but your server internet connection has issues. Looks to me as if you configured IPv6 and IPv4 on the server, but only IPv4 is working. As most software defaults to IPv6 now, things like downloading files with wget fails. Either fix your IPv6 connection or disable IPv6 networking on your server completely.
     
    ahrasis likes this.
  5. CJ M

    CJ M New Member

    There are a lot of errant guides to turning off IPv6. Until I went into the desktop GUI settings and explicitly disabled IPv6 none of the boot time or other methods to disable it worked. Thanks!
     
    Th0m likes this.

Share This Page