LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

Problem identifying the previous backup directory

Open zian92 opened this issue 6 years ago • 9 comments

Hi, I am running the latest LGSM version with teamspeak and stumbled over an issue with the backup directory. I tried to run the backup command on a nightly basis via crontab. Sadly it fails regularly. /home/ts3server/server/ts3server backup && /home/ts3server/server/ts3server update ; /home/ts3server/server/ts3server start

The problem seems to be in the backup routine. It says: [ FAIL ] Backup ts3server: Problem identifying the previous backup directory for exclusion.

To look into it, I ran the routine manually and it seems to work when started inside the the folder where the executable is but not in any other. Do I miss something or can this be a problem with an absolute or relative path of the backup folder?

Thanks in advance, Zian

zian92 avatar May 14 '18 09:05 zian92

Hi,

Is there backups already? Can you please provide minimal info as per https://linuxgsm.com/support/ ?

LinuxGSM
There are various ways to get help and support with LinuxGSM. Including wiki, steam group and discord

UltimateByte avatar May 14 '18 16:05 UltimateByte

Hi, Here's the output of postdetails: https://hastebin.com/sokunupiwa

There is one backup that i created manually as stated. Since then, the cron didn't create another one. It schould create one every night, but as shown in the hastebin, it several days old.

Zian

zian92 avatar May 24 '18 12:05 zian92

Mhh, I see nothing fancy here. I can't remember when we fixed some issues with the backup, can you try updating your linuxgsm with the following command? ./ts3server update

Edit: Proper command is ./ts3server update-functions my bad

UltimateByte avatar May 24 '18 13:05 UltimateByte

the server is up to date ( and lgsm as well)

[  OK  ] Update ts3server: Checking for update: teamspeak.com

No update available:
	Current version: 3.2.0
	Available version: 3.2.0

[  OK  ] Update ts3server: No update available

is Lgsm working with relative paths? the execution directory may be differend when run by cron

zian92 avatar May 24 '18 13:05 zian92

I updated lgsm yesterday and don't have a new backup with the nightly run

zian92 avatar May 25 '18 09:05 zian92

Please, try running the command manually to isolate any issue and get any relevant output. Also, is your install using the old config (within your ts3server script) or the new config system (within /lgsm/config-lgsm/ts3server/ts3server.cfg) ?

UltimateByte avatar May 25 '18 13:05 UltimateByte

I am using the new configuration. The following is output of the cronlog:

cat log/script/ts3server-script-2018-06-20-07:56:19.log Jun 20 07:52:27.431 ts3server: START: PASS: Started TeamSpeak 3 Server Jun 20 07:52:27.435 ts3server: START: PASS: command_start.sh exiting with code: 0 Jun 20 07:56:01.779 ts3server: BACKUP: INFO: Lockfile generated Jun 20 07:56:01.781 ts3server: BACKUP: INFO: /home/ts3server/server/lgsm/tmp/.backup.lock Jun 20 07:56:02.018 ts3server: BACKUP: INFO: Backup starting Jun 20 07:56:04.044 ts3server: BACKUP: WARN: ts3server will be stopped during the backup Jun 20 07:56:16.766 ts3server: STOP: PASS: Stopped TeamSpeak 3 Server Jun 20 07:56:16.770 ts3server: BACKUP: INFO: A total of 18M will be compressed: /home/ts3server/server/backups/ts3server-2018-06-20-075601.tar.gz Jun 20 07:56:18.774 ts3server: BACKUP: INFO: backup 18M ts3server-2018-06-20-075601.tar.gz, in progress Jun 20 07:56:19.286 ts3server: BACKUP: FATAL: Problem identifying the previous backup directory for exclusion Jun 20 07:56:19.290 ts3server: BACKUP: FATAL: command_backup.sh exiting with code: 1

and here the manuall run from within the server folder with preps (removing lock) :

[ts3server]$ rm lgsm/tmp/.backup.lock [ts3server]$ /home/ts3server/server/ts3server backup && /home/ts3server/server/ts3server update ; /home/ts3server/server/ts3server start [ OK ] Backup ts3server: Backup starting [ INFO ] Backup ts3server: There are no previous backups [ WARN ] Backup ts3server: ts3server will be stopped during the backup [ OK ] Stopping ts3server: TeamSpeak 3 Server [ OK ] Backup ts3server: Completed: ts3server-2018-06-20-080745.tar.gz, total size 60M [ OK ] Starting ts3server: TeamSpeak 3 Server [ OK ] Update ts3server: Checking for update: teamspeak.com No update available: Current version: 3.2.0 Available version: 3.2.0 [ OK ] Update ts3server: No update available [ INFO ] Starting ts3server: TeamSpeak 3 Server is already running

manual run from within backupfolder (deleted previous backup):

[ts3server server]$ cd backups/ [ts3server backups]$ /home/ts3server/server/ts3server backup && /home/ts3server/server/ts3server update ; /home/ts3server/server/ts3server start [ OK ] Backup ts3server: Backup starting [ INFO ] Backup ts3server: There are no previous backups [ WARN ] Backup ts3server: ts3server will be stopped during the backup [ OK ] Stopping ts3server: TeamSpeak 3 Server [ FAIL ] Backup ts3server: Problem identifying the previous backup directory for exclusion. [ OK ] Starting ts3server: TeamSpeak 3 Server [ts3server backups]$

zian92 avatar Jun 20 '18 06:06 zian92

Is this still relevant?

Claiyc avatar Mar 23 '22 21:03 Claiyc

I get this error whenever I try to run the backup command. Just finished checking for lgsm update.

Please let me know what information I can provide.

Kazz3r24 avatar Apr 28 '22 16:04 Kazz3r24

I had this issue just now when running "~/arkserver backup" from the directory "/home/arkserver/ServerSettings". It worked when I ran it from the "/home/arkserver" directory.

TheFurnace avatar Oct 17 '22 17:10 TheFurnace

Hey guys any resolve to this as it still an issues

I have setup a cron to run everyday at 03:00 to backup both clusters of my server.

[ OK ] Backing up arkserver2: Backup starting

  • Previous backup was created 1 day ago, total size 11G [ WARN ] Backing up arkserver2: arkserver2 is currently running (tried with server offline)
  • Although unlikely; creating a backup while arkserver2 is running might corrupt the backup. [ FAIL ] Backing up arkserver2: Problem identifying the previous backup directory for exclusion.

I am running to arkservers and the is 1 run backup in home/gameuser/gamserver/lgsm/backup, in my arkserver.cfg I have it set

## Backup | https://docs.linuxgsm.com/commands/backup
maxbackups="3"
maxbackupdays="30"
stoponbackup="off"

thanks

Dean

Deanmrd avatar Dec 04 '22 22:12 Deanmrd