Page 1 of 2

/backup filling up with tmp files

Posted: Sun Sep 24, 2017 3:42 pm
by missionaryman
Hi,

My backup folder is /backup

Over the last few days, it's been filling up with tmp files, until /var/root becomes 100% full, and then all kinds of crap happens. Every time I empty it, it refills in a few hours.

Here's a directory listing:

Code: Select all

-rw-r----- 1 admin admin 701317120 Aug 13 03:05 admin.2017-08-13.tar
-rw-r----- 1 admin admin 701440000 Aug 20 03:05 admin.2017-08-20.tar
-rw-r----- 1 admin admin 701644800 Aug 27 03:04 admin.2017-08-27.tar
-rw-r----- 1 admin admin 701900800 Sep  3 03:04 admin.2017-09-03.tar
-rw-r--r-- 1 root  root        565 Sep 24 16:38 admin.log
drwxr-xr-x 6 root  root       4096 Sep 24 15:33 tmp.0mtnWMLV38
drwx------ 8 root  root       4096 Sep 24 15:53 tmp.2Su3JM9BEI
drwx------ 8 root  root       4096 Sep 24 16:14 tmp.di7hSsDxc4
drwx------ 5 root  root       4096 Sep 24 16:35 tmp.f9WtW3ftMb
drwx------ 8 root  root       4096 Sep 24 16:28 tmp.jc9O0wHlXg
drwx------ 8 root  root       4096 Sep 24 16:09 tmp.L4gbFBPYcZ
drwx------ 8 root  root       4096 Sep 24 16:24 tmp.LTzB3m5PVV
drwx------ 8 root  root       4096 Sep 24 15:41 tmp.lYo5QXnBbm
drwx------ 8 root  root       4096 Sep 24 16:04 tmp.mlvWkpi4zV
drwx------ 8 root  root       4096 Sep 24 16:19 tmp.pI5257fJ8m
drwx------ 8 root  root       4096 Sep 24 15:49 tmp.qSQEcoRbHn
drwx------ 8 root  root       4096 Sep 24 15:59 tmp.uwVb3zeP0N
drwx------ 8 root  root       4096 Sep 24 16:34 tmp.YxstwxBBCC
I've stopped the backup-users cron job, but this is still happening.

Any ideas?

Cheers,
MM
Ubuntu 14.04.5 LTS

Re: /backup filling up with tmp files

Posted: Sun Sep 24, 2017 4:02 pm
by missionaryman
Update:

It appears to be an errant cron job:

sudo /usr/local/vesta/bin/v-update-sys-queue backup

Pausing this has stopped the tmp files filling up the /backup folder. However, I have no idea why this is. Can anyone offer any help? What's gone wrong and how to I fix it?

Cheers.

Re: /backup filling up with tmp files

Posted: Sun Sep 24, 2017 4:07 pm
by tjebbeke

Re: /backup filling up with tmp files

Posted: Sun Sep 24, 2017 4:39 pm
by missionaryman
Thanks for this.

I added that line to the v-backup-user, and then ran v-backup-users (which I assume calls v-backup-user) and attempted to create a backup, but I only got another tmp file in my /backup directory.

What on earth has happened?

Re: /backup filling up with tmp files

Posted: Tue Nov 14, 2017 3:58 am
by plutocrat
In case it helps, I just found this too.
I looked in /var/log/vesta/backup.log and it seemed that there was an error in there saying
Error: can't parse file /home/user/web/conf/nginx.conf
I rebuilt the web config with v-rebuild-webdomains user
I'll see if that fixes it tomorrow.

Re: /backup filling up with tmp files

Posted: Thu Mar 01, 2018 5:23 am
by amaisonneuve
We should make the /tmp directory a configuration parameter in the UI.

My / drive is small so /tmp was filling up.

so i modified v-backup-user to have the /tmp be /var/tmp.

but having this as a config would be better.

Re: /backup filling up with tmp files

Posted: Mon Mar 05, 2018 7:45 am
by skurudo
amaisonneuve wrote:
Thu Mar 01, 2018 5:23 am
We should make the /tmp directory a configuration parameter in the UI.
It's nice idea, please add it to https://bugs.vestacp.com/

Re: /backup filling up with tmp files

Posted: Fri Mar 09, 2018 4:28 pm
by amaisonneuve
I can't file a bug the password reset function is not working.. please fix so that i can login.

Re: /backup filling up with tmp files

Posted: Mon Mar 12, 2018 6:59 am
by skurudo
amaisonneuve wrote:
Fri Mar 09, 2018 4:28 pm
I can't file a bug the password reset function is not working.. please fix so that i can login.
https://bugs.vestacp.com/account/lost_password
or send request to info@vestacp.com and we fix this

Re: /backup filling up with tmp files

Posted: Tue May 28, 2019 6:25 am
by kaavain
amaisonneuve wrote:
Thu Mar 01, 2018 5:23 am
We should make the /tmp directory a configuration parameter in the UI.

My / drive is small so /tmp was filling up.

so i modified v-backup-user to have the /tmp be /var/tmp.

but having this as a config would be better.
Would you advise HOW?