outroll / vesta

VESTA Control Panel
http://vestacp.com
GNU General Public License v3.0
2.97k stars 1.03k forks source link

Backup doesn't remove temporary files #1478

Open joubertredrat opened 6 years ago

joubertredrat commented 6 years ago

Operating System (OS/VERSION):

Ubuntu 16.04

VestaCP Version:

Latest: 0.9.8-19

Installed Software (what you got with the installer):

A very old installation with apache + nginx (I dont use other options)

Steps to Reproduce:

Automatic backup from cron

Related Issues/Forum Threads:

Other Notes:

Hi guys,

Today, backup doesn't remove tmp folders into /backup used by backup, causing disk filler. Today I need to remove tmp folders manually for don't affect my VPS.

madeITBelgium commented 6 years ago

Have you checked the age of the temp folders? I know there were issues in one of the previous versions. Maybe the files still existed from then?

Skamasle commented 6 years ago

New version save backups in /tmp and not in /backup, but yes, the issue persist, but as I know, just happen when backup fail,

Backup can fail and not clean tmp when you have a broken database, if database backup fail , backup stop and not clean tmp.xxxxx

joubertredrat commented 6 years ago

Hi guys.

@Skamasle you are right, now for backup are using /tmp instead /backup, but problem persists.

root@server:/tmp# du -h --max-depth=1 | sort -h
20K ./tmp.EgJNnci576
20K ./tmp.csWYJKGr0t
20K ./tmp.dyGntGaVDc
20K ./tmp.qijuGqybMV
20K ./tmp.y8GvJiTp6a
24K ./tmp.H2rladITQI
109M    ./tmp.XHnwKhwTVd
110M    ./tmp.3K60uoBTma
110M    ./tmp.9JmCoEJFvo
110M    ./tmp.G7Wm6Ik3kA
110M    ./tmp.IOIQcDAyC8
110M    ./tmp.W99gn0SDPU
110M    ./tmp.XKytGeCzHS
110M    ./tmp.c7HkvyCzzC
110M    ./tmp.cwSTnDJES6
110M    ./tmp.q7ELjd9CJh
110M    ./tmp.wM3VdiEO1Q
110M    ./tmp.yD0PPxoLO1
111M    ./tmp.47IDoLhreG
111M    ./tmp.AgCcAKS1jz
111M    ./tmp.BrKQal8bvk
111M    ./tmp.E47KcQr20j
111M    ./tmp.G65wsXQup7
111M    ./tmp.Igqg78uYsI
111M    ./tmp.SlPdvMXIix
111M    ./tmp.WTN5otoZFG
111M    ./tmp.nDqZv6bojd
112M    ./tmp.BctpnBooqx
112M    ./tmp.TAh708ZGKL
112M    ./tmp.U0pAEMau4H
112M    ./tmp.bIwPJ16gq3
112M    ./tmp.mtA0MBPfgR
112M    ./tmp.nCTkpiWmXA
5.8G    ./tmp.N4TBMMPFUI
6.0G    ./tmp.NcW4ULPEzB
6.0G    ./tmp.YRGedp7oLB
6.0G    ./tmp.ilKjvYcGVD
6.0G    ./tmp.jybI2OKxWj
6.0G    ./tmp.zzcMCrUy1k
6.1G    ./tmp.6AQhX63oHV
6.1G    ./tmp.9aJENZWHd9
6.1G    ./tmp.D57pv0zigL
6.1G    ./tmp.IPFrnRDxqN
6.1G    ./tmp.LtGrwfD8H3
6.1G    ./tmp.MqHlyfyEFR
6.1G    ./tmp.ZKupm8TEOm
6.1G    ./tmp.aaUviFaMrY
6.1G    ./tmp.avBC8H8hrG
6.1G    ./tmp.b7phT9CNTP
6.1G    ./tmp.dBaFMpUal2
6.1G    ./tmp.epg4LEbJVq
6.1G    ./tmp.rwWAOzP8Dz
6.1G    ./tmp.vdEZnmjvVM
6.1G    ./tmp.xs8lbcpcSL
6.2G    ./tmp.3fRpmpqm7j
6.2G    ./tmp.MlJfkFgHyb
6.2G    ./tmp.N2GAqUyAsF
6.2G    ./tmp.oah5ccDPHZ
6.2G    ./tmp.zojehe5726
6.3G    ./tmp.IBE25GxjA8
166G    .
gudge25 commented 1 year ago

same here `grep: /usr/local/vesta/data/templates/web/nginx/.stpl: No such file or directory wc: /usr/local/vesta/data/templates/web/nginx/.stpl: No such file or directory Error: can't parse template /usr/local/vesta/data/templates/web/nginx/.stpl -- SYSTEM -- 2023-10-12 02:55:01 admin.conf 2023-10-12 02:55:01 stats.log 2023-10-12 02:55:01 history.log 2023-10-12 02:55:01 backup-excludes.conf 2023-10-12 02:55:01 pam

-- WEB --

gzip: stdout: No space left on device

mkdir: cannot create directory ‘/backup/tmp.yvbnVgLVRS/web/XX.XX’: No space left on device mkdir: cannot create directory ‘/backup/tmp.yvbnVgLVRS/web/XX.XX’: No space left on device `

Skamasle commented 1 year ago

@gudge25 You not have space

When vesta fail to do a backup for any reazon leave a tmp file, most common reason for this is or you not have space to complete backup or you have any database corrupted and backup unexpected and leave temporary file

gudge25 commented 1 year ago

@Skamasle yes i. understood that i have no space

but it was because of backup constantly trying to create archive
and never delete temporary files

Skamasle commented 1 year ago

Hi

As I say, check why backup not end and leave the tmp.

Try clean all tmp Run backup manually and see if vesta leave tmp there and if backup archive can be uncompressed

Maybe backup get some error

El vie, 20 oct 2023 21:45, Anton @.***> escribió:

@Skamasle https://github.com/Skamasle yes i. understood that i have no space

but it was because of backup constantly trying to create archive and never delete temporary files

— Reply to this email directly, view it on GitHub https://github.com/serghey-rodin/vesta/issues/1478#issuecomment-1773307962, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEVO5OVLT7N4WP5CC2P4ITYALIFRAVCNFSM4EQFNWNKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGMZTANZZGYZA . You are receiving this because you were mentioned.Message ID: @.***>

gudge25 commented 1 year ago

@Skamasle thanks problem with back up was solved by set

image

to default