Exiting: Could not start registrar: Error loading state: open /filebeat/data/registry: permission denied

When running /filebeat --setup -e It exits with the next error:

2018-10-22T10:19:29.306+0200	ERROR	instance/beat.go:743	Exiting: Could not start registrar: Error 
loading state: open /filebeat/data/registry: permission denied
Exiting: Could not start registrar: Error loading state: open /filebeat/data/registry: permission denied

I am running filebeat 6.4.2-darwin-x86_64 on MacOS Mojave

The registry file must belong to the filebeat user. The /filebeat/data filter is owned by filebeat.

Which user do you use to run filebeat?

Please share the output of $ ls -la /filebeat/data (run in Terminal).

$ ls -la data
total 16
drwxr-x---   4 root             staff  128 Oct 24 09:54 .
drwxr-xr-x@ 16 sebastiaanspeck  staff  512 Oct 24 09:54 ..
-rw-------   1 root             staff   48 Oct 24 09:23 meta.json
-rw-------   1 root             staff    3 Oct 24 09:54 registry

The files are owned by root, but the directory is owned by sebastiaanspeck. When running filebeat setup with your user, you can not access the files. Fix users of directory and files to one user only. Use 'sudo' if you want to run filebeat as another user.

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