Bug 51396 - Пустая страница при настройке
Summary: Пустая страница при настройке
Status: CLOSED DUPLICATE of bug 50937
Alias: None
Product: Branch p11
Classification: Unclassified
Component: icingaweb2 (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P5 normal
Assignee: manowar@altlinux.org
QA Contact: qa-p11@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-04 16:17 MSK by Evgeny Shesteperov
Modified: 2024-09-04 20:47 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny Shesteperov 2024-09-04 16:17:15 MSK
Версия

-   icingaweb2-2.12.1-alt3

Шаги воспроизведения

Установленные пакеты:

# apt-get install -y icinga2 icingaweb2 icinga2-doc icinga-l10n
icinga-php-library icinga-php-thirdparty icingaweb2-cli
icingaweb2-common icingaweb2-php icingaweb2-php-mysql
icingaweb2-php-pgsql liboniguruma5 icingaweb2-nginx
icingaweb2-module-director nagwad-icinga-master

Остановить Apache:

    # systemctl stop httpd2 && systemctl disable httpd2

Создать конфигурацию Nginx для Icinga2 с SSL:

    # cat > /etc/nginx/sites-available.d/icingaweb2-ssl.conf <<'EOF'
    server {
        listen 80;
        server_name icinga2 icinga2-master.localdomain localhost localhost.localdomain;
        rewrite ^ https://$host$request_uri? permanent;
    }
    server {
        listen 443 ssl;
        server_name icinga2 icinga2-master.localdomain localhost localhost.localdomain;
        ssl_certificate     /var/lib/icinga2/certs/icinga2-master.localdomain.crt;
        ssl_certificate_key /var/lib/icinga2/certs/icinga2-master.localdomain.key;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
        ssl_ciphers         HIGH:!aNULL:!MD5;
        location ~ ^/icingaweb2/index\.php(.*)$ {
          fastcgi_pass unix:/var/run/php8.3-fpm/icingaweb2.socket;
          fastcgi_index index.php;
          include fastcgi_params;
          fastcgi_param SCRIPT_FILENAME /usr/share/icingaweb2/public/index.php;
          fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2;
          fastcgi_param REMOTE_USER $remote_user;
       }
        location ~ ^/icingaweb2(.+)? {
          alias /usr/share/icingaweb2/public;
          index index.php;
          try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args;
        }
    }
    EOF

Отключить старую конфигурацию Nginx и включить новую:

    # rm -rf /etc/nginx/sites-enabled.d/icingaweb2.conf
    # ln -s /etc/nginx/sites-available.d/icingaweb2-ssl.conf /etc/nginx/sites-enabled.d/icingaweb2-ssl.conf

Запустить сервис PHP8.3-FPM:

# systemctl enable –now php8.3-fpm.service && sleep 5; systemctl status
php8.3-fpm.service –no-pager -l

Запустить сервис icinga2:

# systemctl enable –now icinga2 && sleep 5; systemctl status icinga2
–no-pager -l

Создать каталог конфигурации:

# icingacli setup config directory –group icingaweb2

Сгенерировать токен:

# icingacli setup token create

Настроить REST API для связи Icinga и Icinga Web 2:

    # icinga2 api setup

Для применения изменений перезагрузить icinga2:

# systemctl restart icinga2.service && sleep 5; systemctl status
icinga2.service

Запустить сервис Nginx:

# systemctl enable –now nginx && sleep 5; systemctl status nginx
–no-pager -l

В браузере перейдите по адресу https://icinga2/icingaweb2/setup

Ожидаемый результат: Открылась страница настройки Icinga 2 Web.

Фактический результат: Пустая страница.

Workaround:

    apt-get install -y php8.3-intl

В Sisyphus / P10 не воспроизводится
Comment 1 Alexander Makeenkov 2024-09-04 20:47:28 MSK

*** This bug has been marked as a duplicate of bug 50937 ***