Menu

#216 Issue executing shell script through ssh

1.13
open
nobody
None
5
2023-08-08
2023-08-07
Babibou
No

Hi everyone !

First of all, sick software, working as intended and makes everything much easier !

As of right now, we are trying to migrate from 1.6.4131 version to 1.13.11. I have setup a test job in a test environment to connect to a Unix server to execute a script, however I am getting the following error :

(SOSSSHJob2JSAdapter.java:45) - sos.net.ssh.exceptions.SSHExecutionError: Illegal variable name.

As you can notice from the logs, the user is actually logged in, but I cannot execute any type of commands. I tried some standard shell script, or even just "printenv" as is the case in the test job, nothing works, same error.

In the same test environment, I still have the older version which works correctly with the same job.

JDK 11 is the used version, I can use any other type of jobs (Shell script) but I cannot connect through SSH and execute any script within the remote server.

Thanks again !

2 Attachments

Discussion

  • Andreas

    Andreas - 2023-08-07

    I feel doubts that it makes sense to migrate to 1.13 that comes to its end-of-life in 3 weeks' time.

    Since 18 months the JS7 is available which is branch 2.x. As you anyway will have to adjust a few configurations (1.6 dates back to 2015) IMO it's not worth the effort of migrating to branch 1.13.

    Best regards
    Andreas

     
    • Babibou

      Babibou - 2023-08-08

      Hi Andreas,
      Thank you for the quick answer. The reason we're not trying to migrate to a 2.x version is due to the various errors we are getting when trying to set it up (for example, the Agent service isn't launching and the logs aren't very telling, same for the Controller), we gave up on the idea of trying to setup the latest version (although we did try ...)
      1.13 as of now appears to be just fine for our use case, I'm just curious as to why a standard SSH job isn't working when it is on 1.6

       

Log in to post a comment.