Kibana: Deprecation warning use os.tmpdir instead of os.tmpDir

Created on 3 Aug 2018  路  2Comments  路  Source: elastic/kibana

When running the intake job I see this warning message:

DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

Should we make the update to remove this message?

Core chore

Most helpful comment

This error causes plugin installation to fail.

In Kibana 6.2.2 the nodejs version is 6.12.2
In Kibana 6.4.2 the nodejs version is 8.11.4

The error is
Plugin installation was unsuccessful due to error "Command failed: /usr/share/kibana/node/bin/node /usr/share/kibana/src/cli --env.name=production --optimize.useBundleCache=false --server.autoListen=false --plugins.initialize=false --uiSettings.enabled=false (node:16) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

All 2 comments

This error causes plugin installation to fail.

In Kibana 6.2.2 the nodejs version is 6.12.2
In Kibana 6.4.2 the nodejs version is 8.11.4

The error is
Plugin installation was unsuccessful due to error "Command failed: /usr/share/kibana/node/bin/node /usr/share/kibana/src/cli --env.name=production --optimize.useBundleCache=false --server.autoListen=false --plugins.initialize=false --uiSettings.enabled=false (node:16) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

I am also not able to install plugins and facing the same issue for docker.elastic.co/kibana/kibana-oss:6.3.0 version:
Posting error below:

bash-4.2$ bin/kibana-plugin install https://github.com/wtakase/kibana-own-home/releases/download/v6.3.0/own_home-6.3.0.zip
Attempting to transfer from https://github.com/wtakase/kibana-own-home/releases/download/v6.3.0/own_home-6.3.0.zip
Transferring 3663538 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...



Plugin installation was unsuccessful due to error "Command failed: /usr/share/kibana/node/bin/node /usr/share/kibana/src/cli --env.name=production --optimize.useBundleCache=false --server.autoListen=false --plugins.initialize=false --uiSettings.enabled=false
(node:827) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

{"type":"log","@timestamp":"2019-05-09T12:31:57Z","tags":["warning","config","deprecation"],"pid":827,"message":"uiSettings.enabled is deprecated and is no longer used"}
{"type":"log","@timestamp":"2019-05-09T12:32:33Z","tags":["info","optimize"],"pid":827,"message":"Optimizing and caching bundles for logtrail, stateSessionStorageRedirect, status_page, timelion, analyze-api-ui-plugin, own_home and kibana. This may take a few minutes"}
Was this page helpful?
0 / 5 - 0 ratings