cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1614
Views
0
Helpful
0
Replies

Custom Script Execution Error

chjaecke
Cisco Employee
Cisco Employee

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

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: