Updating OTRS 5

Moderator: crythias

Locked
Ralph
Znuny newbie
Posts: 40
Joined: 17 Jun 2015, 13:40
Znuny Version: 3.3.9 (win)

Updating OTRS 5

Post by Ralph »

Since I cannot find it in the OTRS 5 admin manual or on the release notes pages I thought I'd ask here.

I am running Centos7, MariaDB and OTRS 5.0.6-01. I'd like to upgrade to 5.0.7-01.

Do I simply yum install this package and then perform a config rebuild (bin/otrs.Console.pl Maint::Config::Rebuild) as written in the release notes page (https://www.otrs.com/release-notes-otrs ... h-level-7/)? Or are there more steps I should perform, like stopping certain services etc.?
coolmf
Znuny newbie
Posts: 37
Joined: 02 Nov 2015, 16:29
Znuny Version: 5.0.26

Re: Updating OTRS 5

Post by coolmf »

Upgrade instructions here: http://otrs.github.io/doc/manual/admin/ ... ading.html
Note this passage in the manual.
Within a single minor version you can skip patch level releases if you want to upgrade. For instance you can upgrade directly from OTRS 5 patchlevel 2 to version 5 patchlevel 6. If you need to do such a "patch level upgrade", you should skip steps 6, 10, 11, 14, 17 and 18.
They could have marked it better in the manual :D
OTRS 5.0.26 with ITSM, and FAQ module on CentOS 7 with MariaDB and Apache
Using LDAPS for customers and agents against Azure AD
jjurkus
Znuny newbie
Posts: 54
Joined: 29 Jan 2016, 15:36
Znuny Version: 6.0.17

Re: Updating OTRS 5

Post by jjurkus »

This is what I do, stop the OTRS daemons, postfix and apache. Update via yum, run the update scripts, and start everything again.

Code: Select all

# su -c "/opt/otrs/bin/otrs.Daemon.pl stop ; /opt/otrs/bin/Cron.sh stop" -s /bin/bash otrs ; systemctl stop httpd postfix
# yum install ./otrs-5.0.7-01.noarch.rpm
# su -c "/opt/otrs/bin/otrs.Console.pl Maint::Config::Rebuild" -s /bin/bash otrs ; su -c "/opt/otrs/scripts/DBUpdate-to-5.pl" -s /bin/bash otrs
# systemctl start httpd postfix ; su -c "/opt/otrs/bin/otrs.Daemon.pl start ; /opt/otrs/bin/Cron.sh start" -s /bin/bash otrs
OTRS 6.0.x on CentOS 7 with a PostgreSQL database.
Ralph
Znuny newbie
Posts: 40
Joined: 17 Jun 2015, 13:40
Znuny Version: 3.3.9 (win)

Re: Updating OTRS 5

Post by Ralph »

jjurkus wrote:This is what I do, stop the OTRS daemons, postfix and apache. Update via yum, run the update scripts, and start everything again.

Code: Select all

# su -c "/opt/otrs/bin/otrs.Daemon.pl stop ; /opt/otrs/bin/Cron.sh stop" -s /bin/bash otrs ; systemctl stop httpd postfix
# yum install ./otrs-5.0.7-01.noarch.rpm
# su -c "/opt/otrs/bin/otrs.Console.pl Maint::Config::Rebuild" -s /bin/bash otrs ; su -c "/opt/otrs/scripts/DBUpdate-to-5.pl" -s /bin/bash otrs
# systemctl start httpd postfix ; su -c "/opt/otrs/bin/otrs.Daemon.pl start ; /opt/otrs/bin/Cron.sh start" -s /bin/bash otrs
Worked like a charm, thanks!

@coolmf, thank you too for the reference.
root
Administrator
Posts: 4237
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Updating OTRS 5

Post by root »

I recommend to concatenate the command with && instead of ;
The difference is describe in the bash manual

TL'DR: && continues only if the command succeeded, ; will continue always
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Ralph
Znuny newbie
Posts: 40
Joined: 17 Jun 2015, 13:40
Znuny Version: 3.3.9 (win)

Re: Updating OTRS 5

Post by Ralph »

root wrote:I recommend to concatenate the command with && instead of ;
The difference is describe in the bash manual

TL'DR: && continues only if the command succeeded, ; will continue always
Thanks for the additional feedback.
Ralph
Znuny newbie
Posts: 40
Joined: 17 Jun 2015, 13:40
Znuny Version: 3.3.9 (win)

Re: Updating OTRS 5

Post by Ralph »

I noticed that if I do the upgrades certain settings get 'reset'. For example within a ticket view I put all the 'button' on the front instead of having a pulldown menu.

So I'll have to go to Frontend::Agent::Ticket::MenuModule and adjust the ClusterName for each item. The same goes for enabling 'state changing' when adding a note to a ticket.

I use this upgrade code:
# su -c "/opt/otrs/bin/otrs.Daemon.pl stop ; /opt/otrs/bin/Cron.sh stop" -s /bin/bash otrs ; systemctl stop httpd postfix
# yum install ./otrs-5.0.7-01.noarch.rpm
# su -c "/opt/otrs/bin/otrs.Console.pl Maint::Config::Rebuild" -s /bin/bash otrs ; su -c "/opt/otrs/scripts/DBUpdate-to-5.pl" -s /bin/bash otrs
# systemctl start httpd postfix ; su -c "/opt/otrs/bin/otrs.Daemon.pl start ; /opt/otrs/bin/Cron.sh start" -s /bin/bash otrs

(going to use && instead of ; next time)
Ralph
Znuny newbie
Posts: 40
Joined: 17 Jun 2015, 13:40
Znuny Version: 3.3.9 (win)

Re: Updating OTRS 5

Post by Ralph »

Anyone that can help with my question above?
Locked