Skip to content

Unable to create keystore #77392

@Diazole

Description

@Diazole

Kibana version: 7.9.0

Elasticsearch version: 7.9.0

Server OS version: CentOS 7

Original install method (e.g. download page, yum, from source, etc.): yum

Describe the bug: Unable to create keystore via bin/kibana-keystore create due to a permissions issue.

FATAL CLI ERROR Error: EACCES: permission denied, open '/etc/kibana/kibana.keystore'
    at Object.openSync (fs.js:443:3)
    at writeFileSync (fs.js:1194:35)
    at Keystore.save (/usr/share/kibana/src/legacy/server/keystore/keystore.js:65:27)
    at create (/usr/share/kibana/src/cli_keystore/create.js:45:12)
    at Command.<anonymous> (/usr/share/kibana/src/cli/command.js:113:20)
    at Command.listener (/usr/share/kibana/node_modules/commander/index.js:291:8)
    at Command.emit (events.js:198:13)
    at Command.parseArgs (/usr/share/kibana/node_modules/commander/index.js:672:12)
    at Command.parse (/usr/share/kibana/node_modules/commander/index.js:459:21)
    at Object.<anonymous> (/usr/share/kibana/src/cli_keystore/cli_keystore.js:69:9)

It looks like the commit that caused this is #66614 which set /etc/kibana to 2750.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions