본문 바로가기

Dev/ElasticSearch

Kibana 실행시 A system error occurred: uv_os_gethostname returned ENOSYS[Feat. Win7 / Elastic Search 8.3.x / Kibana 8.3]

728x90
반응형

ElasticSearch를 8.3.2를 설치 후에 Rest Api를 사용해도 돼지만.. 

 

kibana를 통해서 작업을 하기 위해 실행을 했는데... 

 

win7의 경우 서비스가 종료되서 환경 설정도 바꿔준후 실행을 하는데 오류가...

D:\elastic_search\kibana-8.3.2\bin>kibana.bat
node:os:68
      throw new ERR_SYSTEM_ERROR(ctx);
      ^

SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_gethostname returned ENOSYS (function not implemented)
    at Object.<anonymous> (D:\elastic_search\kibana-8.3.2\node_modules\elastic-apm-http-client\index.js:39:21)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (D:\elastic_search\kibana-8.3.2\node_modules\elastic-apm-node\lib\config.js:6:28)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10) {
  code: 'ERR_SYSTEM_ERROR',
  info: {
    errno: -4054,
    code: 'ENOSYS',
    message: 'function not implemented',
    syscall: 'uv_os_gethostname'
  },
  errno: [Getter/Setter],
  syscall: [Getter/Setter]
}

 

이걸 해결하기 위해서 로그에 있는 elastic-apm-http-client 디렉토리에 있는 index.js를 수정해야 한다.

 

에러가 나는 요소

위의 부분에서 에러가 잡히는데 이건 node.js에서의 라이브러리 호출시의 문제로 오류가 발생.

반응형

위의 줄위에 

os.hostname = () => 'localhost';

const nodemailer = require('nodemailer');

위의 두줄을 추가하고 저장을 하면 된다.

그러면 문제 없이 키바나가 실행이 된다.

 

그럼 설정값을 넣고 실행하면 끝.

 

실행 후 화면

728x90
반응형