ES.exe Error code 8

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
patvicto
Posts: 3
Joined: Tue Oct 13, 2020 2:22 pm

ES.exe Error code 8

Post by patvicto »

Hi

we are trying to use everything in command line via an application .net core 3.1, On localhost it works but when i install it on our client server ,we get the error code 8 which stand for


8 Everything IPC window not found. Please make sure the Everything search client is running.


Which i don't get as if i try the es.exe command line we get results and the everything is running.

Can you light me up ?



Version of everything 1.4.1.992 (x64)
and we are using the es.exe from

voidtools.com/support/everything/command_line_interface/
ES can be downloaded from the Downloads page.

Here's the code used

public async Task<Searchresult> TestEverythingAsync(GetEverything MyGetEverything)
{
var list = new List<string>();

try
{

var p = new Process();
p.StartInfo.FileName = _Configuration["pathEverything"];
var lines = "";
var errors = "";

p.StartInfo.Arguments = "-r " + MyGetEverything.SearchValue + " -path " + _Configuration["pathSearch"];
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardInput = false;
p.OutputDataReceived += (sender, args) =>
{
if (args.Data != null)
lines += args.Data + ";";
};
p.ErrorDataReceived += (sender, args) =>
{
errors += args.Data;
};

p.Start();

p.BeginErrorReadLine();

p.BeginOutputReadLine();

p.WaitForExit();

_Logger.LogDebug("ExitCode=" + p.ExitCode.ToString()); (Here we get 8)

p.Close();

var data = lines.Split(";");

list.Add(data.First());

_Logger.LogDebug("RESULT=" + data.First());

var t = new Searchresult();
t.filename = data.First();

return await Task.FromResult(t);

}
catch (Exception ex)
{
var t = new Searchresult();
t.filename = ex.Message;

_Logger.LogDebug("MESSAGE=" + ex.Message);

return await Task.FromResult(t);

}
patvicto
Posts: 3
Joined: Tue Oct 13, 2020 2:22 pm

Re: ES.exe Error code 8

Post by patvicto »

ohh and just saying i've tried the following

C:\Program Files\Everything>everything -install-service

"C:\Program Files\Everything\Everything.exe -start-service


As i understand i just need

Everything Service to run in order to be able to communicate with es.exe is that right ?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: ES.exe Error code 8

Post by NotNull »

patvicto wrote: Tue Oct 13, 2020 5:43 pm As i understand i just need

Everything Service to run in order to be able to communicate with es.exe is that right ?
Everything uses this service to read low-level information about files and updates to these files. You need to be an elevated administrator to access this information. Or you install the Everything Service and run Everything as a restricted user (recommended!) [1] . That way the Everything Service will take care of reading this low-level file information.

You need Everything to be running in the background as this is the database manager.


So this is how it all works together:
  • Everything.exe (the GUI /database manager fills and keeps it's database up-to date by using the Everything Service to access file information.
  • Your ES.exe search query (for example: ES.exe c:\folder ext:ini to find all ini files in c:\folder) is passed along to Everything,
  • which will look in it's database,
  • and passes the matching files it found in it's database back to ES.exe,
  • which will show you the ini filenames.
The Everything service was not needed during these steps.

So yes. Everything must be running for ES.exe to get results.


Note:
Instead of using ES.exe, you can also use the SDK to integrate your searches in your progrma. Search the forum for multiple examples.



[1]
Enable Everything Service
Disable Run as administrator
Both settings can be found under Menu:Tools > Options > General.
patvicto
Posts: 3
Joined: Tue Oct 13, 2020 2:22 pm

Re: ES.exe Error code 8

Post by patvicto »

after some research

it works with IIS Express, but the time i switch it to IIS it returns me Exit code 8.

Any clue ?
void
Developer
Posts: 16851
Joined: Fri Oct 16, 2009 11:31 pm

Re: ES.exe Error code 8

Post by void »

Everything Service to run in order to be able to communicate with es.exe is that right ?
ES.exe is dependent on the Everything Search client
The Everything Search client is dependent on the Everything Service.

You will need to have Everything running in the background and the Everything Service.
it works with IIS Express, but the time i switch it to IIS it returns me Exit code 8.
It might be a Session 0 Isolation issue.

Does IIS run as a service?

Please try running Everything as a client service.

Please allow the client service to interact with the desktop:
  • From the Start menu, run services.
  • Right click Everything Client Service and select Properties.
  • Click the Log On tab.
  • Check Allow service to interact with desktop. (this is required to allow ES.exe to communicate with Everything in session 0)
  • Click OK.
Post Reply