Agent-based backup of Windows, Linux, Max, AIX and Solaris machines.
Post Reply
CJLej
Lurker
Posts: 1
Liked: never
Joined: Nov 30, 2018 5:34 pm
Full Name: CJ Lej
Contact:

[Resolved] Support Case #03305036 - Failed to start a repository agent

Post by CJLej »

Problem:
When running backup, it failed with the error "Failed to start a repository agent"
You may find these "sample" errors in the backup log on the backup server:

Code: Select all

 
 Info [AP] (Client) state: ready 
 Error [AP] (Client) error: bash: /tmp/VeeamAgent66357d49****: Permission denied 
 Info [AP] (Client) state: ready 
 Info [AP] (Client) state: closed 
 Error [AP] (Client) error: bash: /tmp/VeeamAgentc1522a0f****: Permission denied 
 Info [AP] (Client) state: closed 


The repository is a linux based scale-out repository.

Cause:
By default veeam uses /tmp on the linux repository server to download and execute the agent. File exectution may be disabled for /tmp or the veamrepouser may not have proper execution permissions.

"Simplest" Solution:
You needed to set a new folder on the repo server(s) for veeam agent/script execution

1. Create the new folder /opt/veeam on the linux reposistory server

Code: Select all

mkdir /opt/veeam 
2. Chown it to the <veeamrepouser> and then ensure proper acl for the veeamrepouser user

Code: Select all

  chown <veeamrepouser>: /opt/veeam; setfacl -m u:<veeamrepouser>:rwx /opt/veeam 
Repeat the steps above for each linux repository in the infrastructure

Do the step below on the Backup server

3. On the backup server you need to change the download location for the linux agent. Login to the backup server and use powershell to run the command below to make the change

Code: Select all

 set-ItemProperty -path 'HKLM:\SOFTWARE\Veeam\Veeam Backup and Replication' -Name LinAgentFolder  -Value "/opt/veeam" 
3. Test backing up again
wishr
Veteran
Posts: 3077
Liked: 453 times
Joined: Aug 07, 2018 3:11 pm
Full Name: Fedor Maslov
Contact:

Re: Support Case #03305036 - Failed to start a repository agent

Post by wishr »

Hi CJ,

Thanks for sharing. I've marked your post with "Resolved" tag.

Do you have any additional questions on this topic or just wanted to share the solution?

BR,
Fedor
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests