🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

problems with the Execute Program operator

kaymanUser: "kayman"
New Altair Community Member
Updated by Jocelyn

Going nuts over something that seems pretty trivial.

 

I have a shell script that I want to run from within RM at the end of a workflow. the command I use is as simple as this : /mypath/myshell.sh

Running this shell script directly on my server (Ubuntu 16) works fine, but running it from RM server fails with error message : Process '/mypath/myshell.sh' exited with error code 255.

 

My shell script itself is as shown below, using sftp with a pem file

 

sftp -o ProxyCommand='nc -X connect -x myProxy:myPort %h %p' -i /mypath/mykey.pem myaccount@myDomain <<upload
put /myPath/myFile.csv
quit
upload

Running this using ssh / console works fine, so the syntax used is probably correct.

The only thing I can think about are access rights, my pem file needs to be set to owner read only (600) so if I login as admin and my pem file is assigned to my admin group it works fine, but how does rapidminer communicate with my server? Which group / user account is this using? I assume these are different, and I modified a few times the settings of the pem files (assigning them to root for instance) but no difference.

 

Or is there anything else I might be missing here ?

Or any other advice to get this sh running?

Find more posts tagged with

Sort by:
1 - 1 of 11
    kaymanUser: "kayman"
    New Altair Community Member
    OP
    Accepted Answer

    Managed to fix it by 'mixing' the user and group setting, so instead of root:root or user:user I tried user:root, which allowed me to run and add the domain to safe sites when using console. After that it worked fine in RM also.

     

    The joy of Linux :-)

     

    Thanks for the tips !