Failed to bind to CoreCLR

I’m seeing the below error when I try to run a script via Script Console:

Task ID: ServerTasks-28852
Task status: Failed
Task queued: 22 September 2017 09:14
Task started: 22 September 2017 09:14
Task duration: 5 seconds
Server version: 3.16.7+Branch.master.Sha.9ad9495f581b2054aff15f7d3796ecaae313b6cd
Server node: PEG-CRWEB01

                | == Failed: Script run from management console ==

09:14:41 Fatal | Activity failed with error ‘The remote script failed with exit code 136’.
| The remote script failed with exit code 136
|
| == Failed: Run script on: prc.stg.bglgroup.io ==
09:14:36 Verbose | Requesting upload…
09:14:36 Verbose | Establishing SSH connection…
09:14:37 Verbose | SSH connection established
09:14:37 Verbose | Beginning streaming transfer of command.sh to $HOME.octopus\OctopusServer\Work\20170922081436-28852-1564
09:14:37 Verbose | Establishing SFTP connection…
09:14:38 Verbose | SSFTP connection established
09:14:38 Verbose | Stream transfer complete
09:14:39 Verbose | Requesting upload…
09:14:39 Verbose | Beginning streaming transfer of script.sh to $HOME.octopus\OctopusServer\Work\20170922081436-28852-1564
09:14:39 Verbose | Stream transfer complete
09:14:40 Verbose | Requesting upload…
09:14:40 Verbose | Beginning streaming transfer of variables.json to $HOME.octopus\OctopusServer\Work\20170922081436-28852-1564
09:14:40 Verbose | Stream transfer complete
09:14:41 Error | Failed to load x��, error: libunwind.so.8: cannot open shared object file: No such file or directory
09:14:41 Error | Failed to bind to CoreCLR at '/home/devops/.octopus/OctopusServer/Calamari/linux-x64/3.7.103/libcoreclr.so’
09:14:41 Verbose | Disposing SFTP connection…
09:14:41 Verbose | Disposing SSH connection…
09:14:41 Info | Exit code: 136
09:14:41 Fatal | The remote script failed with exit code 136

here’s the logs when I first ran the script:

Task ID: ServerTasks-28836
Task status: Failed
Task queued: 22 September 2017 09:06
Task started: 22 September 2017 09:06
Task duration: 40 seconds
Server version: 3.16.7+Branch.master.Sha.9ad9495f581b2054aff15f7d3796ecaae313b6cd
Server node: PEG-CRWEB01

                | == Failed: Script run from management console ==

09:07:00 Fatal | Activity failed with error ‘The remote script failed with exit code 136’.
| The remote script failed with exit code 136
|
| == Failed: Run script on: prc.stg.bglgroup.io ==
09:06:20 Verbose | Requesting upload…
09:06:20 Verbose | Establishing SSH connection…
09:06:20 Verbose | SSH connection established
09:06:21 Verbose | Beginning streaming transfer of command.sh to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:21 Verbose | Establishing SFTP connection…
09:06:22 Verbose | SSFTP connection established
09:06:22 Verbose | Stream transfer complete
09:06:22 Verbose | Requesting upload…
09:06:23 Verbose | Beginning streaming transfer of script.ps1 to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:23 Verbose | Stream transfer complete
09:06:23 Verbose | Requesting upload…
09:06:24 Verbose | Beginning streaming transfer of variables.json to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:24 Verbose | Stream transfer complete
09:06:25 Info | This server does not have version 3.7.103 of the Calamari package. It will be pushed automatically.
09:06:25 Verbose | Requesting upload…
09:06:25 Verbose | Beginning streaming transfer of command.sh to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:25 Verbose | Stream transfer complete
09:06:26 Verbose | Requesting upload…
09:06:26 Verbose | Beginning streaming transfer of script.sh to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:26 Verbose | Stream transfer complete
09:06:27 Verbose | Requesting upload…
09:06:27 Verbose | Beginning streaming transfer of variables.json to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:27 Verbose | Stream transfer complete
09:06:49 Verbose | Requesting upload…
09:06:50 Verbose | Beginning streaming transfer of command.sh to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:50 Verbose | Stream transfer complete
09:06:50 Verbose | Requesting upload…
09:06:51 Verbose | Beginning streaming transfer of calamari.linux-x64.3.7.103.tar.gz to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:54 Verbose | Stream transfer complete
09:06:56 Info | Extracted Calamari to /home/devops/.octopus/OctopusServer/Calamari/linux-x64/3.7.103
09:06:56 Info | Calamari upgrade successful
09:06:56 Verbose | Requesting upload…
09:06:56 Verbose | Beginning streaming transfer of command.sh to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:57 Verbose | Stream transfer complete
09:06:57 Verbose | Requesting upload…
09:06:57 Verbose | Beginning streaming transfer of script.ps1 to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:58 Verbose | Stream transfer complete
09:06:58 Verbose | Requesting upload…
09:06:58 Verbose | Beginning streaming transfer of variables.json to $HOME.octopus\OctopusServer\Work\20170922080620-28836-1563
09:06:59 Verbose | Stream transfer complete
09:06:59 Error | Failed to load x �, error: libunwind.so.8: cannot open shared object file: No such file or directory
09:06:59 Error | Failed to bind to CoreCLR at '/home/devops/.octopus/OctopusServer/Calamari/linux-x64/3.7.103/libcoreclr.so’
09:07:00 Verbose | Disposing SFTP connection…
09:07:00 Verbose | Disposing SSH connection…
09:07:00 Info | Exit code: 136
09:07:00 Fatal | The remote script failed with exit code 136

I’m using Octopus 3.16.7

Found the solution.
Needed to run apt-get install libunwind8 on target server