Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session operation has timed out #547

Open
strongnet7 opened this issue Oct 2, 2023 · 1 comment
Open

Session operation has timed out #547

strongnet7 opened this issue Oct 2, 2023 · 1 comment

Comments

@strongnet7
Copy link

Just recently I started having an issue where New-SSHSession will provide "Session operation has timed out" but will run 5 times in a row then not run another x amount of times, then again will run successfully. It is sporadic throughout a 24 hour period. Any thought on how I can get more detail or what the issue might be? It has been running for years without any problems until last week.

This is the command:
Invoke-SSHCommand -SessionId 0 -Command "/export/home/nz/scripts/KillLongRunningQueries.sh LongRunningEmailList" -TimeOut 999999
This is the error on occassion:
Exception calling "BeginExecute" with "0" argument(s): "Session operation has timed out"
At C:\Program Files\WindowsPowerShell\Modules\Posh-SSH\3.0.8\Posh-SSH.psm1:377 char:17

  •             $Async = $cmd.BeginExecute()
    
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : SshOperationTimeoutException

This is success that happens on occasion:
SessionId Host Connected


0      xxxxxxxxxxxx                                                                        True                                                                     

Output : {}
ExitStatus : 0
Error :
Host : xxxxxxxxxxxx
Duration : 00:00:01.3460091

True

@darkoperator
Copy link
Owner

darkoperator commented Oct 2, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants