Now I am trying to move from 4.018 to 5.0.12 on the CentOS server using the tarball to update.
Moving was smooth until the step to update the database.
First Errors like so:
Code: Select all
[root@localhost otrs]# cat scripts/DBUpdate-to-5.mysql.sql | mysql -p -f -u root otrs
Enter password:
ERROR 1050 (42S01) at line 9: Table 'scheduler_task' already exists
ERROR 1050 (42S01) at line 28: Table 'scheduler_future_task' already exists
ERROR 1050 (42S01) at line 47: Table 'scheduler_recurrent_task' already exists
ERROR 1050 (42S01) at line 72: Table 'notification_event_message' already exists
ERROR 1050 (42S01) at line 87: Table 'cloud_service_config' already exists
ERROR 1005 (HY000) at line 101: Can't create table 'otrs.#sql-74d_60' (errno: 121)
ERROR 1005 (HY000) at line 102: Can't create table 'otrs.#sql-74d_60' (errno: 121)
ERROR 1005 (HY000) at line 103: Can't create table 'otrs.#sql-74d_60' (errno: 121)
ERROR 1005 (HY000) at line 104: Can't create table 'otrs.#sql-74d_60' (errno: 121)
[root@localhost otrs]#
Code: Select all
[root@localhost otrs]# su -c "bin/otrs.Console.pl Maint::Database::Check" -s /bin/bash otrs
Trying to connect to database 'DBI:mysql:database=otrs;host=localhost;' with user 'otrs'...
Connection successful.
[root@localhost otrs]# su -c "scripts/DBUpdate-to-5.pl" -s /bin/bash otrs
....
Step 7 of 17: Migrate notifications to event based notifications...[Mon Aug 29 08:53:53 2016] DBUpdate-to-5.pl: DBD::mysql::db do failed: Duplicate entry '1-de' for key 'notification_event_message_notification_id_language' at /opt/otrs/Kernel/System/DB.pm line 449.
ERROR: OTRS-DBUpdate-to-5.pl-10 Perl: 5.16.3 OS: linux Time: Mon Aug 29 08:53:53 2016
Message: Duplicate entry '1-de' for key 'notification_event_message_notification_id_language', SQL: '
INSERT INTO notification_event_message
(notification_id, subject, text, content_type, language)
VALUES (?, ?, ?, ?, ?)'
Traceback (5018):
Module: Kernel::System::NotificationEvent::NotificationAdd Line: 366
Module: main::_MigrateNotifications Line: 1109
Module: scripts/DBUpdate-to-5.pl Line: 162
error.
[Mon Aug 29 08:53:53 2016] DBUpdate-to-5.pl: Died at scripts/DBUpdate-to-5.pl line 167.
Can these errors be related? Can we make a workaround to fulfill the database update to 5?