Getting error while Upgrading OTRS from 3.3 to 4.

Moderator: crythias

Locked
mmyakala
Znuny newbie
Posts: 2
Joined: 02 Jun 2016, 12:17
Znuny Version: 3.3.5
Real Name: Mahesh
Company: Capgemini

Getting error while Upgrading OTRS from 3.3 to 4.

Post by mmyakala »

Hi there,

While Upgrading OTRS from 3.3 to 4 getting below error, anyone have the idea how to fix it?

sh-4.1# cat scripts/DBUpdate-to-4.mysql.sql | mysql -p -f -u XXXX XXXX
Enter password:
ERROR 1060 (42S21) at line 9: Duplicate column name 'disposition'
INFO: Foreign key constraint FK_ticket_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_history_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_history_valid_id_id does not exist, skipping.
ERROR 1050 (42S01) at line 38: Table 'personal_services' already exists
ERROR 1050 (42S01) at line 51: Table 'system_maintenance' already exists
ERROR 1005 (HY000) at line 66: Can't create table 'otrs.#sql-754_d' (errno: 121)
ERROR 1005 (HY000) at line 67: Can't create table 'otrs.#sql-754_d' (errno: 121)
ERROR 1005 (HY000) at line 68: Can't create table 'otrs.#sql-754_d' (errno: 121)
ERROR 1005 (HY000) at line 69: Can't create table 'otrs.#sql-754_d' (errno: 121)
ERROR 1005 (HY000) at line 70: Can't create table 'otrs.#sql-754_d' (errno: 121)
sh-4.1#
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Getting error while Upgrading OTRS from 3.3 to 4.

Post by crythias »

tables already exist = you've already run this once. In general, this should not be a problem.
Can't create the tables is likely the MyISAM/InnoDB conversion that didn't happen.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
mmyakala
Znuny newbie
Posts: 2
Joined: 02 Jun 2016, 12:17
Znuny Version: 3.3.5
Real Name: Mahesh
Company: Capgemini

Re: Getting error while Upgrading OTRS from 3.3 to 4.

Post by mmyakala »

I've tested with new test VM getting below error.

sh-4.1# cat scripts/DBUpdate-to-4.mysql.sql | mysql -p -f -u XXXX XXXX
Enter password:
INFO: Foreign key constraint FK_ticket_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_history_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_history_valid_id_id does not exist, skipping.
sh-4.1# mysql --user=XXXX --password=XXXXXXXXX
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SHOW DATABASES;
+---------------------+
| Database |
+---------------------+
| information_schema |
| backups |
| #mysql50#lost+found |
| mysql |
| otrs |
+---------------------+
5 rows in set (0.03 sec)

mysql>
mysql> SHOW ENGINES;
+------------+---------+------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+------------+---------+------------------------------------------------------------+--------------+------+------------+
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
| MyISAM | YES | Default engine as of MySQL 3.23 with great performance | NO | NO | NO |
| InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
+------------+---------+------------------------------------------------------------+--------------+------+------------+
5 rows in set (0.00 sec)

mysql> exit
Bye
sh-4.1#
Locked