Cloudron Backup Issue with LAMP Application
-
Hello everyone,
I'm facing an issue with the Cloudron backup process for one of my LAMP applications and I'm seeking advice or suggestions to resolve it.
Problem Details:
During the backup attempt of my LAMP application, the backup seems to stall. The logs show a repetitive backup operation with no progress: "Uploading backup 218M@0MBps (mywebsite.com)" with a constant percentage of 36.714285714285715%. This behavior repeats for several minutes without any change.LAMP Application Specifications:
Version: lamp.cloudronapp.php74@3.4.1
Memory: 8GB
CPU Usage: about 50%
Additional Information:I have a .htaccess file set up to block certain IP addresses. I'm not sure if this could impact the backup process.
Network connection appears stable and server resources are not fully utilized during the backup attempt.
I'm looking for advice to determine the cause of this issue and find a solution. Has anyone encountered a similar problem? Are there specific troubleshooting steps I could try?Any help or suggestion would be greatly appreciated.
Thank you in advance for your time and assistance.
Best regards,
Thibault Haese -
@thibault Some ideas:
- Does backup work for other apps? If so, this is not some firewall related issue. An app's htaccess does not prevent backups. The backup code runs from outside the container.
- Can you tell us a bit on how much data you are backing up and to which destination ? If you go to Backups -> Configure -> Advanced, you can change some settings based on your backup destination. But first thing I would try is to give the backup process more memory and see if that helps.
- Depending on your VPS and network, it's possible that there is some outbound/upload throttle. This happens all the time for home networks where upload of large data is immediately throttled (unlike download).
-
-
@girish All other applications on my Cloudron setup are backing up successfully, except for the LAMP-based site. Here are the details of my backup settings :
Backup Provider: Filesystem
Backup Location: /var/backups
Storage Format: tgz
Allocated Memory Limit: 10.91 GiB
The problematic application is about 2.85 GB in size. However, I don't think storage space is the issue, as my server is set up in RAID 5 with 4.96 TB of free space.I'm perplexed as to why this particular LAMP application is not backing up while everything else is. Any insights or suggestions would be greatly appreciated.
-
@thibault Does the app generate temporary/transient files or create log files inside the data directory itself. There is a bug that happens sometimes that when files appear/disappear , the node module we use to create a tar archive gets stuck. If this is the case, is it possible to move the temp directory location to either /tmp or /run ?
-
@girish Indeed, with the Dolibarr installation, there was a log file being continuously updated within the data directory. Based on your suggestion, I disabled this logging module, and it appears to have resolved the backup issue. The backup process is now working correctly. Thank you very much for pointing me in the right direction – this was an incredibly helpful insight!
Best regards,
Thibault Haese. -
-