6.5.1 to 7 Upgrade issues

Moderator: crythias

Post Reply
gob
Znuny newbie
Posts: 47
Joined: 18 Jan 2011, 15:45
Znuny Version: 3.0.4

6.5.1 to 7 Upgrade issues

Post by gob »

Hi

Trying to upgrade from v6.5.1 to v 7.0.2 using the upgrade guide.

System is Debian 11 / MariaDB using source code installation method.
Old App user: otrs
Old Home DIR: /opt/otrs

New App user: znuny
New Home DIR: /opt/znuny

I had to tweak the installation script a little to execute all commands successfully.
However since restarting the services in the browser I get:

Code: Select all

The requested URL was not found on this server.
Checking apache error.log mentions it is still referencing /otrs instead of /znuny :

Code: Select all

Message: Can't locate Kernel/Output/HTML/RS_Post_AgentDashboard_XLS.pm in @INC (yo$

 RemoteAddress: 192.168.xxx.xxx
 RequestURI: /otrs/index.pl?Action=AgentDashboard
I have tried this 3 times now, with both keeping the old user / directory and switching to the new user / directory.
Here is the last script I tried:

Code: Select all

root
==========================
systemctl stop apache2
systemctl stop postfix
su -c 'bin/Cron.sh stop' - otrs
su -c 'bin/otrs.Daemon.pl stop' - otrs

cd /opt
nano otrs/Kernel/Config.pm
        ##  Locate:
        ##  $Self->{Home} = '/opt/otrs';
        ##  Amend to:
        ##  $Self->{Home} = '/opt/znuny';
        
        
useradd -d /opt/znuny -c 'Znuny user' -g www-data -s /bin/bash -M -N znuny
wget https://download.znuny.org/releases/znuny-latest-7.0.tar.gz
tar xfz znuny-latest-7.0.tar.gz
cp -av otrs/Kernel/Config.pm /opt/znuny-7.0.2/Kernel/
mv otrs/var/article/* /opt/znuny-7.0.2/var/article/
for f in $(find -L /opt/otrs -maxdepth 1 -type f -name .\* -not -name \*.dist); do cp -av "$f" /opt/znuny-7.0.2/; done
for f in $(find -L otrs/var/cron -maxdepth 1 -type f -name .\* -not -name \*.dist); do cp -av "$f" /opt/znuny-7.0.2/var/cron/; done
rm /opt/otrs
ln -s /opt/znuny-7.0.2 /opt/znuny
znuny/bin/znuny.CheckModules.pl --all
/opt/znuny-7.0.2/bin/znuny.SetPermissions.pl --znuny-user znuny


znuny
============================
su - znuny
scripts/MigrateToZnuny7_0.pl
[Y]
[Y]
bin/znuny.Console.pl Admin::Package::UpgradeAll


root
===========================
su -c 'bin/Cron.sh start' - znuny
systemctl start apache2
systemctl start postfix
If I create a second symlink like this the web interface loads up - although there are still issues:

Code: Select all

ln -s /opt/znuny-7.0.2 /opt/otrs
Any suggestions welcomed.
skullz
Znuny superhero
Posts: 618
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: 6.5.1 to 7 Upgrade issues

Post by skullz »

If you using /opt/znuny with znuny script alias, try to copy over the new apache httpd config..
since 6.5.x still point to /opt/otrs directory and otrs alias
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: 6.5.1 to 7 Upgrade issues

Post by root »

Hi,

The recommendation would be creating a symlink to the Apache include not copying it. Changes to that file are not needed. Put additional configuration in a "custom" configuration file. This keeps the Znuny Apache configuration up-to-date.

- Roy
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 ?
gob
Znuny newbie
Posts: 47
Joined: 18 Jan 2011, 15:45
Znuny Version: 3.0.4

[SOLVED] Re: 6.5.1 to 7 Upgrade issues

Post by gob »

Thanks both.
I knew I was missing something on the apache side but was looking in sites-enabled not conf-enabled.

I followed the new install instructions and created a symlink to the new file and all is good.
tupson
Znuny advanced
Posts: 133
Joined: 07 Oct 2015, 05:54
Znuny Version: 7.0.2
Real Name: Tony
Company: Upson Productions, LLC
Location: DC

Re: 6.5.1 to 7 Upgrade issues

Post by tupson »

is there any documentation on how to keep \otrs\ + otrs user as the default when going from 6x to 7x?

there seems to be a lot of changes; including apache stuff that appears to break legacy config.
Tony :mrgreen:
OTRS version installed: v7.0.2 (.rpm)
OS: CENTOS7 (latest updates via -yum install)
OS: Ubuntu 20.04.3 (latest apt-get upgrades)
GURU: Microsoft & VMware Environments
joergflorian
Znuny newbie
Posts: 31
Joined: 08 Jul 2021, 08:05
Znuny Version: 6.5.5 LTS
Real Name: Florian

Re: 6.5.1 to 7 Upgrade issues

Post by joergflorian »

tupson wrote: 11 Apr 2023, 18:48 is there any documentation on how to keep \otrs\ + otrs user as the default when going from 6x to 7x?

there seems to be a lot of changes; including apache stuff that appears to break legacy config.
I would highly welcome that too. We have the same situation now.
Originally an OTRS 6.0.x installation we have followed all the Znuny 6.x.x releases.
The 6.5.x LTS is fine for us now but it would be nice to know how to upgrade to 7.x when 6.5.x LTS reaches EOL.

Thanks
Florian
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: 6.5.1 to 7 Upgrade issues

Post by root »

tupson wrote: 11 Apr 2023, 18:48 is there any documentation on how to keep \otrs\ + otrs user as the default when going from 6x to 7x?

there seems to be a lot of changes; including apache stuff that appears to break legacy config.
Hi,

It is described in the manual, 1st section.
Besides the changed Alias, ScriptAlias. and basic folder, there are no changes regarding the Apache configuration from 6.5 to 7. That's all that seems to be there. Not really this hard.

- Roy
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 ?
Post Reply