When updating KUMA, you may encounter the following errors:
When upgrading from version 2.0.x on systems that contain large amounts of data and are operating with limited resources, the system may return the Wrong admin password error message after you enter the administrator password. If you specify the correct password, KUMA may still return an error because KUMA could not start the Core service due to resource limit and a timeout error. If you enter the administrator password three times without waiting for the installation to complete, the update may end with a fatal error.
Follow these steps to resolve the timeout error and successfully complete the update:
journalctl -u kuma-core | grep 'start operation timed out'
Timeout error message:
kuma-core.service: start operation timed out. Terminating.
TimeoutSec
parameter from 300 to 0 to remove the timeout limit and temporarily prevent the error from recurring.systemctl daemon-reload
service kuma-core restart
KUMA will continue the installation. In resource-limited environments, installation may take up to an hour.
TimeoutSec
parameter back to 300.systemctl daemon-reload
service kuma-core restart
After the commands are executed, the update will be completed.
The admin user password is required to automatically populate the storage settings during an update. If you entered an incorrect admin user password nine times during the TASK [Prompt for admin password], the installer still performs the update, and the web interface is still available. However, the storage settings are not migrated, and the storages will show a red status.
To fix the error and make the repositories available for use, update the storage settings:
The storage service will start with the specified parameters and will show a green status.
After updating KUMA, the storage may be in a red status, and its logs may show errors about suspicious strings.
Example error:
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, int, bool) @ 0xda0553a in /opt/kaspersky/kuma/clickhouse/bin/clickhouse
To restart ClickHouse, carry out the following command on the KUMA storage server:
touch /opt/kaspersky/kuma/clickhouse/data/flags/force_restore_data && systemctl restart kuma-storage-<
ID of the storage where the error was detected
>
Fix the errors to successfully complete the update.
Page top