Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

can't do backup via ssh Topic is solved

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
aminbahgat
Posts: 3
Joined: Wed Aug 01, 2018 1:29 pm
Contact:
Contact aminbahgat
Website

Os: Ubuntu 15x
Web: apache + nginx
can't do backup via ssh
  • Quote

Post by aminbahgat » Wed Aug 01, 2018 1:34 pm

my server linux ubuntu 16.04
problem when do backup .
root@r:/home/backup# v-backup-user admin
2018-08-01 13:12:31 Load Average 8
2018-08-01 13:13:31 Load Average 8
2018-08-01 13:14:31 Load Average 8
2018-08-01 13:15:31 Load Average 8
2018-08-01 13:16:31 Load Average 8
2018-08-01 13:17:31 Load Average 8
2018-08-01 13:18:31 Load Average 8
2018-08-01 13:19:31 Load Average 8
2018-08-01 13:20:31 Load Average 8
2018-08-01 13:21:31 Load Average 8
2018-08-01 13:22:31 Load Average 8
2018-08-01 13:23:31 Load Average 8
2018-08-01 13:24:31 Load Average 8
2018-08-01 13:25:31 Load Average 8
2018-08-01 13:26:31 Load Average 8
2018-08-01 13:27:31 Load Average 8
Error: LoadAverage 8 is above threshold
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: can't do backup via ssh
  • Quote

Post by ScIT » Thu Aug 02, 2018 10:48 am

Your load average is to high, can you check your server load? Does it generate the load during backup or do you have already a high load?
Top

superj707
Posts: 6
Joined: Sun Jan 22, 2017 7:03 pm

Re: can't do backup via ssh
  • Quote

Post by superj707 » Sun Mar 03, 2019 8:36 pm

How do I raise the VESTA threshold?
I can not lower my load and I need to get backups working.
Top

superj707
Posts: 6
Joined: Sun Jan 22, 2017 7:03 pm

Re: can't do backup via ssh
  • Quote

Post by superj707 » Sun Mar 03, 2019 9:57 pm

found out you can override here
/usr/local/vesta/bin
v-backup-user
change la = 1
comment out the dynamic value for la
Top

andrebastos
Posts: 9
Joined: Wed Jun 02, 2021 1:29 pm
Contact:
Contact andrebastos
Website

Os: CentOS 6x
Web: nginx + php-fpm
Re: can't do backup via ssh
  • Quote

Post by andrebastos » Wed Jun 02, 2021 1:38 pm

Hello!

The problem is in setting the LOAD limit to generate the backup (file -> /usr/local/vesta/func/main.sh).

Code: Select all

grep BACKUP_LA_LIMIT /usr/local/vesta/func/main.sh
BACKUP_LA_LIMIT=5
It can be solved by changing the limit:

Code: Select all

replace 'BACKUP_LA_LIMIT=5' 'BACKUP_LA_LIMIT=20' -- /usr/local/vesta/func/main.sh
Try the backup again.

--
André Bastos
Top

laxmi
Posts: 2
Joined: Mon Jul 12, 2021 7:18 pm
Contact:
Contact laxmi
Website

Os: CentOS 4x
Web: apache + nginx
Re: can't do backup via ssh
  • Quote

Post by laxmi » Sun Dec 11, 2022 12:53 pm

laxmi wrote: ↑
Mon Jul 12, 2021 7:27 pm

Hello!!

The problem is in setting the LOAD limit to generate the backup (file -> /usr/local/vesta/func/main.sh)

Code: Select all

grep BACKUP_LA_LIMIT /usr/local/vesta/func/main.sh
BACKUP_LA_LIMIT=5
It can be solved by changing the limit:

Code: Select all

replace 'BACKUP_LA_LIMIT=5' 'BACKUP_LA_LIMIT=20' -- /usr/local/vesta/func/main.sh

lot of thanks for this.
I try it.
Top

mikeman
Posts: 10
Joined: Thu Jan 05, 2023 7:27 am

Os: Ubuntu 17x
Web: apache + nginx
Re: can't do backup via ssh
  • Quote

Post by mikeman » Thu May 18, 2023 10:23 am

It seems that you're facing an issue with setting the load limit for generating backups in the file /usr/local/vesta/func/main.sh. The current value of BACKUP_LA_LIMIT is set to 5, and you want to change it to 20. I'll provide you with a detailed solution that includes code examples to help you resolve this problem.

First, let's check the current value of BACKUP_LA_LIMIT in the main.sh file. The grep command can be used to search for the line that contains the BACKUP_LA_LIMIT variable:

Code: Select all

grep BACKUP_LA_LIMIT /usr/local/vesta/func/main.sh
The output will display the line where the BACKUP_LA_LIMIT variable is defined, which should be:

Code: Select all

BACKUP_LA_LIMIT=5
Now, to change the limit, we'll use the sed command to replace the existing value with the new one. The sed command allows us to perform text substitutions in files. Run the following command to modify the main.sh file and set BACKUP_LA_LIMIT to 20:

Code: Select all

sed -i 's/BACKUP_LA_LIMIT=5/BACKUP_LA_LIMIT=20/' /usr/local/vesta/func/main.sh
In this command, the -i flag ensures that the changes are made in-place directly to the file. After running this command, the BACKUP_LA_LIMIT variable in main.sh will be updated to BACKUP_LA_LIMIT=20. See:

Finally, you can try generating the backup again to see if the new limit is effective. Execute the appropriate command for generating the backup in your specific environment or script. The changes you made to BACKUP_LA_LIMIT should now take effect, allowing the backup generation process to proceed up to a load limit of 20.
However, if you're unable to find the grep and sed commands or they don't work as expected, it's possible that they may not be available in your environment. In that case, you can use alternative methods to update the BACKUP_LA_LIMIT value.

Alternative Solution:

Open the /usr/local/vesta/func/main.sh file using a text editor such as nano or vi:

Code: Select all

nano /usr/local/vesta/func/main.sh
Search for the line that contains BACKUP_LA_LIMIT=5 and modify it to BACKUP_LA_LIMIT=20.

Save the changes and exit the text editor.

By following these steps, you'll be manually updating the BACKUP_LA_LIMIT value in the main.sh file.

After making the necessary changes, you can proceed with generating the backup again and test if the new limit of 20 is effective. See:

Remember to exercise caution when modifying system files, and it's always a good practice to create backups of critical files before making any changes.

Here's a summary of the solution steps:

Step 1: Check the current value of BACKUP_LA_LIMIT in main.sh using the grep command.
Step 2: Use the sed command to replace the existing value with the new one.
Step 3: Alternatively, manually update the BACKUP_LA_LIMIT value in the main.sh file using a text editor.
Step 4: Test the backup generation process after modifying the load limit.

Please note that the specific commands and file paths provided in the examples may vary depending on your system configuration. See: Make sure to adjust them accordingly.

I hope this solution helps you resolve the issue with setting the load limit for generating backups.
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password