Infos:
- Used Zammad version: 6.2
- Used Zammad installation type: (source)
- Operating system: Ubuntu 22.04
- Browser + version: Chrome
Expected behavior:
Restoring Zammad on new system (migration).
Actual behavior:
- I try use restore script zammad_restore.sh as described in the documentation . But at end en of process, I get an error “Your Ruby version is 3.1.3, but your Gemfile specified 2.7.4”.
Steps to reproduce the behavior:
- systemctl stop zammad
cd /opt/zammad/contrib/backup/
./zammad_restore.sh
Zammad restore started - Do 4. Apr 13:34:53 UTC 2024!
The restore will delete your current database!
Be sure to have a backup available!
Please ensure to have twice the storage of the uncompressed backup size!
Note that the restoration USUALLY requires root permissions as services are stopped!
Enter ‘yes’ if you want to proceed!
Restore?: yes
Enter file date to restore:
20240403092606
latest
File date: 20240403092606
Enter db date to restore:
20240403092606
latest
DB date: 20240403092606
Stopping Zammad
Checking requirements
… Dropping current database zammad
Dropped database ‘zammad’
… Creating database zammad for owner zammad
CREATE DATABASE
Restoring PostgreSQL DB
Restoring Files
Ensuring correct file permissions …
Clearing Cache …
Your Ruby version is 3.1.3, but your Gemfile specified 2.7.4
./zammad_restore.sh: line 37: t_restore_message: command not found#
/opt/zammad/contrib/backup# ruby -v
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
I will be very grateful if someone can help me.