Skip to main content
Solved

Veeam hardened repository configuration error while adding linux server

  • Mar 15, 2022 3:07 PM UTC
  • 16 comments
  • 5818 views

Hi, I am new to Veeam and trying to test Immutability. When i configure linux server as per the first step i am getting error. am i missing anything here? i tried enabling ports on Linux host still the same.

 

3/15/2022 3:58:56 PM Error    Testing Veeam Data Mover service connection Error: No connection could be made because the target machine actively refused it IP_address :6162
                              No connection could be made because the target machine actively refused it ipaddress:6162

 

Best answer by Chris.Childerhose

to test i added it using “linux account” i can add linux server and scan all volumes. If i change it to “single user” it fails at connecting stage.

This is the permissions for the backup repository folder that is causing this.  I had similar issues when first doing this with the Single-Use credentials and found this article helpful - Veeam Hardening Linux Repository – Part 1 | StarWind Blog (starwindsoftware.com)

This is by a Veeam Vanguard and explains how to create the user in Linux.

Also there is this guide by Veeam - Step 3. Specify Credentials and SSH Settings - User Guide for VMware vSphere (veeam.com)

View original

16 comments

Chris.Childerhose
Forum|alt.badge.img+23

I would suggest you check the Firewall on the Linux box as it may be blocking the port required and noted in the error - 6162.  Let us know.


JMeixner
Forum|alt.badge.img+18
  • On the path to Greatness
  • Mar 15, 2022 3:32 PM UTC

Could be any firewall in between the two systems.Or the local windows firewall on the Veeam server if it is activated…

But it should be definitely a firewall problem...


Chris.Childerhose
Forum|alt.badge.img+23

Could be any firewall in between the two systems.Or the local windows firewall on the Veeam server if it is activated…

But it should be definitely a firewall problem...

Yes and thanks for the correction there Joe. :smiley:


JMeixner
Forum|alt.badge.img+18
  • On the path to Greatness
  • Mar 15, 2022 3:42 PM UTC

Could be any firewall in between the two systems.Or the local windows firewall on the Veeam server if it is activated…

But it should be definitely a firewall problem...

Yes and thanks for the correction there Joe. :smiley:

I did not want to correct you :fearful:  Just a little addition….


haslund
Forum|alt.badge.img+14
  • Mr. VMCE
  • Mar 15, 2022 7:03 PM UTC

Is the backup server and the repository in the same subnet? You said this happens when trying the first initial setup? or it was working and then stopped working?


  • Author
  • Not a newbie anymore
  • Mar 16, 2022 11:21 AM UTC

yes they are and there are no linux firewall enabled. After searching logs i see below error i have required Sudo permission for the account.

 

[16.03.2022 11:07:33.211] <139882166994752>          | ERR |Exception during certificate storage initialization
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |boost::filesystem::directory_iterator::construct: Permission denied: "/opt/veeam/transport/certs/client"
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |An exception was thrown from thread [n/a].
[16.03.2022 11:07:33.211] <139882166994752>          | Generating stop signal (CtrlC thread).
[16.03.2022 11:07:33.211] <139882144802560>          | CtrlC thread received stop signal. Exiting.
[16.03.2022 11:07:33.211] <139882144802560>          | Thread finished. Role: 'Ctrl-C thread'.
[16.03.2022 11:07:33.211] <139882166994752>          | Ctrl-C thread stopped.
[16.03.2022 11:07:33.211] <139882166994752> imm      | Stopping immutable repository service...
[16.03.2022 11:07:33.211] <139882166994752> imm      |   Disconnecting from immutable repository service...
[16.03.2022 11:07:33.211] <139882166994752>          | ERR |Operation not permitted
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |Failed to send SIGTERM to child process.
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |An exception was thrown from thread [139882166994752].
[16.03.2022 11:07:33.211] <139882166994752> imm      | Stopping immutable repository service... ok.
[16.03.2022 11:07:33.211] <139882166994752> tpl      | Stopping Environment service...
[16.03.2022 11:07:33.211] <139882166994752>          |   Disconnecting from environment service...
[16.03.2022 11:07:33.211] <139882166994752>          | ERR |Operation not permitted
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |Failed to send SIGTERM to child process.
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |An exception was thrown from thread [139882166994752].
[16.03.2022 11:07:33.211] <139882166994752> tpl      | Stopping Environment service... ok.
[16.03.2022 11:07:33.211] <139882166994752>          | ERR |Fatal error
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |Permission denied
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |[InotifyMonitor] Failed to add watch to event monitor
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |An exception was thrown from thread [139882166994752].
 


  • Author
  • Not a newbie anymore
  • Mar 16, 2022 11:24 AM UTC

Yes this is new configuration i am testing this for the first time as we are planning to implement Veeam with Immutability option. Veeam server is Windows will be using Linux Hardened repository. I am trying to add Linux server in Managed system till testing connection its all fine. I am using Veeam 11 version. 


haslund
Forum|alt.badge.img+14
  • Mr. VMCE
  • Mar 16, 2022 12:08 PM UTC

How confident are you that the time is accurate on both servers? Are they using the same time server?


  • Author
  • Not a newbie anymore
  • Mar 16, 2022 12:19 PM UTC

yes they are on the same time zone. 


Chris.Childerhose
Forum|alt.badge.img+23

yes they are and there are no linux firewall enabled. After searching logs i see below error i have required Sudo permission for the account.

 

[16.03.2022 11:07:33.211] <139882166994752>          | ERR |Exception during certificate storage initialization
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |boost::filesystem::directory_iterator::construct: Permission denied: "/opt/veeam/transport/certs/client"
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |An exception was thrown from thread [n/a].
[16.03.2022 11:07:33.211] <139882166994752>          | Generating stop signal (CtrlC thread).
[16.03.2022 11:07:33.211] <139882144802560>          | CtrlC thread received stop signal. Exiting.
[16.03.2022 11:07:33.211] <139882144802560>          | Thread finished. Role: 'Ctrl-C thread'.
[16.03.2022 11:07:33.211] <139882166994752>          | Ctrl-C thread stopped.
[16.03.2022 11:07:33.211] <139882166994752> imm      | Stopping immutable repository service...
[16.03.2022 11:07:33.211] <139882166994752> imm      |   Disconnecting from immutable repository service...
[16.03.2022 11:07:33.211] <139882166994752>          | ERR |Operation not permitted
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |Failed to send SIGTERM to child process.
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |An exception was thrown from thread [139882166994752].
[16.03.2022 11:07:33.211] <139882166994752> imm      | Stopping immutable repository service... ok.
[16.03.2022 11:07:33.211] <139882166994752> tpl      | Stopping Environment service...
[16.03.2022 11:07:33.211] <139882166994752>          |   Disconnecting from environment service...
[16.03.2022 11:07:33.211] <139882166994752>          | ERR |Operation not permitted
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |Failed to send SIGTERM to child process.
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |An exception was thrown from thread [139882166994752].
[16.03.2022 11:07:33.211] <139882166994752> tpl      | Stopping Environment service... ok.
[16.03.2022 11:07:33.211] <139882166994752>          | ERR |Fatal error
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |Permission denied
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |[InotifyMonitor] Failed to add watch to event monitor
[16.03.2022 11:07:33.211] <139882166994752>          | >>  |An exception was thrown from thread [139882166994752].
 

You should look to use the one-time credentials for adding this repo for better security.


  • Author
  • Not a newbie anymore
  • Mar 16, 2022 12:27 PM UTC

Like ? i tried also option if sudo does not work use su - . Still the same.


Chris.Childerhose
Forum|alt.badge.img+23

BertrandFR
Forum|alt.badge.img+7
  • Influencer
  • Mar 16, 2022 1:28 PM UTC

Check the privileges of your user? Is it sudoers for the installation of datamover?


  • Author
  • Not a newbie anymore
  • Mar 16, 2022 1:53 PM UTC

yes it has Sudoers permission and even tried putting Root credentials does not work. only RHEL linux i can see another error. is it because of cert “access denied” error?

 

[16.03.2022 14:45:38.572] <140737338287872> imm      | Performing filesystem scan... Failed.
[16.03.2022 14:45:38.572] <140737338287872> imm      | ERR |Immutable locks retention thread has failed.
[16.03.2022 14:45:38.572] <140737338287872> imm      | >>  |Immutability service is being stopped.
[16.03.2022 14:45:38.572] <140737338287872> imm      | >>  |An exception was thrown from thread [140737353983808].
[16.03.2022 14:45:38.572] <140737338287872>          | Thread finished. Role: 'immutable locks retention'.
[16.03.2022 14:45:38.572] <140737353983808> imm      | Service: shutdown.
 


  • Author
  • Not a newbie anymore
  • Mar 16, 2022 2:26 PM UTC

to test i added it using “linux account” i can add linux server and scan all volumes. If i change it to “single user” it fails at connecting stage.


Chris.Childerhose
Forum|alt.badge.img+23
  • Veeam Legend, Veeam Vanguard
  • Answer
  • Mar 16, 2022 2:55 PM UTC

to test i added it using “linux account” i can add linux server and scan all volumes. If i change it to “single user” it fails at connecting stage.

This is the permissions for the backup repository folder that is causing this.  I had similar issues when first doing this with the Single-Use credentials and found this article helpful - Veeam Hardening Linux Repository – Part 1 | StarWind Blog (starwindsoftware.com)

This is by a Veeam Vanguard and explains how to create the user in Linux.

Also there is this guide by Veeam - Step 3. Specify Credentials and SSH Settings - User Guide for VMware vSphere (veeam.com)