Upgrading from 3.1.10 to 3.2.1 - Database migration fails

Moderator: crythias

Locked
52nEHJ
Znuny newbie
Posts: 23
Joined: 31 May 2012, 08:17
Znuny Version: 7.1
Real Name: Eike Jürrens

Upgrading from 3.1.10 to 3.2.1 - Database migration fails

Post by 52nEHJ »

I am trying to upgrade our OTRS installation from version 3.1.10 to 3.2.1

I followed the UPGRADING documentation and could not go on after 9) Apply the database changes because of the following error

Code: Select all

Server:/opt/otrs-3.2.1# scripts/DBUpdate-to-3.2.pl

Migration started...

Step 1 of 9: Refresh configuration cache...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
done.

Not framework version required at scripts/DBUpdate-to-3.2.pl line 217.
Step 2 of 9: Check framework version... 
The previous step gave me the following errors:

Code: Select all

Server:/opt/otrs-3.2.1# cat scripts/DBUpdate-to-3.2.mysql.sql | mysql -p -f -u root otrs2
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 25: Can't DROP 'article_flag_create_by'; check that column/key exists
ERROR 1091 (42000) at line 26: Can't DROP 'article_flag_article_id_article_key'; check that column/key exists
ERROR 1091 (42000) at line 31: Can't DROP 'group_id'; check that column/key exists
ERROR 1050 (42S01) at line 36: Table 'pm_process' already exists
ERROR 1050 (42S01) at line 53: Table 'pm_activity' already exists
ERROR 1050 (42S01) at line 68: Table 'pm_activity_dialog' already exists
ERROR 1050 (42S01) at line 83: Table 'pm_transition' already exists
ERROR 1050 (42S01) at line 98: Table 'pm_transition_action' already exists
ERROR 1050 (42S01) at line 113: Table 'pm_entity' already exists
ERROR 1050 (42S01) at line 120: Table 'pm_entity_sync' already exists
ERROR 1060 (42S21) at line 131: Duplicate column name 'internal_field'
ERROR 1062 (23000) at line 137: Duplicate entry 'ProcessManagementProcessID' for key 'dynamic_field_name'
ERROR 1062 (23000) at line 143: Duplicate entry 'ProcessManagementActivityID' for key 'dynamic_field_name'
I downloaded the latest source version from http://ftp.otrs.org/pub/otrs/otrs-3.2.1.tar.gz

Any hints, what I can do to fix this framework check?

What additional information do you need to help?

Thank you all in advance!
52nEHJ
Znuny newbie
Posts: 23
Joined: 31 May 2012, 08:17
Znuny Version: 7.1
Real Name: Eike Jürrens

Re: Upgrading from 3.1.10 to 3.2.1 - Database migration fail

Post by 52nEHJ »

Any ideas?
sinnedG
Znuny newbie
Posts: 3
Joined: 28 Aug 2012, 08:18
Znuny Version: 3.1.9
Real Name: Dennis Grupp
Company: xxx

Re: Upgrading from 3.1.10 to 3.2.1 - Database migration fail

Post by sinnedG »

Hey,

execute the bin/CheckDB.pl script and try to solve any problem of the output.

Cheers
Dennis
52nEHJ
Znuny newbie
Posts: 23
Joined: 31 May 2012, 08:17
Znuny Version: 7.1
Real Name: Eike Jürrens

Re: Upgrading from 3.1.10 to 3.2.1 - Database migration fail

Post by 52nEHJ »

There were no erros (this step is already contained in the UPGRADING document).
tifoso
Znuny newbie
Posts: 9
Joined: 25 Feb 2013, 10:10
Znuny Version: 3.2.2

Re: Upgrading from 3.1.10 to 3.2.1 - Database migration fail

Post by tifoso »

same problem here when upgrading from 3.1.12. --> 3.2.2

Code: Select all

otrs@helpdesk:/opt/otrs$ ./bin/otrs.CheckDB.pl 
Trying to connect to database
DSN: DBI:mysql:database=otrs;host=localhost;
DatabaseUser: otrs

It looks Ok!
otrs@helpdesk:/opt/otrs$ cat scripts/DBUpdate-to-3.2.mysql.sql | mysql -p -f -u root otrs
Enter password: 
otrs@helpdesk:/opt/otrs$ ./scripts/DBUpdate-to-3.2.pl 

Migration started...

Step 1 of 9: Refresh configuration cache... 
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
done.

Not framework version required at ./scripts/DBUpdate-to-3.2.pl line 217.
Step 2 of 9: Check framework version... otrs@helpdesk:/opt/otrs$ 
any idea???

Tifoso
OTRS 3.3.4 and ITSM 3.3.4 on Linux x64 Ubuntu with MySQL database
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Upgrading from 3.1.10 to 3.2.1 - Database migration fail

Post by jojo »

Not framework version required at ./scripts/DBUpdate-to-3.2.pl line 217.
you are running the script on the wrong location (check your Config.pm)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
tifoso
Znuny newbie
Posts: 9
Joined: 25 Feb 2013, 10:10
Znuny Version: 3.2.2

Re: Upgrading from 3.1.10 to 3.2.1 - Database migration fail

Post by tifoso »

my error..

a used official backup and restore script for previous steps.. and for that also RELEASE file of old version was restored...

everything fine now!!
SORRY and THX !
OTRS 3.3.4 and ITSM 3.3.4 on Linux x64 Ubuntu with MySQL database
52nEHJ
Znuny newbie
Posts: 23
Joined: 31 May 2012, 08:17
Znuny Version: 7.1
Real Name: Eike Jürrens

Re: Upgrading from 3.1.10 to 3.2.1 - Database migration fail

Post by 52nEHJ »

tifoso wrote: used official backup and restore script for previous steps.. and for that also RELEASE file of old version was restored...


What script did you use? I would like to test it, too.
Locked