Bug 46009 - Не работает с Java 17 (java.lang.NoClassDefFoundError: jdk/nashorn/api/scripting/ClassFilter)
Summary: Не работает с Java 17 (java.lang.NoClassDefFoundError: jdk/nashorn/api/script...
Status: ASSIGNED
Alias: None
Product: Sisyphus
Classification: Development
Component: linstor (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-01 13:32 MSK by Evgeny Shesteperov
Modified: 2023-05-10 16:10 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny Shesteperov 2023-05-01 13:32:50 MSK
Версия

-   linstor-1.22.0-alt1

Дистрибутивы

-   p10-server-10.1-x86-64, обновленный до Sisyphus

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

1.  Установить пакеты:

    # apt-get install -y drbd9 drbd-utils kernel-modules-drbd9-std-def

2.  Включить модуль ядра:

    # modprobe drbd && lsmod | grep -i drbd && echo drbd > /etc/modules-load.d/drbd.conf

3.  Установить пакеты:

    # apt-get install -y linstor-controller linstor-satellite linstor-client

1.  Запустить сервисы:

    # systemctl enable --now linstor-controller linstor-satellite

4.  Проверить статус сервиса linstor-controller:

    # systemctl status linstor-controller

Ожидаемый результат: active running

Фактический результат: failed exit-code

В логах сервиса есть сообщение об ошибке:

    [Main] ERROR LINSTOR/Controller - SYSTEM - com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: jdk/nashorn/api/scripting/ClassFilter [Report number 644F9325-00000-000000]

Дополнительно: если удалить java-17-openjdk-headless, и установить,
например, java-11-openjdk-headless) и перезапустить сервис, то запуск
успешный

    # apt-get remove -y java-17-openjdk-headless
    # apt-get install -y java-11-openjdk-headless
    # apt-get install -y linstor-controller linstor-satellite linstor-client
    # systemctl enable --now linstor-controller
    # systemctl status linstor-controller

Воспроизводится в P10.
Comment 1 Andrew Vasilyev 2023-05-02 15:06:16 MSK
Сами Linbit используют для linstor-server java-1.8.0-openjdk
Comment 2 Andrew Vasilyev 2023-05-10 16:10:43 MSK
  В Сизифе исправлено добавлением Requires: java-11-openjdk-headless
  в пакете linstor-common