powercode / PSEverything

PowerShell commandlets for the local search engine Everything
MIT License
105 stars 14 forks source link

IPC error when connecting to machine via SSH #3

Open lostmsu opened 3 years ago

lostmsu commented 3 years ago

Repro:

  1. Install Everything and OpenSSH server (from Windows features) on the host machine
  2. Configure SSH to be able to connect as one of the local administrators (usual setup, when there's only use user on the machine)
  3. Connect to the host from a different machine using SSH. The following steps are to be run in the SSH session:
  4. Launch pwsh (maybe powershell would also work)
  5. Install-Module PSEverything
  6. Search-Everything anytext

Expected: search results Actual: IPC error message

Same happens if you use VS Code SSH remoting, and try running Search-Everything from terminal.

Running Search-Everything anytext from the host machine itself (e.g. without SSH) works fine.

L0g0ff commented 2 years ago

I have the same issue. When I run Enter-PSSession SERVER and then search-everything -global -extension jar i'll get

search-everything : IPC error
At line:1 char:1
+ search-everything -global -extension jar
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: ( ext:jar:String) [Search-Everything], Exception
    + FullyQualifiedErrorId : IPC error,PSEverything.SearchEverythingCommand

When I run ./everything.exe -reindex still the same issue.

L0g0ff commented 2 years ago

Got him. The reason is multiple everything.exe's running. After kill the exe's everything works as expected.