Rocket.Chat
Rocket.Chat copied to clipboard
Backup problem
Description:
I try to backup but it gives me this error.
root@chat:~# rocketchatctl backup /usr/local/bin/rocketchatctl: line 1106: run: command not found Can't write in the backup directory: /tmp
Server Setup Information:
- Version of Rocket.Chat Server: 4.8.1
- Operating System: Ubuntu 20.04
- Deployment Method:
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: v14.18.3
- MongoDB Version: 5.0.6 / wiredTiger (oplog Enabled)
Seems to be an official bug, please execute the instructions manually and modify the file.
vim /usr/local/bin/rocketchatctl
Scroll down to line 1106 this sentence
check_bkup_dir() {
touch "$backup_dir/testfile_$sufix.txt" /dev/null 2>&1 && run rm "$backup_dir/testfile_$sufix.txt" || print_backup_dir_error_and_exit
}
Change run rm
to rm
then save.
check_bkup_dir() {
touch "$backup_dir/testfile_$sufix.txt" /dev/null 2>&1 && rm "$backup_dir/testfile_$sufix.txt" || print_backup_dir_error_and_exit
}
run again rocketchatctl backup
.
Work for me, you can try but no guarantee of success. Please see the this pull:RocketChat/install.sh#86