We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
/backup filling up with tmp files
-
- Posts: 50
- Joined: Mon Oct 27, 2014 10:04 am
/backup filling up with tmp files
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:
I've stopped the backup-users cron job, but this is still happening.
Any ideas?
Cheers,
MM
Ubuntu 14.04.5 LTS
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
Any ideas?
Cheers,
MM
Ubuntu 14.04.5 LTS
-
- Posts: 50
- Joined: Mon Oct 27, 2014 10:04 am
Re: /backup filling up with tmp files
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.
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.
-
- Posts: 50
- Joined: Mon Oct 27, 2014 10:04 am
Re: /backup filling up with tmp files
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?
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
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.
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.
-
- Posts: 14
- Joined: Tue Nov 07, 2017 6:23 am
Re: /backup filling up with tmp files
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.
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
It's nice idea, please add it to https://bugs.vestacp.com/amaisonneuve wrote: ↑Thu Mar 01, 2018 5:23 amWe should make the /tmp directory a configuration parameter in the UI.
-
- Posts: 14
- Joined: Tue Nov 07, 2017 6:23 am
Re: /backup filling up with tmp files
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
https://bugs.vestacp.com/account/lost_passwordamaisonneuve wrote: ↑Fri Mar 09, 2018 4:28 pmI can't file a bug the password reset function is not working.. please fix so that i can login.
or send request to [email protected] and we fix this
Re: /backup filling up with tmp files
Would you advise HOW?amaisonneuve wrote: ↑Thu Mar 01, 2018 5:23 amWe 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.