Jump to content

Ошибка при установке KSC на AstraLinux 1.8


Go to solution Solved by mike 1,

Recommended Posts

Добрый день!

root@ksc:/tmp# cat /etc/os-release
PRETTY_NAME="Astra Linux"
NAME="Astra Linux"
ID=astra
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://astralinux.ru"
SUPPORT_URL="https://astralinux.ru/support"
LOGO=astra
VERSION_ID=1.8_x86-64
VERSION_CODENAME=1.8_x86-64
root@ksc:/tmp# apt install /tmp/ksc64_15.1.0-11795_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'ksc64' instead of '/tmp/ksc64_15.1.0-11795_amd64.deb'
The following packages were automatically installed and are no longer required:
  libestr0 libfastjson4 liblognorm5
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  ksc64
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/160 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /tmp/ksc64_15.1.0-11795_amd64.deb ksc64 amd64 15.1.0.11795 [160 MB]
Selecting previously unselected package ksc64.
(Reading database ... 88181 files and directories currently installed.)
Preparing to unpack .../ksc64_15.1.0-11795_amd64.deb ...
Pre install section...
Stopping klactprx_srv...
Stopping klnagent_srv...
Stopping kladminserver_srv...
Unpacking ksc64 (15.1.0.11795) ...
Setting up ksc64 (15.1.0.11795) ...
Post install section...
Traces off
Execute automatic installation

Fatal error: Server registration failed with code '3': 'Registering
kladminserver.
'

Fatal error: Setup script failed with code 2, signal 0.

Installation failed.
dpkg: error processing package ksc64 (--configure):
 installed ksc64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 ksc64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Возможно, проблема в этом:

L1  KLERR: #1, Error was caught in void KLSTDSVC::ServiceCtrlImpl::Run(bool), /home/builder/a/c/d_00000000/s/product/osmp/ksc/dev/std/service/service_unix.cpp@711. Error params: (1198/0x0 ("Assertion "Administration Server registration FAILED. '#1950 Generic db error: "[22021]`ERROR:  invalid byte sequence for encoding "UTF8": 0x00 `,  LastStatement=`CREATE OR REPLACE FUNCTION "AK_CAST2BYTEA"(      nVal NUMERIC)  RETURNS BYTEA  LANGUAGE plpgsql  IMMUTABLE  AS $$  DECLARE      binRes BYTEA := '\x';      nTemp INTEGER;  BEGIN      IF nVal IS NULL THEN RETURN NULL; END IF;      WHILE nVal > 0 LOOP          nTemp:= nVal % 256;          binRes := SET_BYTE(('\x00' || binRes), 0, nTemp);          nVal := (nVal-nTemp)/256;      END LOOP;      RETURN binRes;  END $$`"'" failed"), "KLSTD", /home/builder/a/c/d_00000000/s/product/osmp/ksc/dev/server/server/Server.cpp@1491) Error loc: ''.

 

Link to comment
Share on other sites

38 минут назад, Mxm38 сказал:

Аналогичная проблема. При установке KSC 15 + PostgreSQL 15 на Астру 1.8

Аналогично.. Уже поставил Астру полностью на ENG, думал может ошибка локалей.
Без проблем ставится на MariaDB но нужен PostgreSQL

Link to comment
Share on other sites

В логах klregserver вот это выдает: 
L1  KLERR: #1, Error was caught in void KLSTDSVC::ServiceCtrlImpl::Run(bool), /home/builder/a/c/d_00000000/s/product/osmp/ksc/dev/std/service/service_unix.cpp@711. Error params: (1198/0x0 ("Assertion "Administration Server registration FAILED. '#1963 (2013) Database connection is broken "2013, 'Lost connection to MySQL server at 'handshake: reading initial communication packet', system error: 110' , LastStatement='mysql_real_connect'"'" failed"), "KLSTD", /home/builder/a/c/d_00000000/s/product/osmp/ksc/dev/server/server/Server.cpp@1470) Error loc: ''. 

При том, что выбирается PostgreSQL на этапе установки, и также установлена только PostgreSQL и настроена полностью по мануалу с сайта Касперского, MySQL на сервере не установлена, но лог выдает MySQL.

 

Link to comment
Share on other sites

Выше проблему которую писал, победил. Но теперь выводит ошибку кодировки utf8. Такого рода: 

invalid byte sequence for encoding "UTF8": 0x00
Link to comment
Share on other sites

Здравствуйте. 

Выполняем команды:

sudo -u postgres psql   //переключаемся в консоль PostgreSQL
CREATE USER "kscadmin" WITH PASSWORD 'kaspersky' CREATEDB; //Создаем пользователя в СУБД
CREATE DATABASE "KAV" ENCODING 'UTF8' OWNER "kscadmin"; // Создаем базу данных KAV с кодировкой UTF-8
GRANT ALL PRIVILEGES ON DATABASE "KAV" TO "kscadmin"; // Выдаем полные права на базу KAV
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA "public" TO "kscadmin"; 
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA "public" TO "kscadmin";

Дальше пробуем установить заново

 

 

Link to comment
Share on other sites

4 часа назад, mike 1 сказал:

Здравствуйте. 

Выполняем команды:

sudo -u postgres psql   //переключаемся в консоль PostgreSQL
CREATE USER "kscadmin" WITH PASSWORD 'kaspersky' CREATEDB; //Создаем пользователя в СУБД
CREATE DATABASE "KAV" ENCODING 'UTF8' OWNER "kscadmin"; // Создаем базу данных KAV с кодировкой UTF-8
GRANT ALL PRIVILEGES ON DATABASE "KAV" TO "kscadmin"; // Выдаем полные права на базу KAV
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA "public" TO "kscadmin"; 
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA "public" TO "kscadmin";

Дальше пробуем установить заново

 

 

 Здравствуйте, не работает

Edited by Maxxxz7
Link to comment
Share on other sites

Тогда в саппорт пишем запрос. На прошлой версии Astra Linux работало. 

postgres-# \l
                                                        List of databases
     Name      |       Owner       | Encoding |   Collate   |    Ctype    | ICU Locale | Locale Provider |   Access privileges
---------------+-------------------+----------+-------------+-------------+------------+-----------------+-----------------------
 KAV           | kscadmin          | UTF8     | ru_RU.UTF-8 | ru_RU.UTF-8 |            | libc            | =Tc/kscadmin         +
               |                   |          |             |             |            |                 | kscadmin=CTc/kscadmin
 postgres      | postgres          | UTF8     | ru_RU.UTF-8 | ru_RU.UTF-8 |            | libc            |
 template0     | postgres          | UTF8     | ru_RU.UTF-8 | ru_RU.UTF-8 |            | libc            | =c/postgres          +
               |                   |          |             |             |            |                 | postgres=CTc/postgres
 template1     | postgres          | UTF8     | ru_RU.UTF-8 | ru_RU.UTF-8 |            | libc            | =c/postgres          +
               |                   |          |             |             |            |                 | postgres=CTc/postgres
 template_rbac | pg_database_admin | UTF8     | ru_RU.UTF-8 | ru_RU.UTF-8 |            | libc            |
(5 rows)
 

Link to comment
Share on other sites

15 часов назад, mike 1 сказал:

Тогда в саппорт пишем запрос. На прошлой версии Astra Linux работало. 

postgres-# \l
                                                        List of databases
     Name      |       Owner       | Encoding |   Collate   |    Ctype    | ICU Locale | Locale Provider |   Access privileges
---------------+-------------------+----------+-------------+-------------+------------+-----------------+-----------------------
 KAV           | kscadmin          | UTF8     | ru_RU.UTF-8 | ru_RU.UTF-8 |            | libc            | =Tc/kscadmin         +
               |                   |          |             |             |            |                 | kscadmin=CTc/kscadmin
 postgres      | postgres          | UTF8     | ru_RU.UTF-8 | ru_RU.UTF-8 |            | libc            |
 template0     | postgres          | UTF8     | ru_RU.UTF-8 | ru_RU.UTF-8 |            | libc            | =c/postgres          +
               |                   |          |             |             |            |                 | postgres=CTc/postgres
 template1     | postgres          | UTF8     | ru_RU.UTF-8 | ru_RU.UTF-8 |            | libc            | =c/postgres          +
               |                   |          |             |             |            |                 | postgres=CTc/postgres
 template_rbac | pg_database_admin | UTF8     | ru_RU.UTF-8 | ru_RU.UTF-8 |            | libc            |
(5 rows)
 

Да, табличка такая же, один в один

Link to comment
Share on other sites

  • Solution

В конфигурационном файле postgre (postgresql.conf) поправьте следующие значения:
standard_conforming_strings = off
измените на:
standard_conforming_strings = on

Повторите установку KSC. 

  • Thanks 2
Link to comment
Share on other sites

17 часов назад, mike 1 сказал:

В конфигурационном файле postgre (postgresql.conf) поправьте следующие значения:
standard_conforming_strings = off
измените на:
standard_conforming_strings = on

Повторите установку KSC. 

Большое спасибо Вам. Все успешно установилось. Консоль установил и успешно подключился!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...