Page 1 of 1

Backup job runs infinitely long until server space fills up

Posted: Tue Aug 23, 2016 4:23 pm
by vigilante
Hello, this is my first post here.

I've been very happy with Vesta, I use it any time I run a VPS or a virtual server or something and want to get web hosting up. I really like it.

Something happened on a recent update which has made it unusable on a VULTR server I have, running Ubuntu 14.04.

Some kind of backup process is running endlessly and filling up the hard drive with tmp.* folders in the /backup directory.

If I go in the Vesta control panel to the BACKUP section, the little status line says "backups: 1" but in the main screen it does not list anything. So it says there is 1 backup, but there is not??

Regardless, if I click the green plus sign to add a new backup, it says "An existing backup is already running. Please wait for that backup to finish."

The problem is, the backup NEVER finishes. It fills up my entire hard drive with tmp.* folders until I run out of space. This is about 6GB then the server begins to fail and I can no longer even log in to Vesta until I delete these tmp folders.

Here is a screen shot of what /backup looks like when the server fills up:

Image
Click here if pic doesn't show up: http://imgur.com/g4hQsZu

I've been stuck on this for months. The system fills up its space within hours and then I have to delete it and then it fills up again.

I never had this problem before and I've kept up to 3 backups in rotation, never filling up this much space. The sites that are hosted are small test sites, nothing big.

I can't figure out how to stop the backup process or get it working right again. I've been waiting for a Vesta update that might fix it but there hasn't been one. I've restarted the Vesta service, I've even restarted the whole server. It doesn't fix it. It's stuck in a perpetual backup cycle that fills up the hard drive and never finishes.

How can I stop this!

Re: Backup job runs infinitely long until server space fills up

Posted: Sun May 28, 2017 11:13 am
by uengin
Hi Vigilante,
With the lack of any responses to your post I suspect you got no help on the matter, or did you?

I've come across the identical issue and like you have never had anything like this before of using VestaCP in the last 12 months or so...

I've also identified that this is re-occurring every 5 minutes. so in a process of elimination I've suspended jobs that are scheduled for every 5 minutes to eliminate the CRON job that's causing the never-ending backup...

I guess it's no surprise that the cron job causing the issue is:

Code: Select all

sudo /usr/local/vesta/bin/v-update-sys-queue backup
This is as far as I am at the moment. I need to run backups so I can save the server status/data to cloud storage. so disabling/suspending the backup cron job is counter productive.

Did you get to any solution on this matter?

Thanks.

Re: Backup job runs infinitely long until server space fills up

Posted: Sun May 28, 2017 11:32 am
by uengin
Ok, so upon a little investigation a pending backup job is noted by vesta with the existence of the following file:

Code: Select all

/usr/local/vesta/data/queue/backup.pipe
Renaming this file or deleting it resolves the "An existing backup is already running. Please wait for that backup to finish." dialog in the VestaCP.

However, this does not fix the problem of the backup failing, for this one must peruse the log file located at:

Code: Select all

tail -n100 /usr/local/vesta/log/backup.log
This log file will tell you why and how the backup process/queue failed. One would need to review and rectify depending on the errors logged.

Mine is failing because:

Code: Select all

-- DB --
2017-05-28 14:10:11 admin_default (mysql)
Error: Connection to localhost failed
I'll post again if I get any further progress but would appreciate if someone know why VestaCP was unable to connect to the database.

Thanks.