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

Exception ``` System.IO.IOException: The system cannot open the device or file specified. #2554

Closed
tacpham opened this issue Jun 8, 2021 · 2 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@tacpham
Copy link

tacpham commented Jun 8, 2021

Environment

[run the script below and paste the output here]

Environment

PSReadLine: 2.1.0
PowerShell: 7.1.3
OS: Linux 4.18.0-305.3.1.el8.x86_64 #1 SMP Tue Jun 1 16:14:33 UTC 2021
BufferWidth: 100
BufferHeight: 35

Last 0 Keys

Exception report


### Exception

System.IO.IOException: The system cannot open the device or file specified. : 'PSReadLineHistoryFile_3120419687'
at System.Threading.Mutex.CreateMutexCore(Boolean initiallyOwned, String name, Boolean& createdNew)
at Microsoft.PowerShell.PSConsoleReadLine.DelayedOneTimeInitialize()
at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)


## Steps to reproduce
Every time try to using Powershell bash with pwsh command I get that error
<!-- A description of how to trigger this bug. -->

## Expected behavior
It's just work fine before. Now I try to reinstall it again. Hope it work.
<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->

## Actual behavior

<!-- What's actually happening? -->
@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jun 8, 2021
@daxian-dbw
Copy link
Member

@tacpham Thanks for reporting the issue. This looks like a duplicate of #1464. It's likely a permission issue to /tmp. Please take a look at #1464 (comment) to see if that helps with your problem too.

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jul 1, 2021
@daxian-dbw daxian-dbw added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Jul 1, 2021
@tacpham
Copy link
Author

tacpham commented Jul 1, 2021

Just a small question, why it working before, with the same environment and then boom, show error. I'm doing nothing with /tmp, never touch it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants