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.
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
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
Code: Select all
ln -s /opt/znuny-7.0.2 /opt/otrs