SimplerCloud Pte Ltd

×
×

Backup failed with "Could not find a suitable hcpdriver module for your system" error message

Back

If your backup fails with below error messages:

Error replicating device / (a0dbe4b6-4ea0-11e8-85a3-064c640112c6)
An exception occurred during the request. The replication driver was not detected (detail: Could not find a suitable hcpdriver module for your system; Please run "r1soft-setup --get-module " on your Agent to install one. ).
Agent reported error during requested operation

This means that the hcpdriver module required by the backup server is not installed on your server. This issue only happens on servers running Linux OS.

To resolve the problem, try running below command:

r1soft-setup --get-module

and see if the script successfully downloaded and installed the required hcpdriver module. If it's successful, try running the backup again.

If the installation isn't successful due to below error messages:

===
Failed to get suitable module for this system: Failed to build module: No builders found.
Get module failed.
Falling back to old get-module ...
===

That means your server's kernel is quite new and R1Soft doesn't have the hcpdriver module for that particular kernel version as yet. This would normally affect newer Linux OS versions such as Ubuntu 18.04.2 TLS. What you need to do is to check the kernel version of your current OS by running "uname -a" command:

===
root@ubuntu1804-64b:~# uname -a
Linux ubuntu1804-64b 4.15.0-51-generic #55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
===

The hcpdriver module for kernel version 4.15.* is still in beta, but we can download it and install it manually by running below commands:

cd /lib/modules/r1soft/
wget -c http://beta.r1soft.com/modules/Ubuntu_1804_x64/hcpdriver-cki-4.15.0-XX-generic.ko

NOTE: please replace XX with the actual version of your kernel. On the above example, the kernel version is 4.15.0-51 so the exact command you need to key in to download the module would be:

wget -c http://beta.r1soft.com/modules/Ubuntu_1804_x64/hcpdriver-cki-4.15.0-51-generic.ko

===
root@ubuntu1804-64b:/lib/modules/r1soft# wget -c http://beta.r1soft.com/modules/hcpdriver-cki-4.15.0-51-generic.ko
--2019-06-07 15:04:04--  http://beta.r1soft.com/modules/hcpdriver-cki-4.15.0-51-generic.ko
Resolving beta.r1soft.com (beta.r1soft.com)... 198.64.248.201
Connecting to beta.r1soft.com (beta.r1soft.com)|198.64.248.201|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 117232 (114K) [text/plain]
Saving to: ‘hcpdriver-cki-4.15.0-51-generic.ko’

hcpdriver-cki-4.15.0-51-generic.ko                          100%[========================================================================================================================================>] 114.48K   106KB/s    in 1.1s

2019-06-07 15:04:10 (106 KB/s) - ‘hcpdriver-cki-4.15.0-51-generic.ko’ saved [117232/117232]
===

After the file has been successfully downloaded and saved on your /lib/modules/r1soft folder, restart the backup agent:

/etc/init.d/cdp-agent restart

Note that it will take some time for the backup agent to be restarted since it needs to load the new hcpdriver module. Once completed, you can verify whether the backup agent is running by keying in below command:

/etc/init.d/cdp-agent status

===
root@ubuntu1804-64b:/lib/modules/r1soft# /etc/init.d/cdp-agent status
● sbm-agent.service - R1Soft CDP Agent service
   Loaded: loaded (/etc/systemd/system/sbm-agent.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-06-07 15:05:32 +08; 32s ago
     Docs: man:sbm-agent
  Process: 3165 ExecStop=/usr/sbin/r1soft/service-scripts/agent-service stop (code=exited, status=0/SUCCESS)
  Process: 3240 ExecStart=/usr/sbin/r1soft/service-scripts/agent-service start (code=exited, status=0/SUCCESS)
 Main PID: 3255 (cdp-2-6)
    Tasks: 3 (limit: 1109)
   CGroup: /system.slice/sbm-agent.service
           └─3255 /usr/sbin/r1soft/bin/cdp -s -c /usr/sbin/r1soft/conf/agent_config

Jun 07 15:05:32 ubuntu1804-64b systemd[1]: Starting R1Soft CDP Agent service...
Jun 07 15:05:32 ubuntu1804-64b agent-service[3240]: /usr/sbin/r1soft/service-scripts/agent-service start: cdp started
Jun 07 15:05:32 ubuntu1804-64b systemd[1]: Started R1Soft CDP Agent service.
===

After the above steps are completed, please kindly try running the backup again.

Was this article helpful?
Dislike0 Like0
Views: 4227