-
Notifications
You must be signed in to change notification settings - Fork 227
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
[Bug] - Set-SftpItem
Stops Enter-PSSession
Due to Progress Stream
#588
Comments
yep |
I don't get the wsman error, since this module does not use powershell sessions or CIM. Are you importing the module remotely or using a pssession? |
Hmm. I import the module on the remote inside a powershell 5.1 session. Then I connect to another host via Maybe it is a Module version issue on my end. Have you tried a largeish file that would actually show the progress bar? Are you using PowerShell Core as your client too? |
I normally install the module on the host I’m running commands at. It could be since I need to use eventing to show progress from the even I have to use the UI in a non standard way and when you import from a remote hosts you are using WSMAN, so everything is serialized as XML sent over WinRM to the host and all objects are serialized that way including the progress information. That may be why if you disable progress you dont get the error, because the rest of the information can be serialized as it is supposed to.
|
been checking and it could be a memory issue. I would try raising the memory of the PSSession. Can you try raising your max memory and testing?
Default is 150mb and the progress information when there are a lot of files could be consuming the amount of memory |
When I run the below type of flow, the powershell ( 5.1.17763.6189 on Microsoft Windows Server 2019 Datacenter ) session is killed with the below. My client is
pwsh
7.4.5 though I connect to the Desktop endpoint. My module version is _ 3.1.2_ which is old and I'm just now seeing that.I run
get-sftpchilditem
, I do see the file was partially uploaded.Workaround
Run the below prior to uploading files. So I assume there is something going on with out the progress stream is being written.
The text was updated successfully, but these errors were encountered: