Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kibana refuses to start if metrics collector can't access sysfs #78191

Closed
weltenwort opened this issue Sep 22, 2020 · 2 comments · Fixed by #78213
Closed

Kibana refuses to start if metrics collector can't access sysfs #78191

weltenwort opened this issue Sep 22, 2020 · 2 comments · Fixed by #78213
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@weltenwort
Copy link
Member

Kibana version: master as of 6d819b7

Elasticsearch version: 8.0.0-SNAPSHOT

Server OS version: Linux 5.8.10-arch1-1 #1 SMP PREEMPT Thu, 17 Sep 2020 18:01:06 +0000 x86_64 GNU/Linux (Arch Linux)

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

Describe the bug:

Kibana refuses to start if it's not allowed to access /sys/fs/cgroup/cpuacct/cpuacct.usage. It terminates after logging the following:

  log   [00:00:00.000] [fatal][root] { [Error: EACCES: permission denied, open '/sys/fs/cgroup/cpuacct/cpuacct.usage']
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/sys/fs/cgroup/cpuacct/cpuacct.usage' }

Steps to reproduce:

  1. Set up a namespace in which the user doesn't have read permissions on /sys/fs.
  2. Start Kibana in development mode via yarn start within that namespace as the restricted user.
  3. Observe that it terminates after printing the log message shown above.

Expected behavior:

It starts, possibly while logging a warning (as it did a while ago).

Any additional context:

This is possibly related to #76730.

@weltenwort weltenwort added bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Sep 22, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@weltenwort
Copy link
Member Author

Thanks for the quick fix ❤️ I verified that it now logs the error but continues to start:

  log   [00:00:00.000] [error][cgroup][metrics] cgroup metrics could not be read due to error: [Error: EACCES: permission denied, open '/sys/fs/cgroup/cpuacct/cpuacct.usage']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants