Netscaler ssh tentacle

alex.kemp's Avatar

alex.kemp

13 Nov, 2017 03:21 PM

I’m having difficulty deploying a ssh tentacle to a citrix Netscaler that I’d like to be able to deploy config to using octopus. When I test the health of the host I get the following errors in the log file:

Task ID: ServerTasks-123514
Task status: Failed
Task queued: 13 November 2017 13:52
Task started: 13 November 2017 13:52
Task duration: 1 second
Server version: 3.16.2+Branch.master.Sha.d73137b02ce63214bf041b76a0c3cb54149dc2c2
Server node: server10

                    | == Failed: Check uat-netscaler health ==
13:52:59 Info | Starting health check for a limited set of deployment targets
13:52:59 Info | 1 machines will have their health checks taken.
13:53:00 Verbose | Checking for Tentacles to update
13:53:00 Fatal | The health check failed. One or more deployment targets were not available.
                    |
                    | == Failed: Check deployment target: rs-uat-netscaler ==
13:52:59 Verbose | Performing health check on machine
13:52:59 Verbose | Requesting upload...
13:52:59 Verbose | Establishing SSH connection...
13:52:59 Verbose | SSH connection established
13:52:59 Error | Failed to create directory $HOME/.octopus/OctopusServer/Work/20171113135259-123514-5646 to upload file command.sh.
13:52:59 Error | ERROR: No such command
13:52:59 Verbose | Requesting upload...
13:52:59 Error | Failed to create directory $HOME/.octopus/OctopusServer/Work/20171113135259-123514-5646 to upload file health-check.sh.
13:52:59 Error | ERROR: No such command
13:53:00 Info | ERROR: Session expired or killed. Please login again
13:53:00 Info | ERROR: No such command
13:53:00 Error | ERROR: No such command
13:53:00 Verbose | Disposing SSH connection...
13:53:00 Fatal | The remote script failed with exit code 1
13:53:00 Verbose | The remote script failed with exit code 1
                    | Octopus.Shared.Tasks.ActivityFailedException: The remote script failed with exit code 1
                    | at Octopus.Worker.Scripting.ScriptResult.EnsureSuccessful()
                    | at Octopus.Server.Orchestration.Health.HealthCheckService.PerformHealthCheck(Machine machine, ExceptionHandling exceptionHandling, Action`2 customAction)
                   | Octopus.Server version 3.16.2 (3.16.2+Branch.master.Sha.d73137b02ce63214bf041b76a0c3cb54149dc2c2)
13:53:00 Verbose | Recording health check results
                    |
                    | == Failed: Summary ==
13:53:00 Fatal | One or more deployment targets were not available. Please see the output Log for details.

As you can see its able to connect vis ssh but the Netscaler doesn’t recognise the bash commands. Does anyone know how to solve this issue?

  1. Support Staff 1 Posted by Henrik Andersso... on 13 Nov, 2017 11:00 PM

    Henrik Andersson's Avatar

    Hi Alex,

    I replied to this in your email to our support address, but I'll include the answer here as well in case anyone else comes across the same issue.

    It looks like creating directories is not supported on NetScaler, you can try to use our raw scripting feature (this page also has some info on health checking targets that use raw scripting) and see if that helps.

    Thank you and best regards,
    Henrik

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac