Opensearch Dashboards 3.0 wont start

Tried both the tarball and the rpm installation on centos 7 - (I know its EOL)

Tarball:

# node/bin/node src/cli/dist
node/bin/node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node/bin/node)
node/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node/bin/node)
node/bin/node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node/bin/node)
node/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node/bin/node)
node/bin/node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node/bin/node)
node/bin/node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by node/bin/node)
  log   [15:44:43.771] [fatal][root] /opt/tmp/opensearch-dashboards-3.0.0/node_modules/@aws-sdk/client-kms/dist-cjs/index.js:276
  static {
         ^

SyntaxError: Unexpected token '{'
    at compileFunction (<anonymous>)
    at wrapSafe (internal/modules/cjs/loader.js:1029:16)
    at Module._compile (internal/modules/cjs/loader.js:1078:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:979:32)
    at Function.Module._load (internal/modules/cjs/loader.js:819:12)
    at Module.require (internal/modules/cjs/loader.js:1003:19)
    at Module.Hook._require.Module.require (/opt/tmp/opensearch-dashboards-3.0.0/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/opt/tmp/opensearch-dashboards-3.0.0/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/opt/tmp/opensearch-dashboards-3.0.0/node_modules/require-in-the-middle/index.js:80:39)

 FATAL  SyntaxError: Unexpected token '{'

Log output:

{"type":"log","@timestamp":"2025-05-09T15:25:52Z","tags":["fatal","root"],"pid":1616,"message":"/opt/tmp/opensearch-dashboards-3.0.0/node_modules/@aws-sdk/client-kms/dist-cjs/index.js:276\n
static {\n^\n\nSyntaxError: Unexpected token '{'\n
at compileFunction (<anonymous>)\n   
at wrapSafe (internal/modules/cjs/loader.js:1029:16)\n    
at Module._compile (internal/modules/cjs/loader.js:1078:27)\n    
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)\n    
at Module.load (internal/modules/cjs/loader.js:979:32)\n    
at Function.Module._load (internal/modules/cjs/loader.js:819:12)\n    
at Module.require (internal/modules/cjs/loader.js:1003:19)\n    
at Module.Hook._require.Module.require (/opt/tmp/opensearch-dashboards-3.0.0/node_modules/require-in-the-middle/index.js:80:39)\n    
at Module.Hook._require.Module.require (/opt/tmp/opensearch-dashboards-3.0.0/node_modules/require-in-the-middle/index.js:80:39)\n    
at Module.Hook._require.Module.require (/opt/tmp/opensearch-dashboards-3.0.0/node_modules/require-in-the-middle/index.js:80:39)"}

Both RPM and tarball results are the same.
Anyone else seeing this?

Looks like this might be an issue with the fallback version of node not supporting various libraries current versions. I tested with NVM and node 16 - and I was able to start OSD fine. but this is only a bandaid.

I’ve got the same error after upgrade from 2.19
Opensearch works well.
OSD brings up the same error.
No change after installing NodeJS 16, adding NODE_OSD_HOME=/usr/bin/node globaly via rpm.
OS is RHEL 7

Any idea?

@MSchlick Haven’t tried RHEL7 but CentOS7 didn’t work for me either with OSD 3.0.0 as it requires NodeJS 18.

@jasonrojas Also OSD 2.19.x requires NodeJS 18.

Deprecating support for Amazon Linux 2 on OpenSearch Dashboards

Please note that OpenSearch Dashboards will deprecate support for Amazon Linux 2 as a continuous integration build image and supported operating system in an upcoming version, as Node.js 18 will reach end-of-life with support as of April 2025 (refer to this notice from nodejs.org) and newer version of Node.js LTS version (20+) will not support runtime on Amazon Linux 2. For a list of the compatible operating systems, visit here.

NodeJS 18 requires newer glibc libraries than CentOS 7 can provide.

1 Like

@pablo thanks for you support.
on the other hand, i found out, it’s possible to start OSD 3.0 manualy, when executing /usr/share/opensearch-dashboards/bin/opensearch-dashboards