Title: Error loading pwsh when home directory is Read Only. · Issue #6675 · PowerShell/PowerShell · GitHub
Open Graph Title: Error loading pwsh when home directory is Read Only. · Issue #6675 · PowerShell/PowerShell
X Title: Error loading pwsh when home directory is Read Only. · Issue #6675 · PowerShell/PowerShell
Description: Steps to reproduce NOTE: Only validated this on a Linux host, but suspect it would be the same on Windows. - Logon to a Linux endpoint. - Set the HOME env var to a RO location (Read or Read/Execute). - Launch pwsh Interestingly, this see...
Open Graph Description: Steps to reproduce NOTE: Only validated this on a Linux host, but suspect it would be the same on Windows. - Logon to a Linux endpoint. - Set the HOME env var to a RO location (Read or Read/Execute...
X Description: Steps to reproduce NOTE: Only validated this on a Linux host, but suspect it would be the same on Windows. - Logon to a Linux endpoint. - Set the HOME env var to a RO location (Read or Read/Execute...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/6675
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error loading pwsh when home directory is Read Only.","articleBody":"Steps to reproduce\r\n------------------\r\n\r\n```\r\nNOTE: Only validated this on a Linux host, but suspect it would be the same on Windows.\r\n\r\n- Logon to a Linux endpoint.\r\n- Set the HOME env var to a RO location (Read or Read/Execute).\r\n- Launch pwsh\r\n\r\nInterestingly, this seems to be caused by the fact that the PSREADLINE history file cannot be written. However, if this is the case, the failure should be graceful and not halt the shell. Further, the exception thrown is not indicative of the reason why pwsh is not loading.\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```\r\npwsh should load as exected.\r\n\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```\r\nReceive the following error:\r\nThe shell cannot be started. A failure occurred during initialization:\r\nThe static PrimaryRunspace property can only be set once, and has already been set.\r\n\r\n\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0\r\nPSEdition Core\r\nGitCommitId v6.0.0\r\nOS Linux 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Dec 28 14:23:39 EST 2017\r\nPlatform Unix\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\n\r\n```\r\n","author":{"url":"https://github.com/MichaelStankiewicz","@type":"Person","name":"MichaelStankiewicz"},"datePublished":"2018-04-18T18:12:55Z","url":"https://github.com/PowerShell/PowerShell/issues/6675"}
| 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:df9846e0-3579-1b4f-06c7-0c37161631aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC92:34FE60:1D0FE5:2748AC:6AFD4FD9 |
| html-safe-nonce | 4b2e7ba02eb49c4afda1977e083ce63b8fad1a7bfd86a28538415ca496709ce2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzkyOjM0RkU2MDoxRDBGRTU6Mjc0OEFDOjZBRkQ0RkQ5IiwidmlzaXRvcl9pZCI6IjQxNTA0MTU2ODk1MDIyNDg5MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 104f52e0c86ba791a2011e7f09139ec8db93141c98f85796e33fa2caa1b56b3c |
| hovercard-subject-tag | issue:315587427 |
| 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/6675/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d9d5cd00031a13619f85a95bf534836d4f5b4fa0ebb6c13886821efaa73b1e6c/PowerShell/PowerShell/issues/6675 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d9d5cd00031a13619f85a95bf534836d4f5b4fa0ebb6c13886821efaa73b1e6c/PowerShell/PowerShell/issues/6675 |
| og:image:alt | Steps to reproduce NOTE: Only validated this on a Linux host, but suspect it would be the same on Windows. - Logon to a Linux endpoint. - Set the HOME env var to a RO location (Read or Read/Execute... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MichaelStankiewicz |
| 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