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

"Cannot find PSReadLineHistoryFile_1492416817" on ubuntu after installing modules #3698

Closed
3 tasks done
jafber opened this issue May 25, 2023 · 11 comments
Closed
3 tasks done
Labels
issue-mutex The mutex creation issue on macOS Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@jafber
Copy link

jafber commented May 25, 2023

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

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.yaml
Thank you!

### Environment
PSReadLine: 2.2.6
PowerShell: 7.3.4
OS: Linux 5.4.0-148-generic #165-Ubuntu SMP Tue Apr 18 08:53:12 UTC 2023
BufferWidth: 190
BufferHeight: 36

Last 0 Keys:



### Exception

System.IO.IOException: The system cannot open the device or file specified. : 'PSReadLineHistoryFile_1492416817'
   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, Nullable`1 lastRunStatus)

Screenshot

grafik

Environment data

PS Version: 7.3.4
PS HostName: ConsoleHost
PSReadLine Version: 2.2.6
PSReadLine EditMode: Emacs
OS: Linux lka-web.lka-poc.de 5.4.0-148-generic #165-Ubuntu SMP Tue Apr 18 08:53:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
BufferWidth: 190
BufferHeight: 36

Steps to reproduce

On ubuntu, install powershell with sudo snap install powershell --classic. Download the VMWare PowerCLI https://developer.vmware.com/web/tool/13.1.0/vmware-powercli zip and extract to /usr/local/share/powershell/Modules.

Expected behavior

pwsh starts normally.

Actual behavior

Everytime i start the shell with pwsh, I get shown this error. I can still run commands, but after every shell prompt the error is repeated. The error disappears when i sudo rm -fr /usr/local/share/powershell/Modules/*

@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label May 25, 2023
@StevenBucher98
Copy link
Collaborator

@CheeseCrustery thanks for opening this issue! Does this only happen when you have the VMWare PowerCLI module installed? Or does this happen regardless of that module being installed?

@StevenBucher98 StevenBucher98 added Area-Stability Label for tracking stability Issues Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author Feedback and removed Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. labels Jun 12, 2023
@ghost
Copy link

ghost commented Jun 19, 2023

This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

@ghost ghost closed this as completed Jun 19, 2023
@brent-ir
Copy link

brent-ir commented Aug 30, 2023

Got this same error - my disk is full

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.yaml
Thank you!

### Environment
PSReadLine: 2.2.6
PowerShell: 7.3.6
OS: Linux 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03)
BufferWidth: 270
BufferHeight: 69
xxx@xx-debian:~/codexxx/xxx$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             4987128        0   4987128   0% /dev
tmpfs            1001280     3492    997788   1% /run
/dev/sda1       25002788 23879000         0 100% /
tmpfs            5006384        0   5006384   0% /dev/shm
tmpfs               5120        0      5120   0% /run/lock
tmpfs            1001276        0   1001276   0% /run/user/1000

@microsoft-github-policy-service
Copy link
Contributor

This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

1 similar comment
@microsoft-github-policy-service
Copy link
Contributor

This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

@microsoft-github-policy-service
Copy link
Contributor

This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

4 similar comments
@microsoft-github-policy-service
Copy link
Contributor

This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

@microsoft-github-policy-service
Copy link
Contributor

This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

@microsoft-github-policy-service
Copy link
Contributor

This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

@microsoft-github-policy-service
Copy link
Contributor

This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

@daxian-dbw daxian-dbw reopened this Sep 6, 2023
@daxian-dbw daxian-dbw added the issue-mutex The mutex creation issue on macOS label Sep 6, 2023
@daxian-dbw
Copy link
Member

@CheeseCrustery It's likely a permission issue to the /tmp folder on your Ubuntu system. Please take a look at #1464 (comment) and #1464 (comment) and see if changing the permission on the /tmp folder would solve the issue for you.

@brent-ir This could happen when /tmp is full. See #1464 (comment) for details.

@daxian-dbw daxian-dbw added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Stability Label for tracking stability Issues labels Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue-mutex The mutex creation issue on macOS 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

4 participants