elastic / logstash

Logstash - transport and process your logs, events, or other data
https://www.elastic.co/products/logstash
Other
75 stars 3.5k forks source link

Logstash error "Microsystems was unexpected at this time." #11729

Open pankaj-k opened 4 years ago

pankaj-k commented 4 years ago
  1. Extract the logstash zip.
  2. Open a command line window.
  3. Move to bin folder and run logstash.
  4. Error shown: Microsystems was unexpected at this time.

This issue is similar to 26261.

Workaround as of now to make it logstash start: Comment out the block in setup.bat in bin folder.

rem do not let JAVA_TOOL_OPTIONS slip in (as the JVM does by default)
if not "%JAVA_TOOL_OPTIONS%" == "" (
  echo "warning: ignoring JAVA_TOOL_OPTIONS=$JAVA_TOOL_OPTIONS"
  set JAVA_TOOL_OPTIONS=
)

and add just set the env variable to empty. As below.

rem do not let JAVA_TOOL_OPTIONS slip in (as the JVM does by default)
rem if not "%JAVA_TOOL_OPTIONS%" == "" (
rem   echo "warning: ignoring JAVA_TOOL_OPTIONS=$JAVA_TOOL_OPTIONS"
rem   set JAVA_TOOL_OPTIONS=
rem )
set JAVA_TOOL_OPTIONS=
deepankarmalhan commented 4 years ago

Running into this same issue right now, the issue linked fixes it for elasticsearch but can I get confirmation that the fix is present in Logstash codebase as well?

kares commented 2 years ago

the .bat scripts could use the same work-around as Elasticsearch did