Перейти к содержимому


Фото
- - - - -

Проблема с обновлением ESS с 10 на 11


  • Please log in to reply
2 ответов в этой теме

#1 ecvo

ecvo

    Newbie

  • Posters
  • 9 Сообщений:

Отправлено 27 Ноябрь 2019 - 10:44

Здравствуйте. Решили обновить с 10.01.0 на 11.00.2 для дальнейшего перехода на 12.0 

ОС 
Ubuntu 18.04.1 LTS GNU/Linux 4.15.0-33-generic x86_64

По мануалу удалить предыдущую версию не удалось Так как скрипт отсутствует в /etc/opt/drweb.com/software/drweb-esuite.remove 

 

1) Остановил сервер /etc/init.d/drwcsd stop

2) Выполнил экспорт базы /etc/init.d/drwcsd exportdb /var/tmp/drwcs/esbase.es

3) Удалил через apt-get remove drweb-esuite с бэкапом всех конфигов в /var/tmp/drwcs

 

Удаляется drweb-esuite (1:10.0.0-201502060) …

Backup "/var/opt/drwcs/etc/drwcsd.conf" --> "/var/tmp/drwcs/drwcsd.conf"
Backup "/var/opt/drwcs/etc/local.conf" --> "/var/tmp/drwcs/local.conf"
Backup "/var/opt/drwcs/etc/webmin.conf" --> "/var/tmp/drwcs/webmin.conf"
Backup "/var/opt/drwcs/etc/drwcsd.pri" --> "/var/tmp/drwcs/drwcsd.pri"
Backup "/var/opt/drwcs/etc/certificate.pem" --> "/var/tmp/drwcs/certificate.pem"
Backup "/var/opt/drwcs/etc/private-key.pem" --> "/var/tmp/drwcs/private-key.pem"
Backup "/var/opt/drwcs/etc/frontdoor.conf" --> "/var/tmp/drwcs/frontdoor.conf"
Backup "/var/opt/drwcs/etc/download.conf" --> "/var/tmp/drwcs/download.conf"
Backup "/var/opt/drwcs/etc/auth-ldap.xml" --> "/var/tmp/drwcs/auth-ldap.xml"
Backup "/var/opt/drwcs/etc/auth-radius.xml" --> "/var/tmp/drwcs/auth-radius.xml"
Backup "/var/opt/drwcs/etc/auth-pam.xml" --> "/var/tmp/drwcs/auth-pam.xml"
Backup "/opt/drwcs/Installer/drwcsd.pub" --> "/var/tmp/drwcs/drwcsd.pub"
Copying databases...
Cleanup after all
root@srv-ubuntu:~#
 

 

4) Запустил установочник drweb-11.00.2-201901120-esuite-server-unix-linux-x86_64.tar.gz.run

 

root@srv-ubuntu:~# ./drweb-11.00.2-201901120-esuite-server-unix-linux-x86_64.tar.gz.run

Verifying archive integrity...
Uncompressing in drweb-11.00.2-201901120-esuite-server-unix-linux-x86_64.tar.gz.run.dir...
 
To continue the installation, you must accept the License Agreement. Accept? (yes/NO) YES
yes
Package installation started, please wait...
 
To use settings from the previous installation, set the path to the backup.
To use the backup from the default path (/var/tmp/drwcs), press Enter.
To install the Server with default settings not using backup ones, enter 0.
 
:
 
 

Выбрал естественно восстановить из бэкапа
 

 

Doctor Web, 1992-2019

By using this parameter you automatically confirm and accept the Software License Agreement.
Running pre-install commands...
Backing up old versions of files to be installed...
Creating installation directories...
Installing software...
Checking configuration files...
Updating file permissions...
Setting up init scripts...
Running post-install commands...
Trying to restore old data from backup.
Backup directory "/var/tmp/drwcs" found.
Restore "/var/tmp/drwcs/drwcsd.conf" --> "/var/opt/drwcs/etc/drwcsd.conf"
Restore "/var/tmp/drwcs/local.conf" --> "/var/opt/drwcs/etc/local.conf"
Restore "/var/tmp/drwcs/webmin.conf" --> "/var/opt/drwcs/etc/webmin.conf.old"
Restore "/var/tmp/drwcs/drwcsd.pri" --> "/var/opt/drwcs/etc/drwcsd.pri"
Restore "/var/tmp/drwcs/certificate.pem" --> "/var/opt/drwcs/etc/certificate.pem"
Restore "/var/tmp/drwcs/private-key.pem" --> "/var/opt/drwcs/etc/private-key.pem"
Restore "/var/tmp/drwcs/frontdoor.conf" --> "/var/opt/drwcs/etc/frontdoor.conf"
Restore "/var/tmp/drwcs/download.conf" --> "/var/opt/drwcs/etc/download.conf"
Restore "/var/tmp/drwcs/auth-ldap.xml" --> "/var/opt/drwcs/etc/auth-ldap.conf"
Restore "/var/tmp/drwcs/auth-radius.xml" --> "/var/opt/drwcs/etc/auth-radius.conf"
Restore "/var/tmp/drwcs/auth-pam.xml" --> "/var/opt/drwcs/etc/auth-pam.conf"
Restore "/var/tmp/drwcs/drwcsd.pub" --> "/opt/drwcs/webmin/install/drwcsd.pub"
Restore "/var/tmp/drwcs/database.sqlite" --> "/var/opt/drwcs/database.sqlite"
13 file(s) restored from the backup.
Initializing new database ...
Directory "/opt/drwcs/ds-modules/defaults" has been created successfully
Directory "/opt/drwcs/ds-modules/defaults/network" has been created successfully
Directory "/opt/drwcs/ds-modules/defaults/network/settings" has been created successfully
Directory "/opt/drwcs/ds-modules/core" has been created successfully
Directory "/opt/drwcs/ds-modules/core/extensions" has been created successfully
Directory "/opt/drwcs/ds-modules/core/extensions/table" has been created successfully
Directory "/opt/drwcs/ds-modules/core/extensions/string" has been created successfully
Directory "/opt/drwcs/ds-modules/api/extensions" has been created successfully
Directory "/opt/drwcs/ds-modules/core/admins" has been created successfully
Directory "/opt/drwcs/ds-modules/stats" has been created successfully
Directory "/opt/drwcs/ds-modules/stat_reports" has been created successfully
Directory "/opt/drwcs/ds-modules/core/oauth" has been created successfully
Directory "/opt/drwcs/ds-modules/tivoli" has been created successfully
Directory "/opt/drwcs/ds-modules/core/extensions/database" has been created successfully
Directory "/opt/drwcs/ds-modules/core/extensions/database/dbdriver" has been created successfully
Directory "/opt/drwcs/ds-modules/core/groups" has been created successfully
Directory "/opt/drwcs/ds-modules/stats/charts" has been created successfully
Directory "/opt/drwcs/ds-modules/core/stations" has been created successfully
Directory "/opt/drwcs/ds-modules/core/notifications" has been created successfully
Directory "/opt/drwcs/ds-modules/stats/neighborhood" has been created successfully
Database already exists.
Upgrading existing database (if required) ...
 
 
 

И по итогу получаю вот такой вывод 

 

Automatic database upgrade failed, see /var/opt/drwcs/log/drwcsd.log
for more details. Please upgrade the database manually after installation
is complete. Database backup is saved in /var/tmp/drwcs/db.backup.gz.

ERROR: Database xmlupimportdb failed.

 
Installation failed.

root@srv-ubuntu:~#
 

Лог прикрепляю 

Прикрепленные файлы:

  • Прикрепленный файл  drwcsd.log   990,64К   6 Скачано раз

Сообщение было изменено ecvo: 27 Ноябрь 2019 - 10:46


#2 kr0n

kr0n

    Member

  • Dr.Web Staff
  • 177 Сообщений:

Отправлено 27 Ноябрь 2019 - 11:41

>> Так как скрипт отсутствует в /etc/opt/drweb.com/software/drweb-esuite.remove 

скрипта не было так как возможно вы ставили из нативного пакета.

>>ERROR: Database xmlupimportdb failed.

20191127.113729.78 ERR [23474 23474] main   [SqLite3/1] UNIQUE constraint failed: admin_activity.record (code=1555), 00.000, INSERT INTO admin_activity (record,login,address,subsys,objid,oper,status,createtime) VALUES(?,?,?,?,?,?,?,?) [36:"be2798ed-4a58-4ce4-bb75-bcca54c69c1a", 4:"Name", 12:"OHRANA-LINER", 2147483647, 0:"", 1:"0", 1:"0", 1:"0"]
 
лучше всего это обратиться в поддержку приложив дебажный лог сервера и экспорт базы (из /var/tmp/drwcs). 


#3 Afalin

Afalin

    Guru

  • Dr.Web Staff
  • 4 012 Сообщений:

Отправлено 27 Ноябрь 2019 - 14:48

БД, есть подозрение, была в какой-то мере повреждена. Но без дебажного лога или /var/tmp/drwcs/dbexport.gz этого да, точно не сказать.


Семь раз отрежь – один раз проверь


Читают тему: 0

0 пользователей, 0 гостей, 0 скрытых