Upgrading from 2.4.9 to 3 beta6

Moderator: crythias

Post Reply
adrijang
Znuny newbie
Posts: 19
Joined: 26 Apr 2010, 19:21
Znuny Version: 4.0.3

Upgrading from 2.4.9 to 3 beta6

Post by adrijang »

Hi !

Now that I have 2.4.9 running on production, I'm trying 3.0.0beta6 on my test server.

I'm getting mysql password problems at step 9 of the upgrade:

Code: Select all

test:/opt/otrs# bin/otrs.SetPermissions.pl /opt/otrs otrs

bin/otrs.SetPermissions.pl <1.3> - set OTRS file permissions
Copyright (C) 2001-2010 xxx, http://otrs.org/
Setting permissions on /opt/otrs
Setting permissions on /opt/otrs/var
Setting permissions on /opt/otrs/bin/*
Setting permissions on /opt/otrs/scripts/*.pl
Setting permissions on /opt/otrs/scripts/tools/*.pl
Setting permissions on Kernel/Config.pm
Setting owner rw and group ro permissions on /opt/otrs/

test:/opt/otrs# bin/otrs.SetPermissions.pl /opt/otrs --web-group www-data

bin/otrs.SetPermissions.pl <1.3> - set OTRS file permissions
Copyright (C) 2001-2010 xxx, http://otrs.org/
Setting permissions on /opt/otrs
Setting permissions on /opt/otrs/var
Setting permissions on /opt/otrs/bin/*
Setting permissions on /opt/otrs/scripts/*.pl
Setting permissions on /opt/otrs/scripts/tools/*.pl
Setting permissions on Kernel/Config.pm
Setting owner rw and group ro permissions on /opt/otrs/

est:/opt/otrs# scripts/DBUpdate-to-3.0.pl
Start migration of the system...

DBI connect('database=otrs;host=localhost;','otrs',...) failed: Access denied for user 'otrs'@'localhost' (using password: YES) at /opt/otrs/Kernel/System/DB.pm line 210
ERROR: OTRS-DBUpdate-to-3.0-10 Perl: 5.10.0 OS: linux Time: Thu Nov  4 19:14:22 2010

 Message: Access denied for user 'otrs'@'localhost' (using password: YES)

 Traceback (4475):
   Module: Kernel::System::DB::new (v1.124) Line: 181
   Module: scripts/DBUpdate-to-3.0.pl (v1.1) Line: 69

Got no DBObject! at /opt/otrs/Kernel/System/State.pm line 93.
I don't know how to solve that.
I posted previous permissions step in case I did it wrong, because I think it may be.

Thanks in advance!
Mike_B
Moderator
Posts: 266
Joined: 12 Jan 2010, 18:16
Znuny Version: CVS HEAD

Re: Upgrading from 2.4.9 to 3 beta6

Post by Mike_B »

It LOOKS as if your OTRS instance does not have a valid database connection to start with. Please make sure that it's in shape before attempting to upgrade to 3.0.x....
--
Mike
huntingbears.nl - @michielbeijen on Twitter
patoil
Znuny newbie
Posts: 2
Joined: 28 Nov 2010, 18:04
Znuny Version: 3.0

Re: Upgrading from 2.4.9 to 3 beta6

Post by patoil »

It happened to me. In my case mysql service was down and after bringing it up (service mysqld start) the upgrade continued.
My be we both understood wrong the upgrade instructions, but in my opinion it´s not properly documented.
Let me know it this helps!
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Upgrading from 2.4.9 to 3 beta6

Post by jojo »

Feel Free to write an Upgrading Guideline in the Wiki...
"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
Post Reply