SUMMARY
The Adapter file shows the following log message
Error : processBackup: Error: Failed to run backup command: Failed starting command: exec: "cmd": cannot run executable found relative to current directory
ISSUE
Backups are not running, and adapter file log shows the following flow
Executing the command
Info : Executing command: C:\PCBP\adapter.exe -backup -dest storage.backup.net:443 -metadata C:\PCBP\Lists.dir\<file.xml> -profile C:\PCBP\Lists.dir\<file.ini> -includes C:\PCBP\Lists.dir\<file.inc> -<storage adapter> -protocol grpc
Getting error
Error : processBackup: Error: Failed to run backup command: Failed starting command: exec: "cmd": cannot run executable found relative to current directory
Extra log messages
Info : Uploading task logs for <task id>
Info : Upload Logs: getting upload URL
Upload Logs: building compressed archive
Info : Upload Logs: uploading log archive
Info : Upload Logs: uploading object: '1337_1675403706_37820a5e-fd51-4014-ad29-10d9a405b998.zip'
Info : Upload Logs: contentLength: 166431, formSize: 1956, fileSize: 164475
Info : Upload Logs: response status: 204 No Content
Info : Successfully uploaded task logs
Error : Error deleting C:\PCBP\Lists.dir\<file.spr>: remove C:\PCBP\Lists.dir\<file.spr>: The system cannot find the file specified.
RESOLUTION
To resolve this issue, follow the steps below to add an environment variable in Windows:
- Access the Environment Variables section
- enter sysdm.cpl in the Windows search bar, select Advanced and select Environment Variables
- OR enter “Edit the system environment variables” in the Windows search bar and click on the Environment Variables
- Click on New in System Variables
- Enter Variable Name GODEBUG
- Enter Variable Value execerrdot=0
- Restart the d2service service from services panel