How to upgrade OTRS?

Moderator: crythias

Locked
georgef
Znuny newbie
Posts: 4
Joined: 16 Sep 2010, 19:04
Znuny Version: 2.4.7
Location: Roodepoort, South Africa
Contact:

How to upgrade OTRS?

Post by georgef »

Good day,

Thanks for reading.
This must be a very simple answer but for the life of me I cannot find the solution 

Please explain how I can upgrade our installation of OTRS from 2.4.7 to 2.4.8?

Kind regards
George
OTRS: 2.4.8 + ITSM 2.0.3
Win 2008
MySQL-Version: 5.0.45
Dizzy
Znuny expert
Posts: 200
Joined: 12 Apr 2007, 14:30

Re: How to upgrade OTRS?

Post by Dizzy »

Please fill your personal signature in in the OTRS forum with information about your OTRS system / release / version :)
Are you using a Windows or Linux server?

For Linux I know there is an "UPGRADING" file located in the OTRS mainfolder.
Upgrading from 2.4.X to another 2.4.X is not really critical, it gets more "difficult" when upgrading to a "major" version, for example to 2.5.X (if this release will ever be created).

One more thing:
I guess since yesterday, 2.4.8 is the latest release :)
OTRS: 2.4.9 + ITSM 2.1.1 + CiCS 3.3.5
SLES 11
MySQL-Version: 5.1.49
georgef
Znuny newbie
Posts: 4
Joined: 16 Sep 2010, 19:04
Znuny Version: 2.4.7
Location: Roodepoort, South Africa
Contact:

Re: How to upgrade OTRS?

Post by georgef »

Thanks Dizzy,

I updated my profile signature as you sugested.

Now back to my question - so how do I upgrade from 2.4.7 -> 2.4.8 on Windows?

I hoped that I can use the "package manager" but its apparently NOT that easy.

Regards
George
OTRS: 2.4.8 + ITSM 2.0.3
Win 2008
MySQL-Version: 5.0.45
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to upgrade OTRS?

Post by crythias »

Read the UPGRADING file in the source code.
(Although, if you read the Release notes, and the Security Advisory, you could get away with only replacing certain files:
As a workaround it's also possible to replace the following files by a version
that has been fixed.

o OTRS 2.4.x:
o Kernel/Output/HTML/Standard/AgentStatsOverview.dtl v1.7.2.1
o Kernel/Modules/AdminCustomerUser.pm v1.57.2.1
o Kernel/Modules/AdminCustomerUserGroup.pm v1.18.2.2
o Kernel/Output/HTML/Standard/AdminCustomerUserGroupForm.dtl v1.10.2.1
o Kernel/Modules/CustomerTicketOverView.pm v1.50.2.1
o Kernel/System/HTMLUtils.pm v1.12.2.3
Basically, it appears there is no significant database schema difference here (there is a parenthesis removed in the sample notifications. No apparent schema changes), so the UPGRADING file is a bit overkill (in my opinion).

1) Backup your existing directory. linux users can

Code: Select all

tar czvf otrs247pre248.tar.gz /opt/otrs
2) backup your database (optional, but there is a chance you've never backed up your database. It happens, and now's your chance).
3) stop service cronw I don't see a need to stop your database, or your email server (postfix? really?). Stopping apache is up to you, though the users may experience flakiness while the upgrade is performed
3) extract the 2.4.8 source code on top of your otrs
4) perl otrs/bin/Set permissions.pl (may only be necessary for Linux) I don't know if my cheat is adequate, but

Code: Select all

chmod -R www-data:www-data /opt/otrs
for Ubuntu seems to make it work well enough... Use that at your own risk.
5) start any service you stopped.
6) test

I do hope if I made a mistake, someone might point to what I missed.
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
georgef
Znuny newbie
Posts: 4
Joined: 16 Sep 2010, 19:04
Znuny Version: 2.4.7
Location: Roodepoort, South Africa
Contact:

Re: How to upgrade OTRS?

Post by georgef »

Hi crythias,

Thanks for the details but, does that mean that there is no "easy" (click next) upgrade mechanism?
Not being a technichal person, having to run those commands scares me :)

Something ike the "package manager" is simple and easy and I was hoping that I can do it using that.

Regards
George
OTRS: 2.4.8 + ITSM 2.0.3
Win 2008
MySQL-Version: 5.0.45
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to upgrade OTRS?

Post by crythias »

If you wish to ignore everything, go ahead and extract the 2.4.8 source on top of 2.4.7.

I strongly recommend making backups of your OTRS directory and database first.
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
kcpr01
Znuny newbie
Posts: 5
Joined: 21 Jan 2013, 15:09
Znuny Version: 3.3.3

Re: How to upgrade OTRS?

Post by kcpr01 »

After many troubled days trying to update OTRS from 3.2.8 to 3.2.9 on Linux I finally yound this thread. It worked great.
Thank you crythias!!!
Productiv: OTRS 3.3.3, ITSM 3.3.3
Testing: OTRS 3.3.5, ITSM 3.3.5
OS: Debian 7
Apache2/MySQL 5+
NTHuser
Znuny newbie
Posts: 31
Joined: 20 Jun 2013, 14:50
Znuny Version: 3.2.1

Re: How to upgrade OTRS?

Post by NTHuser »

i have 2.4.5 version set up and i need to get to 3.2.x
do i need go 2.4.6... or i can go 2.4.x to 3.0.0 then 3.1 3.2 then minor patches?
Locked