0 Replies Latest reply: Nov 17, 2017 7:33 AM by chjaecke RSS

Custom Script Execution Error

chjaecke

Hi all,

 

I recently wanted to setup a custom service for CloudCenter and I run into the following problem that I wanted to share with you.

 

Unfortunately, I was not able to create such an External Service. I tried to create a really simple script which always failed:

 

Status Message

Failed to execute the script : /opt/remoteFiles/cliqr_local_file/service Status : 1

 

START

TaskRunning

11/03/17 15:55:00.123

Executing service START action with command: "/opt/remoteFiles/cliqr_local_file/service" from directory: /opt/remoteFiles/cliqr_local_file

START

TaskRunning

11/03/17 15:54:59.129

Downloading the script : https://raw.githubusercontent.com/***

START

TaskRunning

11/03/17 15:54:58.115

Cliqr execute script is : https://raw.githubusercontent.com/***

START

TaskRunning

11/03/17 15:54:57.127

Download service bundle: success.

 

I wrote the script on Windows. Since the script is executed on a Linux Docker container, I ran into issues with end of lines on Windows vs. Linux. As a solution, you can either use the Dos2Unix tool to convert the script from Windows to Unix encoding or you open the file in Notepad++ and change to Unix EOL: "Edit" > "EOL Conversion" > "Unix (LF")

 

Hope this information helps you not to run into the same problems as I had.

 

Regards,

Christian