Update gemäß Anleitung:
https://doc.otrs.com/doc/manual/admin/6.0/en/html/updating.html durchgeführt:
Step 1: Stop all relevant services and the OTRS Daemon
Please make sure there are no more running services or cron jobs that try to access OTRS. This will depend on your service configuration, here is an example:
root> /etc/init.d/cron stop root> /etc/init.d/postfix stop root> /etc/init.d/apache2 stop
Stop OTRS cron jobs and the daemon (in this order):
otrs> cd /opt/otrs/ otrs> bin/Cron.sh stop otrs> bin/otrs.Daemon.pl stop
Step 2: Backup files and database
-
Kernel/Config.pm
-
Kernel/Config/Files/ZZZAuto.pm, if updating from OTRS 5
-
var/*
-
as well as the database mysqldump -u root -p otrs > /Backup/otrs_backup.sql
Step 3.1: With the tarball:
root> cd /opt root> mv otrs otrs-old root> tar -xzf otrs-x.x.x.tar.gz root> mv otrs-x.x.x otrs
Restore old configuration files
-
Kernel/Config.pm
-
Kernel/Config/Files/ZZZAuto.pm, if updating from OTRS 5
Restore article data
If you configured OTRS to store article data in the file system you have to restore the article folder to /opt/otrs/var/ or the folder specified in the System Configuration.
Restore already installed default statistics
If you have additional packages with default statistics you have to restore the stats xml files with the suffix *.installed to /opt/otrs/var/stats.
root> cd OTRS-BACKUP/var/stats root> cp *.installed /opt/otrs/var/stats
Set file permissions
Please execute the following command as root user to set the file and directory permissions for OTRS. It will try to detect the correct user and group settings needed for your setup.
root> cd /opt/otrs/ root> bin/otrs.SetPermissions.pl
Step 4: Run the migration script
otrs> cd /opt/otrs/ otrs> scripts/DBUpdate-to-6.pl
Step 5: Update installed packages
Note
Packages for OTRS 5 are not compatible with OTRS 6 and have to be updated.
You can use the command below to update all installed packages. This works for all packages that are available from online repositories. You can update other packages later via the package manager (this requires a running OTRS Daemon).
otrs> cd /opt/otrs/ otrs> bin/otrs.Console.pl Admin::Package::UpgradeAll
Step 6: Restart your services
This will depend on your service configuration, here is an example:
root> /etc/init.d/apache2 start root> /etc/init.d/postfix start root> /etc/init.d/cron start
Step 7: Start the OTRS Daemon and cron job
The OTRS Daemon is responsible for handling any asynchronous and recurring tasks in OTRS. The daemon and its keepalive cron job must be started as the otrs user.
otrs> cd /opt/otrs/ otrs> bin/otrs.Daemon.pl start otrs> bin/Cron.sh start