Need a special offer?Find out if your project fits.
+

DataServer error while starting

Answered
Seekme asked on September 14, 2020

I've been getting this error while starter DataServer :
2020-09-14 17:35:42.6938|FATAL|Microsoft.AspNetCore.Hosting.Diagnostics|Application startup exception
2020-09-14 17:35:43.7805|FATAL|Flexmonster.DataServer.Program|Data prepopulating failed
Unhandled exception. System.InvalidOperationException: Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read.
at System.ConsolePal.ReadKey(Boolean intercept)
at System.Console.ReadKey()
at Flexmonster.DataServer.Program.Main(String[] args)
 
If I execute the query manually, I get results in less than a second, what is the issue ?

7 answers

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster September 15, 2020

Hi!
 
Thank you for posting your question.
 
So far, we haven't managed to reproduce the described behavior and it is still not entirely clear to us what might be the issue here.
 
Do you think you could provide us with your Data Server configurations (the flexmonster-config.json file), log files (can be found in the /logs folder) & a dummy data set with which the issue is reproducible? 
 
This will allow us to take a deeper look at the issue in question and provide you with a solution faster.
 
Thank you in advance & looking forward to your response.
 
Best regards,
Mykhailo

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster September 22, 2020

Hi!
 
How are you?
 
We were wondering if you've received our response – is your question regarding Flexmonster Data Server error still relevant?
 
Please let us know what you think.
 
Regards,
Mykhailo 

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster September 30, 2020

Hi,
 
Hope you're doing well.
 
Just checking in to ask whether this question is still on your agenda – we'd be happy to hear your updates if there are any.
 
Kind regards,
Mykhailo

Public
Seekme October 13, 2020

Ok, sounds like it was a RAM issue, Flexmonster couldn't load all the data I needed to (~150 indexes).
Increased the RAM to 16Go worked for me.

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster October 15, 2020

Hi!
 
Thank you for your response – we're glad to hear everything went well eventually.
 
As always, feel free to reach out if there's anything else we could assist you with.
 
Best regards,
Mykhailo

Public
Danny.Nam November 3, 2021

It worked well a few day ago, but It raised error like same above suddenly.
 

400 failed to start flexmonster server Error: Command failed: ./flexmonster-data-server

Unhandled exception. System.InvalidOperationException: Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read.

at System.ConsolePal.ReadKey(Boolean intercept)

at System.Console.ReadKey()

at Flexmonster.DataServer.Program.Main(String[] args)

at ChildProcess.exithandler (node:child_process:333:12)

at ChildProcess.emit (node:events:379:20)

at ChildProcess.EventEmitter.emit (node:domain:470:12)

at maybeClose (node:internal/child_process:1065:16)

at Process.ChildProcess._handle.onexit (node:internal/child_process:296:5) {

killed: false,

code: null,

signal: 'SIGABRT',

cmd: './flexmonster-data-server'

}

 

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster November 3, 2021

Hello, Danny,
 
Please check the answer in the new thread: https://www.flexmonster.com/question/unhandled-exception-system-invalidoperationexception/
 
Kind regards,
Nadia

Please login or Register to Submit Answer