Title: An error has occurred which PowerShell cannot handle. A remote session might have ended. · Issue #1365 · PowerShell/PowerShell · GitHub
Open Graph Title: An error has occurred which PowerShell cannot handle. A remote session might have ended. · Issue #1365 · PowerShell/PowerShell
X Title: An error has occurred which PowerShell cannot handle. A remote session might have ended. · Issue #1365 · PowerShell/PowerShell
Description: PS /home/manikb> gmo ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...} Script 1.2 PSReadLine {Get-PSR...
Open Graph Description: PS /home/manikb> gmo ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-O...
X Description: PS /home/manikb> gmo ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compar...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/1365
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"An error has occurred which PowerShell cannot handle. A remote session might have ended.","articleBody":"``` powershell\nPS /home/manikb> gmo \n\nModuleType Version Name ExportedCommands \n---------- ------- ---- ---------------- \nManifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...} \nScript 1.2 PSReadLine {Get-PSReadlineKeyHandler, Get-PSReadlineOption, Remove-PS...\n\n\nPS /home/manikb> Get-PSRepository \n\nName InstallationPolicy SourceLocation \n---- ------------------ -------------- \nINT Trusted https://dtlgalleryint.cloudapp.net/api/v2/ \nPSGallery Untrusted https://www.powershellgallery.com/api/v2/ \n\n\nPS /home/manikb> Get-InstalledModule \nPS /home/manikb> install-module contososerver -repo int -verbose -scope CurrentUser \nVERBOSE: Repository details, Name = 'INT', Location = 'https://dtlgalleryint.cloudapp.net/api/v2/'; IsTrusted = 'True';\n IsRegistered = 'True'.\nVERBOSE: Using the provider 'PowerShellGet' for searching packages.\nVERBOSE: Using the specified source names : 'int'.\nVERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.\nVERBOSE: The specified Location is 'https://dtlgalleryint.cloudapp.net/api/v2/' and PackageManagementProvider is \n'NuGet'.\nVERBOSE: Searching repository 'https://dtlgalleryint.cloudapp.net/api/v2/FindPackagesById()?id='contososerver'' for ''.\nVERBOSE: Total package yield:'1' for the specified package 'contososerver'.\nVERBOSE: Performing the operation \"Install-Module\" on target \"Version '2.5' of module 'ContosoServer'\".\nVERBOSE: The installation scope is specified to be 'CurrentUser'.\nVERBOSE: The specified module will be installed in '/home/manikb/.local/share/powershell/Modules'.\nVERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.\nVERBOSE: Downloading module 'ContosoServer' with version '2.5' from the repository \n'https://dtlgalleryint.cloudapp.net/api/v2/'.\nVERBOSE: Searching repository 'https://dtlgalleryint.cloudapp.net/api/v2/FindPackagesById()?id='ContosoServer'' for ''.\nVERBOSE: InstallPackage' - name='ContosoServer', version='2.5',destination='/tmp/1358711381'VERBOSE: DownloadPackage' - name='ContosoServer', \nversion='2.5',destination='/tmp/1358711381/ContosoServer/ContosoServer.nupkg', \nuri='https://dtlgalleryint.cloudapp.net/api/v2/package/ContosoServer/2.5.0'VERBOSE: Downloading 'https://dtlgalleryint.cloudapp.net/api/v2/package/ContosoServer/2.5.0'.VERBOSE: Completed downloading 'https://dtlgalleryint.cloudapp.net/api/v2/package/ContosoServer/2.5.0'.VERBOSE: Completed downloading 'ContosoServer'.VERBOSE: InstallPackageLocal' - name='ContosoServer', version='2.5',destination='/tmp/1358711381'VERBOSE: Module 'ContosoServer' was installed successfully to path \n'/home/manikb/.local/share/powershell/Modules/ContosoServer/2.5'.\nVERBOSE: The module 'Microsoft.PowerShell.Diagnostics' could not be loaded. For more information, run 'Import-Module \nMicrosoft.PowerShell.Diagnostics'.\nPS /home/manikb> Get-InstalledModule \n\nVersion Name Repository Description \n------- ---- ---------- ----------- \n2.5 ContosoServer INT ContosoServer module \n\n\nPS /home/manikb> Get-InstalledModule | Uninstall-Module -Verbose -Debug \nDEBUG: 00:00:00.0000014 Calling New() : MethodName = 'GetDynamicOptions'\n\nConfirm\nContinue with this operation?\n[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is \"Y\"): A\nDEBUG: 00:00:00.0002391 Name: ContosoServer\nDEBUG: 00:00:00.0003813 Debug: True\nDEBUG: 00:00:00.0005024 RequiredVersion: 2.5\nDEBUG: 00:00:00.0006247 Verbose: True\nDEBUG: 00:00:00.0042243 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1\nDEBUG: 00:00:00.0080331 In PowerShellGet Provider - 'Get-DynamicOptions'.\nDEBUG: 00:00:00.0136877 Done calling powershell «Get-DynamicOptions» «PSModule»\nDEBUG: 00:00:00.0267236 Calling New() : MethodName = 'GetDynamicOptions'\nDEBUG: 00:00:00.0269121 Name: ContosoServer\nDEBUG: 00:00:00.0270358 Debug: True\nDEBUG: 00:00:00.0272014 RequiredVersion: 2.5\nDEBUG: 00:00:00.0273271 Verbose: True\nDEBUG: 00:00:00.0308418 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1\nDEBUG: 00:00:00.0340494 In PowerShellGet Provider - 'Get-DynamicOptions'.\nDEBUG: 00:00:00.0663571 Done calling powershell «Get-DynamicOptions» «PSModule»\nDEBUG: 00:00:01.5838931 Calling New() : MethodName = 'GetInstalledPackages'\nDEBUG: 00:00:01.5854818 Debug: True\nDEBUG: 00:00:01.5869118 RequiredVersion: 2.5\nDEBUG: 00:00:01.5883265 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString\nDEBUG: 00:00:01.5897477 ProviderName: PowerShellGet\nDEBUG: 00:00:01.5971416 Type: Module\nDEBUG: 00:00:01.5985471 Name: ContosoServer\nDEBUG: 00:00:01.6000207 Verbose: True\nDEBUG: 00:00:01.6091936 INVOKING PowerShell Fn Get-InstalledPackage with args ContosoServer, 2.5, , that has length 4\nDEBUG: 00:00:01.6148168 In PowerShellGet Provider - 'Get-InstalledPackage'.\nDEBUG: 00:00:01.6333785 OPTION: Debug => True\nDEBUG: 00:00:01.6356021 OPTION: RequiredVersion => 2.5\nDEBUG: 00:00:01.6410851 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString\nDEBUG: 00:00:01.6429382 OPTION: ProviderName => PowerShellGet\nDEBUG: 00:00:01.6479064 OPTION: Type => Module\nDEBUG: 00:00:01.6654882 OPTION: Name => ContosoServer\nDEBUG: 00:00:01.6864067 OPTION: Verbose => True\nDEBUG: 00:00:01.8989605 Done calling powershell «Get-InstalledPackage» «PSModule»\nDEBUG: 00:00:01.9653134 Uninstalling package ContosoServer with provider PowerShellGet\n\nConfirm\nAre you sure you want to perform this action?\nPerforming the operation \"Uninstall-Module\" on target \"Version '2.5' of module 'ContosoServer'\".\n[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is \"Y\"): A\nDEBUG: 00:00:03.2662674 Calling New() : MethodName = 'UninstallPackage'\nDEBUG: 00:00:03.2776318 Debug: True\nDEBUG: 00:00:03.2790507 RequiredVersion: 2.5\nDEBUG: 00:00:03.2804257 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString\nDEBUG: 00:00:03.2849838 ProviderName: PowerShellGet\nDEBUG: 00:00:03.2862994 Type: Module\nDEBUG: 00:00:03.2875507 Name: ContosoServer\nDEBUG: 00:00:03.2935281 Verbose: True\nDEBUG: 00:00:03.3042908 INVOKING PowerShell Fn Uninstall-Package with args \nNuGet|ContosoServer|2.5|https://dtlgalleryint.cloudapp.net/api/v2/|Module that has length 1\nDEBUG: 00:00:03.4256505 In PowerShellGet Provider - 'Uninstall-Package'.\nDEBUG: 00:00:03.4364016 The FastPackageReference is \n'NuGet|ContosoServer|2.5|https://dtlgalleryint.cloudapp.net/api/v2/|Module'.\nDEBUG: 00:00:03.4451097 OPTION: Debug => True\nDEBUG: 00:00:03.4599739 OPTION: RequiredVersion => 2.5\nDEBUG: 00:00:03.4789817 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString\nDEBUG: 00:00:03.4832408 OPTION: ProviderName => PowerShellGet\nDEBUG: 00:00:03.4890636 OPTION: Type => Module\nDEBUG: 00:00:03.4999688 OPTION: Name => ContosoServer\nDEBUG: 00:00:03.5052394 OPTION: Verbose => True\nVERBOSE: Successfully uninstalled the module 'ContosoServer' from module base \n'/home/manikb/.local/share/powershell/Modules/ContosoServer/2.5'.\n\nConfirm\nAn error has occurred which Windows PowerShell cannot handle. A remote session might have ended.\n[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is \"Y\"): A\nPackageManagement\\Uninstall-Package : An error has occurred which Windows PowerShell cannot handle. A remote session might have ended.\nAt /home/manikb/Documents/PowerShell/src/powershell/bin/Linux/netcoreapp1.0/ubuntu.14.04-x64/Modules/PowerShellGet/PSMo\ndule.psm1:2054 char:25\n+ ... $null = PackageManagement\\Uninstall-Package @PSBoundParameters\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n + CategoryInfo : OpenError: (localhost:String) [Uninstall-Package], Exception\n + FullyQualifiedErrorId : PSSessionStateBroken,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage\n\n\n\nPS /home/manikb> $PSVersionTable \n\nName Value \n---- ----- \nPSVersion 5.1.10032.0 \nPSEdition Linux \nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} \nBuildVersion 3.0.0.0 \nGitCommitId v0.6.0-48-g1dc0b9a813982802e31bccc6478e238ed72bd910 \nCLRVersion \nWSManStackVersion 1.0 \nPSRemotingProtocolVersion 2.3 \nSerializationVersion 1.1.0.1 \n\n\n\nPS /home/manikb> $Error | fl * -Force \n\n\nwriteErrorStream : True\nPSMessageDetails : \nException : System.Exception: An error has occurred which Windows PowerShell cannot handle. A remote \n session might have ended.\nTargetObject : localhost\nCategoryInfo : OpenError: (localhost:String) [Uninstall-Package], Exception\nFullyQualifiedErrorId : PSSessionStateBroken,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage\nErrorDetails : \nInvocationInfo : System.Management.Automation.InvocationInfo\nScriptStackTrace : at Uninstall-Module\u003cProcess>, /home/manikb/Documents/PowerShell/src/powershell/bin/Linux/netcor\n eapp1.0/ubuntu.14.04-x64/Modules/PowerShellGet/PSModule.psm1: line 2074\n at \u003cScriptBlock>, \u003cNo file>: line 1\nPipelineIterationInfo : {0, 1}\n\n\n```\n","author":{"url":"https://github.com/bmanikm","@type":"Person","name":"bmanikm"},"datePublished":"2016-07-14T00:30:25Z","url":"https://github.com/PowerShell/PowerShell/issues/1365"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d69b6156-24fa-d505-4b71-d7304e7ddf98 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE40:2FD85A:253ED:325C2:6AFD581D |
| html-safe-nonce | 099d616472ccf3f20246b9523a1e18a625b3ccc32b31b146fb6f8470f196d5bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTQwOjJGRDg1QToyNTNFRDozMjVDMjo2QUZENTgxRCIsInZpc2l0b3JfaWQiOiI2NTkwNTM1OTI0ODk3ODk2NDc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f6ab0dab00f7c681ea34458674d6a6b9eb3e90e140f5e2db5f78e1342e7a3e7a |
| hovercard-subject-tag | issue:165451491 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/1365/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2f876bd8a930ea08abff93eb1eb3221d62ab28673aedf8d87e717b2c349521e/PowerShell/PowerShell/issues/1365 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2f876bd8a930ea08abff93eb1eb3221d62ab28673aedf8d87e717b2c349521e/PowerShell/PowerShell/issues/1365 |
| og:image:alt | PS /home/manikb> gmo ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-O... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bmanikm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width