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

The system cannot open the device or file specified. : 'PSReadLineHistoryFile_2966948577' on starting pwsh #3293

Closed
3 tasks done
JiriZidek opened this issue Apr 27, 2022 · 2 comments

Comments

@JiriZidek
Copy link

JiriZidek commented Apr 27, 2022

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

### Exception

System.IO.IOException: The system cannot open the device or file specified. : 'PSReadLineHistoryFile_2966948577'
   at System.Threading.Mutex.CreateMutexCore(Boolean initiallyOwned, String name, Boolean& createdNew)
   at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name)
   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)

Screenshot

image

Environment data

### Environment
PSReadLine: 2.1.0
PowerShell: 7.2.2
OS: Linux 5.4.0-109-generic #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022
BufferWidth: 120
BufferHeight: 30

Steps to reproduce

Just write pwsh on bash $ prompt

Expected behavior

This started to happen showed on 27-APR-2022

Actual behavior

It showed no errors before.
Now after this error, the PowerShell is crippled a bit...

   at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)

ls
iCC.ReactClient.zip myagent snap vsts-agent-linux-x64-2.202.1.tar.gz
PS /home/atlantis>
Oops, something went wrong.
Please report this bug with ALL the details below, including both the 'Environment' and 'Exception' sections.
Please report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new?template=Bug_Report.md
Thank you!

Environment

PSReadLine: 2.1.0
PowerShell: 7.2.2
OS: Linux 5.4.0-109-generic #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022
BufferWidth: 120
BufferHeight: 30

Last 0 Keys


@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 27, 2022
@daxian-dbw
Copy link
Member

@JiriZidek This will happen when the /tmp folder or /tmp/.dotnet folder doesn't have write permission for non-root users. Please take a look at this comment and the one below it for details, and see if you have the same problem.

@JiriZidek
Copy link
Author

Helped ! Thx

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants