inex / IXP-Manager

Full stack web application powering peering at over 200 Internet Exchange Points (IXPs) globally.

Home Page:https://www.ixpmanager.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with v6 install script on Ubuntu 20.04

labrack opened this issue · comments

ISSUE TYPE

Bug Report

OS

Ubuntu 20.04

VERSION

latest from repo using install script (6.3.0 I assume)

ENVIRONMENT
# php -v
PHP 8.0.27 (cli) (built: Jan 13 2023 10:42:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.27, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.27, Copyright (c), by Zend Technologies

# dpkg -l | grep php
ii  libapache2-mod-php8.0                 1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  php-common                            2:93+ubuntu20.04.1+deb.sury.org+2                                   all          Common files for PHP packages
ii  php-composer-ca-bundle                1.2.6-1                                                             all          utility library to find a path to the system CA bundle
ii  php-composer-semver                   1.5.1-1                                                             all          utilities, version constraint parsing and validation
ii  php-composer-spdx-licenses            1.5.3-1                                                             all          SPDX licenses list and validation library
ii  php-composer-xdebug-handler           1.4.0-1                                                             all          Restarts a process without Xdebug
ii  php-json-schema                       5.2.9-1                                                             all          implementation of JSON schema
ii  php-psr-container                     1.0.0-2                                                             all          Common Container Interface (PHP FIG PSR-11)
ii  php-psr-log                           1.1.2-1                                                             all          common interface for logging libraries
ii  php-symfony-console                   4.3.8+dfsg-1ubuntu1                                                 all          run tasks from the command line
ii  php-symfony-filesystem                4.3.8+dfsg-1ubuntu1                                                 all          basic filesystem utilities
ii  php-symfony-finder                    4.3.8+dfsg-1ubuntu1                                                 all          find files and directories
ii  php-symfony-process                   4.3.8+dfsg-1ubuntu1                                                 all          execute commands in sub-processes
ii  php-symfony-service-contracts         1.1.8-1                                                             all          Generic abstractions related to writing services
ii  php8.0                                1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             all          server-side, HTML-embedded scripting language (metapackage)
ii  php8.0-bcmath                         1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        Bcmath module for PHP
ii  php8.0-cgi                            1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        server-side, HTML-embedded scripting language (CGI binary)
ii  php8.0-cli                            1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        command-line interpreter for the PHP scripting language
ii  php8.0-common                         1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        documentation, examples and common module for PHP
ii  php8.0-curl                           1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        CURL module for PHP
ii  php8.0-ds                             1.4.0-5+ubuntu20.04.1+deb.sury.org+1                                amd64        PHP extension providing efficient data structures for PHP 7
ii  php8.0-gd                             1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        GD module for PHP
ii  php8.0-igbinary                       3.2.12+2.0.8-2+ubuntu20.04.1+deb.sury.org+1                         amd64        igbinary PHP serializer
ii  php8.0-intl                           1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        Internationalisation module for PHP
ii  php8.0-mbstring                       1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        MBSTRING module for PHP
ii  php8.0-memcache                       8.0+4.0.5.2+3.0.9~20170802.e702b5f9+-8+ubuntu20.04.1+deb.sury.org+1 amd64        memcache extension module for PHP
ii  php8.0-memcached                      3.2.0+2.2.0-3+ubuntu20.04.1+deb.sury.org+1                          amd64        memcached extension module for PHP, uses libmemcached
ii  php8.0-msgpack                        1:2.1.2-1+ubuntu20.04.1+deb.sury.org+1                              amd64        PHP extension for interfacing with MessagePack
ii  php8.0-mysql                          1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        MySQL module for PHP
ii  php8.0-opcache                        1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        Zend OpCache module for PHP
ii  php8.0-readline                       1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        readline module for PHP
ii  php8.0-rrd                            2.0.3+1.1.3-7+ubuntu20.04.1+deb.sury.org+1                          amd64        PHP bindings to rrd tool system
ii  php8.0-snmp                           1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        SNMP module for PHP
ii  php8.0-xml                            1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        DOM, SimpleXML, XML, and XSL module for PHP
ii  php8.0-yaml                           2.2.2+2.1.0+2.0.4+1.3.2-6+ubuntu20.04.1+deb.sury.org+1              amd64        YAML-1.1 parser and emitter for PHP
ii  php8.0-zip                            1:8.0.27-2+ubuntu20.04.1+deb.sury.org+1                             amd64        Zip module for PHP
CONFIGURATION
# cat .env | egrep -v '(^#|^\s*$|^DB_|^APP_KEY|^HELPDESK|^IDENTITY|^MAIL_|^IXP_API_RIR_PASSWORD|^IXP_API_PEERING_DB_)'
APP_DEBUG=false
APP_URL="http://10.6.10.115"
APP_TIMEZONE="UTC"
APP_LOG="single"
IXP_RESELLER_ENABLED=false
IXP_AS112_UI_ACTIVE=false
IXP_FE_FRONTEND_DISABLED_LOGO=false
GRAPHER_BACKENDS="dummy"
GRAPHER_CACHE_ENABLED=true
GRAPHER_BACKEND_MRTG_DBTYPE="rrd"
IXP_API_JSONEXPORTSCHEMA_PUBLIC=true
CACHE_DRIVER=memcached
IXP_IRRDB_BGPQ3_PATH=/usr/bin/bgpq3
SUMMARY

Tried running the ubuntu-lts-2004-ixp-manager-v6.sh install script on a fresh install of Ubuntu 20.04. The installer got through quite a bit but bombed out at "Running composer to install PHP dependencies (please be patient)".

STEPS TO REPRODUCE

Run installer on a fresh system

EXPECTED RESULTS

Expected installer to finish and provide password.

ACTUAL RESULTS

Installer died a quiet death. End of the log file can be found below. Appears to be composer issues?

IMPORTANCE

Our prod server is unaffected, we're just setting up a fresh replacement IXP Manager install on a new VM host.

RELEVANT LOGS

From /tmp/ixp-manager-install.log, just after env file creation task completes::


===========================================================
Sat 14 Jan 2023 04:09:49 UTC
===========================================================

Deprecation Notice: Required parameter $path follows optional parameter $schema in /usr/share/php/JsonSchema/Constraints/UndefinedConstraint.php:62
Deprecation Notice: Required parameter $path follows optional parameter $schema in /usr/share/php/JsonSchema/Constraints/UndefinedConstraint.php:108
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in /usr/share/php/Composer/Repository/RepositoryManager.php:130
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in /usr/share/php/Composer/Repository/RepositoryManager.php:130
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in /usr/share/php/Composer/Repository/RepositoryManager.php:130
Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for doctrine/dbal 3.4.5 -> satisfiable by doctrine/dbal[3.4.5].
    - doctrine/dbal 3.4.5 requires composer-runtime-api ^2 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

I am seeing the exact same issue.

Any movement on this issue?

Should be now fixed via 4c7a03a

If you go again from a clean system (or at least rm -rf /srv/ixpmanager) then it should work.