OTRS обновление фреймворка c 3.2.9 до 3.3.5
Модератор: ykolesnikov
-
- OTRS Новобранец
- Сообщения: 34
- Зарегистрирован: 06 ноя 2013, 10:27
- Откуда: Москва
- Контактная информация:
OTRS обновление фреймворка c 3.2.9 до 3.3.5
Всем привет знаю что тема уже мусолилась сто раз и есть статья в мануале по обновлению фремверка, но есть ряд
вопросов кто не злой помогите разобраться.
Есть OTRS версия 3.2.9 стоит на ubuntu
Хочу обновиться до версии 3.3.5
Как я делю
1. Останавливаю службы
/etc/init.d/cron stop
/etc/init.d/apache2 stop
2. Делаю бэкап
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm
var/* (Для чего кто подскажет)
Бэкап БД
создаю папку для него
mkdir /otrsbackup
перехожу в директорию
cd /opt/otrs/scripts
Запускаю скриптик
./backup.pl -d /otrsbackup/
Все отрабатывает ок в паке все создается
Далее в мануале пункт 4 Установить новую систему (опционально).
Что подразумевается под новой установкой системы?
5. Дальше как понимаю устанавливаю новый релиз
cd /opt лежит файлик otrs-3.3.5.tar.gz
Распаковываю
tar -xzf otrs-3.3.5.tar.gz
ln -s otrs-3.3.5 otrs как понимаю создаем символическую ссылку
(Чем отличается это от rpm пакета?)
6. дальше копирую старые конфиги с заменой новых
7. Установка прав доступа к файлам.
cd /opt/otrs/
bin/otrs.SetPermissions.pl
8./opt/otrs/bin/otrs.CheckModules.pl проверяю модули все ок
9.БД стоит mysql
перехожу в cd /opt/otrs/
Запускаю bin/otrs.CheckDB.pl
говорит все ок
cat scripts/DBUpdate-to-3.2.mysql.sql | mysql -p -f -u root otrs
спрашивает пароль
Ввожу вроде проканывает но есть какие то ошибки
ЭТО ДЕЛАТЬ НУЖНО??????????
апустите сценарий перемещения (как пользователь 'otrs', а НЕ root):
shell> scripts/DBUpdate-to-3.2.pl пишет
Cannot run this program as root. Please run it as the 'otrs' user.
Как это сделать подскажите люди добрые
10. Дальше
bin/otrs.RebuildConfig.pl пишет done
bin/otrs.DeleteCache.pl пишет done
11. И последнее запускаем службы
/etc/init.d/cron start
/etc/init.d/apache2 start
Но в итоге даже перезагрузившись версия осталась таже 3.2.9
Что не так делал??
вопросов кто не злой помогите разобраться.
Есть OTRS версия 3.2.9 стоит на ubuntu
Хочу обновиться до версии 3.3.5
Как я делю
1. Останавливаю службы
/etc/init.d/cron stop
/etc/init.d/apache2 stop
2. Делаю бэкап
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm
var/* (Для чего кто подскажет)
Бэкап БД
создаю папку для него
mkdir /otrsbackup
перехожу в директорию
cd /opt/otrs/scripts
Запускаю скриптик
./backup.pl -d /otrsbackup/
Все отрабатывает ок в паке все создается
Далее в мануале пункт 4 Установить новую систему (опционально).
Что подразумевается под новой установкой системы?
5. Дальше как понимаю устанавливаю новый релиз
cd /opt лежит файлик otrs-3.3.5.tar.gz
Распаковываю
tar -xzf otrs-3.3.5.tar.gz
ln -s otrs-3.3.5 otrs как понимаю создаем символическую ссылку
(Чем отличается это от rpm пакета?)
6. дальше копирую старые конфиги с заменой новых
7. Установка прав доступа к файлам.
cd /opt/otrs/
bin/otrs.SetPermissions.pl
8./opt/otrs/bin/otrs.CheckModules.pl проверяю модули все ок
9.БД стоит mysql
перехожу в cd /opt/otrs/
Запускаю bin/otrs.CheckDB.pl
говорит все ок
cat scripts/DBUpdate-to-3.2.mysql.sql | mysql -p -f -u root otrs
спрашивает пароль
Ввожу вроде проканывает но есть какие то ошибки
ЭТО ДЕЛАТЬ НУЖНО??????????
апустите сценарий перемещения (как пользователь 'otrs', а НЕ root):
shell> scripts/DBUpdate-to-3.2.pl пишет
Cannot run this program as root. Please run it as the 'otrs' user.
Как это сделать подскажите люди добрые
10. Дальше
bin/otrs.RebuildConfig.pl пишет done
bin/otrs.DeleteCache.pl пишет done
11. И последнее запускаем службы
/etc/init.d/cron start
/etc/init.d/apache2 start
Но в итоге даже перезагрузившись версия осталась таже 3.2.9
Что не так делал??
OTRS версия 3.2.9 стоит на Ubuntu 12.4. Профессионально настраиваю Windows Server 2022 - http://pyatilistnik.org/installing-and- ... rver-2021/
-
- OTRS Новобранец
- Сообщения: 34
- Зарегистрирован: 06 ноя 2013, 10:27
- Откуда: Москва
- Контактная информация:
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
И еще Вопрос БД бэкап на всякий случай делаем просто в инструкции обновления я так и не увидел где мы ее восстанавливаем, может еще кто это прояснить
OTRS версия 3.2.9 стоит на Ubuntu 12.4. Профессионально настраиваю Windows Server 2022 - http://pyatilistnik.org/installing-and- ... rver-2021/
-
- OTRS Гуру
- Сообщения: 5192
- Зарегистрирован: 20 сен 2010, 18:17
- Откуда: Москва
- Благодарил (а): 92 раза
- Поблагодарили: 82 раза
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
Не настроили свою подпись на форуме, как положено. Телепатов тут нет. Вашу версию ОС никто угадывать не будет.sunyseksy писал(а):Что не так делал??
С уважением,
Алексей Юсов
Prod: OTRS CE ITSM 6.0.28 on CentOS 7 Apache 2.4 MariaDB 10.4.13 + Radiant Customer Portal
Radiant System OTRS Intergrator RU
Группа OTRS Community в Teleram
Хотите внедрить OTRS? Спросите меня как!
Алексей Юсов
Prod: OTRS CE ITSM 6.0.28 on CentOS 7 Apache 2.4 MariaDB 10.4.13 + Radiant Customer Portal
Radiant System OTRS Intergrator RU
Группа OTRS Community в Teleram
Хотите внедрить OTRS? Спросите меня как!
-
- OTRS Новобранец
- Сообщения: 34
- Зарегистрирован: 06 ноя 2013, 10:27
- Откуда: Москва
- Контактная информация:
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
Ubuntu 12.4 otrs версия 3.2.9
OTRS версия 3.2.9 стоит на Ubuntu 12.4. Профессионально настраиваю Windows Server 2022 - http://pyatilistnik.org/installing-and- ... rver-2021/
-
- OTRS Гуру
- Сообщения: 5192
- Зарегистрирован: 20 сен 2010, 18:17
- Откуда: Москва
- Благодарил (а): 92 раза
- Поблагодарили: 82 раза
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
Без этого - забудьте про обновление. Возвращайтесь назад из бекапа.sunyseksy писал(а): 9.БД стоит mysql
перехожу в cd /opt/otrs/
Запускаю bin/otrs.CheckDB.pl
говорит все ок
cat scripts/DBUpdate-to-3.2.mysql.sql | mysql -p -f -u root otrs
спрашивает пароль
Ввожу вроде проканывает но есть какие то ошибки
ЭТО ДЕЛАТЬ НУЖНО??????????
апустите сценарий перемещения (как пользователь 'otrs', а НЕ root):
shell> scripts/DBUpdate-to-3.2.pl пишет
Cannot run this program as root. Please run it as the 'otrs' user.
Что не так делал??
С уважением,
Алексей Юсов
Prod: OTRS CE ITSM 6.0.28 on CentOS 7 Apache 2.4 MariaDB 10.4.13 + Radiant Customer Portal
Radiant System OTRS Intergrator RU
Группа OTRS Community в Teleram
Хотите внедрить OTRS? Спросите меня как!
Алексей Юсов
Prod: OTRS CE ITSM 6.0.28 on CentOS 7 Apache 2.4 MariaDB 10.4.13 + Radiant Customer Portal
Radiant System OTRS Intergrator RU
Группа OTRS Community в Teleram
Хотите внедрить OTRS? Спросите меня как!
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
Попробую по пунктам в первом посте ответить.
1. Останавливать надо еще и сам OTRS
5. Не нашел в мануале строчку, где создается ссылка. Архив нужно распаковывать в папку /opt/otrs.
9. Чтобы выполнить команду как пользователь otrs, выполните следующее:
11. Запустить службу OTRS последней
Повторюсь и в этой теме. Я делал обновление строго по мануалу. Был момент, когда я забыл переместить один из конфигов в новую директорию, и на него не применились права. Пришлось все обновление делать заново (за исключением бэкапа). Удачи.
1. Останавливать надо еще и сам OTRS
Код: Выделить всё
/opt/otrs/bin/Cron.sh stop otrs
9. Чтобы выполнить команду как пользователь otrs, выполните следующее:
Код: Выделить всё
sudo -H -u otrs bash -c /opt/otrs/scripts/DBUpdate...
Код: Выделить всё
/opt/otrs/bin/Cron.sh stop otrs
ПАО "Сигнал"
OTRS 5s, ITSM 5s ubuntu-server 14.04.4, Mysql 5.5, Apache 2.4.7
OTRS 5s, ITSM 5s ubuntu-server 14.04.4, Mysql 5.5, Apache 2.4.7
-
- OTRS Новобранец
- Сообщения: 34
- Зарегистрирован: 06 ноя 2013, 10:27
- Откуда: Москва
- Контактная информация:
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
alexus26, Спасибо эти пункты я выполнил без ошибок но как сказал колега сверху дело наверно в Бд, не подскажете как ее обновить? Как понимаю осталось мне совсем немного до победы Всем заранее благодарен за помощь
OTRS версия 3.2.9 стоит на Ubuntu 12.4. Профессионально настраиваю Windows Server 2022 - http://pyatilistnik.org/installing-and- ... rver-2021/
-
- OTRS Новобранец
- Сообщения: 34
- Зарегистрирован: 06 ноя 2013, 10:27
- Откуда: Москва
- Контактная информация:
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
Вывод скрипта sudo -H -u otrs bash -c /opt/otrs/scripts/DBUpdate-to-3.2.pl
Migration started...
Step 1 of 10: Refresh configuration cache...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
Subroutine Load redefined at /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm line 7.
Subroutine Load redefined at /opt/otrs/Kernel/Config/Files/ZZZAuto.pm line 7.
done.
Step 2 of 10: Check framework version... done.
Step 3 of 10: Cleanup UserPreferences... done.
Step 4 of 10: Updating toolbar configuration... done.
Step 5 of 10: Updating AgentTicketZoom window configuration... done.
Step 6 of 10: Dropping obsolete columns from article_search... Check if columns exist.
Columns are not present, no need to drop them.
done.
Step 7 of 10: Dropping unused indexes on article_flag... SET @FKExists := (SELECT COUNT(*) FROM information_schema.table_constraints WHERE table_schema = DATABASE() AND table_name = 'article_flag' AND constraint_name = 'FK_article_flag_arti cle_id_id')
OK
SET @FKSQLStatement := IF( @FKExists > 0, 'ALTER TABLE article_flag DROP FOREIGN KEY FK_article_flag_article_id_id', 'SELECT ''INFO: Foreign key constraint FK_a rticle_flag_article_id_id does not exist, skipping.''' )
OK
PREPARE FKStatement FROM @FKSQLStatement
OK
EXECUTE FKStatement
OK
SET @FKExists := (SELECT COUNT(*) FROM information_schema.table_constraints WHER E table_schema = DATABASE() AND table_name = 'article_flag' AND constraint_name = 'FK_article_flag_create_by_id')
OK
SET @FKSQLStatement := IF( @FKExists > 0, 'ALTER TABLE article_flag DROP FOREIGN KEY FK_article_flag_create_by_id', 'SELECT ''INFO: Foreign key constraint FK_ar ticle_flag_create_by_id does not exist, skipping.''' )
OK
PREPARE FKStatement FROM @FKSQLStatement
OK
EXECUTE FKStatement
OK
DROP INDEX article_flag_create_by ON article_flag
DBD::mysql::db do failed: Can't DROP 'article_flag_create_by'; check that column /key exists at /opt/otrs/Kernel/System/DB.pm line 475.
ERROR: OTRS-DBUpdate-to-3.2-10 Perl: 5.14.2 OS: linux Time: Mon Mar 24 15:01:11 2014
Message: Can't DROP 'article_flag_create_by'; check that column/key exists, SQL : 'DROP INDEX article_flag_create_by ON article_flag'
Migration started...
Step 1 of 10: Refresh configuration cache...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
Subroutine Load redefined at /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm line 7.
Subroutine Load redefined at /opt/otrs/Kernel/Config/Files/ZZZAuto.pm line 7.
done.
Step 2 of 10: Check framework version... done.
Step 3 of 10: Cleanup UserPreferences... done.
Step 4 of 10: Updating toolbar configuration... done.
Step 5 of 10: Updating AgentTicketZoom window configuration... done.
Step 6 of 10: Dropping obsolete columns from article_search... Check if columns exist.
Columns are not present, no need to drop them.
done.
Step 7 of 10: Dropping unused indexes on article_flag... SET @FKExists := (SELECT COUNT(*) FROM information_schema.table_constraints WHERE table_schema = DATABASE() AND table_name = 'article_flag' AND constraint_name = 'FK_article_flag_arti cle_id_id')
OK
SET @FKSQLStatement := IF( @FKExists > 0, 'ALTER TABLE article_flag DROP FOREIGN KEY FK_article_flag_article_id_id', 'SELECT ''INFO: Foreign key constraint FK_a rticle_flag_article_id_id does not exist, skipping.''' )
OK
PREPARE FKStatement FROM @FKSQLStatement
OK
EXECUTE FKStatement
OK
SET @FKExists := (SELECT COUNT(*) FROM information_schema.table_constraints WHER E table_schema = DATABASE() AND table_name = 'article_flag' AND constraint_name = 'FK_article_flag_create_by_id')
OK
SET @FKSQLStatement := IF( @FKExists > 0, 'ALTER TABLE article_flag DROP FOREIGN KEY FK_article_flag_create_by_id', 'SELECT ''INFO: Foreign key constraint FK_ar ticle_flag_create_by_id does not exist, skipping.''' )
OK
PREPARE FKStatement FROM @FKSQLStatement
OK
EXECUTE FKStatement
OK
DROP INDEX article_flag_create_by ON article_flag
DBD::mysql::db do failed: Can't DROP 'article_flag_create_by'; check that column /key exists at /opt/otrs/Kernel/System/DB.pm line 475.
ERROR: OTRS-DBUpdate-to-3.2-10 Perl: 5.14.2 OS: linux Time: Mon Mar 24 15:01:11 2014
Message: Can't DROP 'article_flag_create_by'; check that column/key exists, SQL : 'DROP INDEX article_flag_create_by ON article_flag'
OTRS версия 3.2.9 стоит на Ubuntu 12.4. Профессионально настраиваю Windows Server 2022 - http://pyatilistnik.org/installing-and- ... rver-2021/
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
1. Вы запускали скрипт DBUpdate-to-3.3.mysql.sql?sunyseksy писал(а):Вывод скрипта sudo -H -u otrs bash -c /opt/otrs/scripts/DBUpdate-to-3.2.pl
2. Если нет, то надо сначала его запустить, потом уже DBUpdate-to-3.3.pl
ПАО "Сигнал"
OTRS 5s, ITSM 5s ubuntu-server 14.04.4, Mysql 5.5, Apache 2.4.7
OTRS 5s, ITSM 5s ubuntu-server 14.04.4, Mysql 5.5, Apache 2.4.7
-
- OTRS Новобранец
- Сообщения: 34
- Зарегистрирован: 06 ноя 2013, 10:27
- Откуда: Москва
- Контактная информация:
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
вывод скрипта cat scripts/DBUpdate-to-3.2.mysql.sql | mysql -p -f -u root otrs
Enter password:
ERROR 1091 (42000) at line 7: Can't DROP 'group_read'; check that column/key exists
ERROR 1091 (42000) at line 11: Can't DROP 'group_write'; check that column/key exists
ERROR 1091 (42000) at line 15: Can't DROP 'other_read'; check that column/key exists
ERROR 1091 (42000) at line 19: Can't DROP 'other_write'; check that column/key exists
ERROR 1091 (42000) at line 20: Can't DROP 'ticket_answered'; check that column/key exists
ERROR 1091 (42000) at line 24: Can't DROP 'ticket_answered'; check that column/key exists
ERROR 1091 (42000) at line 29: Can't DROP 'group_id'; check that column/key exists
ERROR 1050 (42S01) at line 34: Table 'pm_process' already exists
ERROR 1050 (42S01) at line 51: Table 'pm_activity' already exists
ERROR 1050 (42S01) at line 66: Table 'pm_activity_dialog' already exists
ERROR 1050 (42S01) at line 81: Table 'pm_transition' already exists
ERROR 1050 (42S01) at line 96: Table 'pm_transition_action' already exists
ERROR 1050 (42S01) at line 111: Table 'pm_entity' already exists
ERROR 1050 (42S01) at line 118: Table 'pm_entity_sync' already exists
ERROR 1060 (42S21) at line 129: Duplicate column name 'internal_field'
ERROR 1062 (23000) at line 135: Duplicate entry 'ProcessManagementProcessID' for key 'dynamic_field_name'
ERROR 1062 (23000) at line 141: Duplicate entry 'ProcessManagementActivityID' for key 'dynamic_field_name'
ERROR 1005 (HY000) at line 158: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 159: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 160: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 161: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 162: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 163: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 164: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 165: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 166: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 167: Can't create table 'otrs.#sql-47e_68' (errno: 121)
Enter password:
ERROR 1091 (42000) at line 7: Can't DROP 'group_read'; check that column/key exists
ERROR 1091 (42000) at line 11: Can't DROP 'group_write'; check that column/key exists
ERROR 1091 (42000) at line 15: Can't DROP 'other_read'; check that column/key exists
ERROR 1091 (42000) at line 19: Can't DROP 'other_write'; check that column/key exists
ERROR 1091 (42000) at line 20: Can't DROP 'ticket_answered'; check that column/key exists
ERROR 1091 (42000) at line 24: Can't DROP 'ticket_answered'; check that column/key exists
ERROR 1091 (42000) at line 29: Can't DROP 'group_id'; check that column/key exists
ERROR 1050 (42S01) at line 34: Table 'pm_process' already exists
ERROR 1050 (42S01) at line 51: Table 'pm_activity' already exists
ERROR 1050 (42S01) at line 66: Table 'pm_activity_dialog' already exists
ERROR 1050 (42S01) at line 81: Table 'pm_transition' already exists
ERROR 1050 (42S01) at line 96: Table 'pm_transition_action' already exists
ERROR 1050 (42S01) at line 111: Table 'pm_entity' already exists
ERROR 1050 (42S01) at line 118: Table 'pm_entity_sync' already exists
ERROR 1060 (42S21) at line 129: Duplicate column name 'internal_field'
ERROR 1062 (23000) at line 135: Duplicate entry 'ProcessManagementProcessID' for key 'dynamic_field_name'
ERROR 1062 (23000) at line 141: Duplicate entry 'ProcessManagementActivityID' for key 'dynamic_field_name'
ERROR 1005 (HY000) at line 158: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 159: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 160: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 161: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 162: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 163: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 164: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 165: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 166: Can't create table 'otrs.#sql-47e_68' (errno: 121)
ERROR 1005 (HY000) at line 167: Can't create table 'otrs.#sql-47e_68' (errno: 121)
OTRS версия 3.2.9 стоит на Ubuntu 12.4. Профессионально настраиваю Windows Server 2022 - http://pyatilistnik.org/installing-and- ... rver-2021/
-
- OTRS Новобранец
- Сообщения: 34
- Зарегистрирован: 06 ноя 2013, 10:27
- Откуда: Москва
- Контактная информация:
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
еще вопрос старую БД удалять как понял нужно. А затем ее восстанавливать из резервной копии. Вопрос перед каким действием е нужно удалить и потом восстановить?
OTRS версия 3.2.9 стоит на Ubuntu 12.4. Профессионально настраиваю Windows Server 2022 - http://pyatilistnik.org/installing-and- ... rver-2021/
-
- OTRS Гуру
- Сообщения: 5192
- Зарегистрирован: 20 сен 2010, 18:17
- Откуда: Москва
- Благодарил (а): 92 раза
- Поблагодарили: 82 раза
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
Добрый совет: вернитесь назад на нормальную 3.2 и потом сделайте еще раз всё, как надо по мануалу.sunyseksy писал(а):еще вопрос старую БД удалять как понял нужно. А затем ее восстанавливать из резервной копии. Вопрос перед каким действием е нужно удалить и потом восстановить?
При чем тут DBUpdate-to-3.2?! У вас апгрейд с 3.2 на 3.3. Скрипт надо запускать DBUpdate-to-3.3.mysql.sqlsunyseksy писал(а):вывод скрипта cat scripts/DBUpdate-to-3.2.mysql.sql | mysql -p -f -u root otrs
Где такое написано в мануале?sunyseksy писал(а):cat scripts/DBUpdate-to-3.2.mysql.sql | mysql -p -f -u root otrs
Там написано:
Код: Выделить всё
shell> cd /opt/otrs/
# MySQL:
shell> bin/otrs.CheckDB.pl
shell> cat scripts/DBUpdate-to-3.3.mysql.sql | mysql -p -f -u root otrs
1. Читайте манаул
2. Тренируйтесь на тестовом сервере. П. 4 манула гласит:
3. Записывайте сами на бумагу или скриншотами ВСЕ свои шаги!Setup new system (optional)
If possible, try this install on a separate machine for testing first.
4. Как добьетесь успеха, может апдейтить продуктовый сервер.
С уважением,
Алексей Юсов
Prod: OTRS CE ITSM 6.0.28 on CentOS 7 Apache 2.4 MariaDB 10.4.13 + Radiant Customer Portal
Radiant System OTRS Intergrator RU
Группа OTRS Community в Teleram
Хотите внедрить OTRS? Спросите меня как!
Алексей Юсов
Prod: OTRS CE ITSM 6.0.28 on CentOS 7 Apache 2.4 MariaDB 10.4.13 + Radiant Customer Portal
Radiant System OTRS Intergrator RU
Группа OTRS Community в Teleram
Хотите внедрить OTRS? Спросите меня как!
-
- OTRS Новобранец
- Сообщения: 34
- Зарегистрирован: 06 ноя 2013, 10:27
- Откуда: Москва
- Контактная информация:
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
alexus спасибо за отзывчивость и понимание к новичку, хотелось бы украсть увас еще немного времени. Если не сложно скажите по пунктам из моего следующего списка, делаю правильно или нет, просто хочу определиться с правильностью последовательности.Заранее благодарен.
1. Останавливаю службы
/etc/init.d/cron stop; /etc/init.d/apache2 stop; /opt/otrs/bin/Cron.sh stop otrs ______________Отрабатывает все ок.
2. Делаю бэкап Конфигов которые описаны в http://doc.otrs.org/3.3/en/html/upgrading.html
бэкап БД mkdir /otrsbackup; cd /opt/otrs/scripts; ./backup.pl -d /otrsbackup/ ______________Отрабатывает все ок.
3. Дальше переименовываю старую папку отрс, распаковываю новый релиз из архива и переименовываю его в отрс
cd /opt; mv otrs otrs-old; tar -xzf otrs-3.3.5.tar.gz; mv otrs-3.3.5 otrs ______________Отрабатывает все ок.
4. дальше копирую старые конфиги с заменой новых и восстанавливаю TicketCounter.log ______________Отрабатывает все ок.
5. Установка прав доступа к файлам
cd /opt/otrs/; bin/otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=otrs --web-user=www-data --web-group=www-data /opt/otrs ______________Отрабатывает все ок
6. Проверяю perl модули
/opt/otrs/bin/otrs.CheckModules.pl ______________Отрабатывает все ок
7. Удаляю старую БД
mysqladmin -u root -p drop otrs ______________Отрабатывает все ок
8. Создаем новую
mysqladmin -u root -p create otrs ______________Отрабатывает все ок
9. восстанавливаем БД
cd /opt/otrs/scripts; ./restore.pl -b /otrsbackup/2014-03-25_03-58 -d /opt/otrs/ ______________Отрабатывает все ок
10. Запускаю cd /opt/otrs/; bin/otrs.CheckDB.pl ______________Отрабатывает все ок
11. Запускаю cat scripts/DBUpdate-to-3.3.mysql.sql | mysql -p -f -u root otrs ______________Отрабатывает все ок
12. Запускаю sudo -H -u otrs bash -c /opt/otrs/scripts/DBUpdate-to-3.3.pl
на втором шаге пишет
Check framework version... Error: You are trying to run this script on the wrong framework version 3.2.9! at /opt/otrs/scripts/DBUpdate-to-3.3.pl line 282 ??? ЧТО НЕ ТАК
13. Дальше зотел выполнить cd /opt/otrs/; bin/otrs.RebuildConfig.pl; bin/otrs.DeleteCache.pl
14. Запуск служб /etc/init.d/cron start; /etc/init.d/apache2 start; /opt/otrs/bin/Cron.sh start otrs
Правильная ли последовательность и выполняемые действия кто подскажет?
1. Останавливаю службы
/etc/init.d/cron stop; /etc/init.d/apache2 stop; /opt/otrs/bin/Cron.sh stop otrs ______________Отрабатывает все ок.
2. Делаю бэкап Конфигов которые описаны в http://doc.otrs.org/3.3/en/html/upgrading.html
бэкап БД mkdir /otrsbackup; cd /opt/otrs/scripts; ./backup.pl -d /otrsbackup/ ______________Отрабатывает все ок.
3. Дальше переименовываю старую папку отрс, распаковываю новый релиз из архива и переименовываю его в отрс
cd /opt; mv otrs otrs-old; tar -xzf otrs-3.3.5.tar.gz; mv otrs-3.3.5 otrs ______________Отрабатывает все ок.
4. дальше копирую старые конфиги с заменой новых и восстанавливаю TicketCounter.log ______________Отрабатывает все ок.
5. Установка прав доступа к файлам
cd /opt/otrs/; bin/otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=otrs --web-user=www-data --web-group=www-data /opt/otrs ______________Отрабатывает все ок
6. Проверяю perl модули
/opt/otrs/bin/otrs.CheckModules.pl ______________Отрабатывает все ок
7. Удаляю старую БД
mysqladmin -u root -p drop otrs ______________Отрабатывает все ок
8. Создаем новую
mysqladmin -u root -p create otrs ______________Отрабатывает все ок
9. восстанавливаем БД
cd /opt/otrs/scripts; ./restore.pl -b /otrsbackup/2014-03-25_03-58 -d /opt/otrs/ ______________Отрабатывает все ок
10. Запускаю cd /opt/otrs/; bin/otrs.CheckDB.pl ______________Отрабатывает все ок
11. Запускаю cat scripts/DBUpdate-to-3.3.mysql.sql | mysql -p -f -u root otrs ______________Отрабатывает все ок
12. Запускаю sudo -H -u otrs bash -c /opt/otrs/scripts/DBUpdate-to-3.3.pl
на втором шаге пишет
Check framework version... Error: You are trying to run this script on the wrong framework version 3.2.9! at /opt/otrs/scripts/DBUpdate-to-3.3.pl line 282 ??? ЧТО НЕ ТАК
13. Дальше зотел выполнить cd /opt/otrs/; bin/otrs.RebuildConfig.pl; bin/otrs.DeleteCache.pl
14. Запуск служб /etc/init.d/cron start; /etc/init.d/apache2 start; /opt/otrs/bin/Cron.sh start otrs
Правильная ли последовательность и выполняемые действия кто подскажет?
OTRS версия 3.2.9 стоит на Ubuntu 12.4. Профессионально настраиваю Windows Server 2022 - http://pyatilistnik.org/installing-and- ... rver-2021/
-
- OTRS Гуру
- Сообщения: 5192
- Зарегистрирован: 20 сен 2010, 18:17
- Откуда: Москва
- Благодарил (а): 92 раза
- Поблагодарили: 82 раза
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
Какова содержимое файла /opt/otrs/RELEAE ? Почему там написано
?VERSION = 3.2.9
С уважением,
Алексей Юсов
Prod: OTRS CE ITSM 6.0.28 on CentOS 7 Apache 2.4 MariaDB 10.4.13 + Radiant Customer Portal
Radiant System OTRS Intergrator RU
Группа OTRS Community в Teleram
Хотите внедрить OTRS? Спросите меня как!
Алексей Юсов
Prod: OTRS CE ITSM 6.0.28 on CentOS 7 Apache 2.4 MariaDB 10.4.13 + Radiant Customer Portal
Radiant System OTRS Intergrator RU
Группа OTRS Community в Teleram
Хотите внедрить OTRS? Спросите меня как!
Re: OTRS обновление фреймворка c 3.2.9 до 3.3.5
Всем привет!
Вот так я обновил ОТРС с 3.2.9 до 3.3.8
Список команд от "А" до "Я" которыми я произвел обновление.
/etc/init.d/cron stop
/etc/init.d/postfix stop
/etc/init.d/apache2 stop
cd /opt/otrs/
bin/otrs.Scheduler.pl -a stop
cd ..
mkdir otrsfiles
cd otrs
cp Kernel/Config.pm /opt/otrsfiles/
cp Kernel/Config/GenericAgent.pm /opt/otrsfiles/
cp Kernel/Config/Files/ZZZAuto.pm /opt/otrsfiles/
cp -R var/ /opt/otrsfiles/
cd /opt
mkdir mysqlotrs
mysqldump -u root -p otrs > /opt/mysqlotrs/otrs.sql
cd /opt
wget ftp://ftp.otrs.org/pub/otrs/otrs-3.3.8.tar.gz
mv otrs otrs-old
tar -xzf otrs-3.3.8.tar.gz
mv otrs-3.3.8 otrs
cp otrsfiles/Config.pm /opt/otrs/Kernel/
cp otrsfiles/GenericAgent.pm /opt/otrs/Kernel/Config/
cp otrsfiles/ZZZAuto.pm /opt/otrs/Kernel/Config/Files/
cp otrsfiles/var/log/TicketCounter.log /opt/otrs/var/log/
cp -R otrsfiles/var/article /opt/otrs/var/
cd /opt/otrs/
bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=www-data --otrs-group=www-data --web-group=www-data /opt/otrs
ls -la
/opt/otrs/bin/otrs.CheckModules.pl
cd /opt/otrs/
bin/otrs.CheckDB.pl
cat scripts/DBUpdate-to-3.3.mysql.sql | mysql -p -f -u root otrs
su -l otrs -c scripts/DBUpdate-to-3.3.pl
su -l otrs -c bin/otrs.RebuildConfig.pl
su -l otrs -c bin/otrs.DeleteCache.pl
/etc/init.d/apache2 start
/etc/init.d/postfix start
/etc/init.d/cron start
https://github.com/OTRS/otrs/blob/rel-3_3/UPGRADING.md
Вот так я обновил ОТРС с 3.2.9 до 3.3.8
Список команд от "А" до "Я" которыми я произвел обновление.
/etc/init.d/cron stop
/etc/init.d/postfix stop
/etc/init.d/apache2 stop
cd /opt/otrs/
bin/otrs.Scheduler.pl -a stop
cd ..
mkdir otrsfiles
cd otrs
cp Kernel/Config.pm /opt/otrsfiles/
cp Kernel/Config/GenericAgent.pm /opt/otrsfiles/
cp Kernel/Config/Files/ZZZAuto.pm /opt/otrsfiles/
cp -R var/ /opt/otrsfiles/
cd /opt
mkdir mysqlotrs
mysqldump -u root -p otrs > /opt/mysqlotrs/otrs.sql
cd /opt
wget ftp://ftp.otrs.org/pub/otrs/otrs-3.3.8.tar.gz
mv otrs otrs-old
tar -xzf otrs-3.3.8.tar.gz
mv otrs-3.3.8 otrs
cp otrsfiles/Config.pm /opt/otrs/Kernel/
cp otrsfiles/GenericAgent.pm /opt/otrs/Kernel/Config/
cp otrsfiles/ZZZAuto.pm /opt/otrs/Kernel/Config/Files/
cp otrsfiles/var/log/TicketCounter.log /opt/otrs/var/log/
cp -R otrsfiles/var/article /opt/otrs/var/
cd /opt/otrs/
bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=www-data --otrs-group=www-data --web-group=www-data /opt/otrs
ls -la
/opt/otrs/bin/otrs.CheckModules.pl
cd /opt/otrs/
bin/otrs.CheckDB.pl
cat scripts/DBUpdate-to-3.3.mysql.sql | mysql -p -f -u root otrs
su -l otrs -c scripts/DBUpdate-to-3.3.pl
su -l otrs -c bin/otrs.RebuildConfig.pl
su -l otrs -c bin/otrs.DeleteCache.pl
/etc/init.d/apache2 start
/etc/init.d/postfix start
/etc/init.d/cron start
https://github.com/OTRS/otrs/blob/rel-3_3/UPGRADING.md