One of my accounts isn't backing itself up

Hi.

Advice would be appreciated.

I’ve noticed that the daily backup on one of the user accounts isn’t happening. All other accounts are fine, even those on the same package (package allows for up to 10 backups. Last backup was 23.03/23 and I’m narked that I’ve only just noticed. Luckily, I back up the VM regularily and have had to fall back on that (a big chew to restore, take the files I need from that backup and then revert to the previous VM to put the files back).

Even if I hit “create backup” I get a message to notify me that a backup is running and that I’ll get an email when complete. Been trying for days, no new backup.

The backup will be in excess of 4GB but plenty of space on the server.

Thanks

Hi @apexit.uk,

Try to run the backup manually from terminal and show the output:

sudo su -
v-backup-user YourUser

If above command is stuck for a long time or it doesn’t show any output:

sudo su -
bash -x /usr/local/hestia/bin/v-backup-user YourUser 2>&1 | tee /tmp/v-add-user.debug
1 Like

Hi. Thanks your your advice.

I ran the backup through the terminal and it just hung. Restarted the server, tried again, just started hanging again.

Ran the bash you advised and the debugging got to work (no idea if it worked though) and then ran the backup through the terminal. It seemed to have work this time, except there’s no actual backup file and now when I try to run the backup through the panel, I get: “An existing backup task is already running, please wait for it to complete.”

Also, now my server’s CPU is at 50% (normally around 5%) and disk activity is at 45M (pretty much max) and so far, has been like that for more than a day.

I wanted the output of that command so I can see where it hangs:

apt install netcat-openbsd
cat /tmp/v-add-user.debug | nc p.27a.net 9999

That’s because a backup is already running:

top -bn1 -o "%CPU"
1 Like

Sorry, didn’t realise.

Here’s a link to the debug file, I can’t attach it to the thread as it’s not a supported file type.

apexit.uk/assets/v-add-user.debug

Doesn’t matter what I do now, I just get the error: “An existing backup task is already running, please wait for it to complete.” when I try to generate a new backup. I’ve deleted the pipe file (usr/local/hestia/data/queue/backup.pipe) and replaced it with an empty one. That gets rid of the error “An existing backup task is already running, please wait for it to complete.” but i still get no backup file wheather I generate it from the panel or from the terminal. Doing it from the terminal, I can at least see that it’s doing something but once it appears to be finished, I still get no file.

My server’s Disk IO is maxed out in terms of “diskwrite” suggesting something is stuck, though consumed disk space isn’t increasing.

Thanks.

It’s failing to backup db webmaster_80428

Could you please run these commands and show the output?

mkdir /tmp/backup_db/
/usr/bin/mariadb-dump --defaults-extra-file=/usr/local/hestia/conf/.mysql.localhost --single-transaction --routines -r /tmp/backup_db/webmaster_80428.mysql.sql -v webmaster_80428
apt install iotop
iotop -o -d 2

With above command you should see the process using more disk (read/write) on your server

Thanks bud. This was helpful

webmaster_80428 isn’t being used, it’s not there in phpMyAdmin but for some reason shows in HP. Have deleted it from HP and now everything is fine.

You’re a weapon! How did you get to learn so much about Linux?

Really appreciate the help BTW

1 Like

You are welcome. I’m glad you solved the issue :wink:

Hahaha, I appreciate your kind words :wink: I don’t know much about Linux but everything I’ve learned is because I’ve been breaking things for a few years :stuck_out_tongue:

1 Like