Updating OTRS 5
Moderator: crythias
Updating OTRS 5
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.?
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.?
Re: Updating OTRS 5
Upgrade instructions here: http://otrs.github.io/doc/manual/admin/ ... ading.html
Note this passage in the manual.
Note this passage in the manual.
They could have marked it better in the manualWithin 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.

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
Using LDAPS for customers and agents against Azure AD
Re: Updating OTRS 5
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.
Re: Updating OTRS 5
Worked like a charm, thanks!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
@coolmf, thank you too for the reference.
-
- 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
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
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 ?
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 ?
Re: Updating OTRS 5
Thanks for the additional feedback.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
Re: Updating OTRS 5
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)
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)
Re: Updating OTRS 5
Anyone that can help with my question above?