KIBANA 8.12.0 to 8.12.1 error

Hi,

I upgrade my stack 7.17.16 to 7.17.18 and my stack 8.12.0 to 8.12.1

Elasticsearch, logstash, filebeat > ok
Kibana start but when i try access i have same error

OS : debian 11 (install with deb package)

My configuration

---
server:
  port: 5601
  host: qtkibana8le001.mydomain
  name: KIBANA_elastic8
  publicBaseUrl: https://qtkibana8le001.mydomain:5601
  ssl:
    enabled: true
    certificate: "/etc/kibana/kibana-server.crt"
    key: "/etc/kibana/kibana-server.key"
logging:
  root:
    level: all
    appenders:
    - default
    - file
  appenders:
    file:
      type: file
      fileName: "/var/log/kibana/kibana.log"
      layout:
        type: json
  loggers:
  - name: plugins.fleet
    level: 'off'
monitoring:
  cluster_alerts:
    email_notifications:
      email_address: kibana-qtkibana8le001-noreply@xxx.fr
telemetry:
  optIn: false
  allowChangingOptInStatus: true
xpack:
  fleet:
    agents:
      enabled: false
  reporting:
    roles:
      enabled: false
  screenshotting:
    browser.chromium.disableSandbox: true
  security:
    session:
      idleTimeout: 20m
      lifespan: 1d
elasticsearch:
  hosts:
  - http://qtidxes8li001.mydomain:9200
  - http://qtidxes8li002.mydomain:9200
  - http://qtidxes8li003.mydomain:9200
  username: kibana_system

My Error

[2024-02-08 13:58:24] [info] Error: EACCES: permission denied, stat '/nonexistent/.config/puppeteer'
[2024-02-08 13:58:24] [info]     at Object.statSync (node:fs:1690:3)
[2024-02-08 13:58:24] [info]     at isDirectorySync (/usr/share/kibana/node_modules/cosmiconfig/dist/util.js:88:35)
[2024-02-08 13:58:24] [info]     at search (/usr/share/kibana/node_modules/cosmiconfig/dist/ExplorerSync.js:47:47)
[2024-02-08 13:58:24] [info]     at emplace (/usr/share/kibana/node_modules/cosmiconfig/dist/util.js:36:20)
[2024-02-08 13:58:24] [info]     at search (/usr/share/kibana/node_modules/cosmiconfig/dist/ExplorerSync.js:71:50)
[2024-02-08 13:58:24] [info]     at emplace (/usr/share/kibana/node_modules/cosmiconfig/dist/util.js:36:20)
[2024-02-08 13:58:24] [info]     at search (/usr/share/kibana/node_modules/cosmiconfig/dist/ExplorerSync.js:71:50)
[2024-02-08 13:58:24] [info]     at emplace (/usr/share/kibana/node_modules/cosmiconfig/dist/util.js:36:20)
[2024-02-08 13:58:24] [info]     at search (/usr/share/kibana/node_modules/cosmiconfig/dist/ExplorerSync.js:71:50)
[2024-02-08 13:58:24] [info]     at emplace (/usr/share/kibana/node_modules/cosmiconfig/dist/util.js:36:20)
[2024-02-08 13:58:24] [info]     at search (/usr/share/kibana/node_modules/cosmiconfig/dist/ExplorerSync.js:71:50)
[2024-02-08 13:58:24] [info]     at emplace (/usr/share/kibana/node_modules/cosmiconfig/dist/util.js:36:20)
[2024-02-08 13:58:24] [info]     at ExplorerSync.search (/usr/share/kibana/node_modules/cosmiconfig/dist/ExplorerSync.js:78:42)
[2024-02-08 13:58:24] [info]     at getConfiguration (/usr/share/kibana/node_modules/puppeteer/lib/cjs/puppeteer/getConfiguration.js:30:8)
[2024-02-08 13:58:24] [info]     at Object.<anonymous> (/usr/share/kibana/node_modules/puppeteer/lib/cjs/puppeteer/puppeteer.js:26:66)
[2024-02-08 13:58:24] [info]     at Module._compile (node:internal/modules/cjs/loader:1256:14)
[2024-02-08 13:58:24] [info]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
[2024-02-08 13:58:24] [info]     at Module.load (node:internal/modules/cjs/loader:1119:32)
[2024-02-08 13:58:24] [info]     at Function.Module._load (node:internal/modules/cjs/loader:960:12)
[2024-02-08 13:58:24] [info]     at Module.require (node:internal/modules/cjs/loader:1143:19)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at require (node:internal/modules/cjs/helpers:119:18)
[2024-02-08 13:58:24] [info]     at Object.<anonymous> (/usr/share/kibana/node_modules/@kbn/screenshotting-plugin/server/browsers/chromium/driver.js:12:18)
[2024-02-08 13:58:24] [info]     at Module._compile (node:internal/modules/cjs/loader:1256:14)
[2024-02-08 13:58:24] [info]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
[2024-02-08 13:58:24] [info]     at Module.load (node:internal/modules/cjs/loader:1119:32)
[2024-02-08 13:58:24] [info]     at Function.Module._load (node:internal/modules/cjs/loader:960:12)
[2024-02-08 13:58:24] [info]     at Module.require (node:internal/modules/cjs/loader:1143:19)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at require (node:internal/modules/cjs/helpers:119:18)
[2024-02-08 13:58:24] [info]     at Object.<anonymous> (/usr/share/kibana/node_modules/@kbn/screenshotting-plugin/server/browsers/chromium/index.js:32:15)
[2024-02-08 13:58:24] [info]     at Module._compile (node:internal/modules/cjs/loader:1256:14)
[2024-02-08 13:58:24] [info]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
[2024-02-08 13:58:24] [info]     at Module.load (node:internal/modules/cjs/loader:1119:32)
[2024-02-08 13:58:24] [info]     at Function.Module._load (node:internal/modules/cjs/loader:960:12)
[2024-02-08 13:58:24] [info]     at Module.require (node:internal/modules/cjs/loader:1143:19)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)
[2024-02-08 13:58:24] [info]     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:188:39)

If i modify service

[Service]
Type=simple
#User=kibana
#Group=kibana
PrivateTmp=true
 
Environment=KBN_HOME=/usr/share/kibana
Environment=KBN_PATH_CONF=/etc/kibana
Environment=RESTART_ON_UPGRADE="true"
 
ExecStart=/usr/share/kibana/bin/kibana --allow-root
#ExecStart=/usr/share/kibana/bin/kibana

I don't have problem with root user.

I try to change owner with chown -R kibana:kibana /usr/share/kibana /var/lib/kibana, same error EACCES: permission denied, stat '/nonexistent/.config/puppeteer'.
I don't find a file/directory '.config'.

Finally, i find a solution (when i read strace output)

I had a file /usr/share/kibana/.puppeteerrc.cjs with this content

/**
 * Source https://pptr.dev/guides/configuration
 */

const {join} = require('path');

/**
 * @type {import("puppeteer").Configuration}
 */
module.exports = {
  // Changes the cache location for Puppeteer.
  cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
};
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.