Page 1 of 1

can't do backup via ssh

Posted: Wed Aug 01, 2018 1:34 pm
by aminbahgat
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

Re: can't do backup via ssh

Posted: Thu Aug 02, 2018 10:48 am
by ScIT
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?

Re: can't do backup via ssh

Posted: Sun Mar 03, 2019 8:36 pm
by superj707
How do I raise the VESTA threshold?
I can not lower my load and I need to get backups working.

Re: can't do backup via ssh

Posted: Sun Mar 03, 2019 9:57 pm
by superj707
found out you can override here
/usr/local/vesta/bin
v-backup-user
change la = 1
comment out the dynamic value for la

Re: can't do backup via ssh

Posted: Wed Jun 02, 2021 1:38 pm
by andrebastos
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

Re: can't do backup via ssh

Posted: Sun Dec 11, 2022 12:53 pm
by laxmi
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.

Re: can't do backup via ssh

Posted: Thu May 18, 2023 10:23 am
by mikeman
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.