Metricbeat setup --dashboards fails: error loading config file

λ docker exec -it docker_metricbeat_1 sh
sh-4.2# metricbeat setup --dashboards
Exiting: error loading config file: config file ("metricbeat.yml") can only be writable by the owner but the permissions are "-rwxrwxrwx" (to fix the permissions use: 'chmod go-w /usr/share/metricbeat/metricbeat.yml')

metricbeat.yml is mounted as read-only in docker-compose:

    volumes:
      - ./config/metricbeat/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro

Why is setup complaining metricbeat.yml is read-only?
Setup shouldn't write to this file, so it should ignore write access.

Github issue: https://github.com/elastic/beats/issues/23657

With metricbeat 7.10.1, the error is:
Exiting: error loading config file: config file ("metricbeat.yml") must be owned by the user identifier (uid=0) or root

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