Unable to start apm-server

Hello Team

Installed apm-server 7.2.0 on RHEL(Amazon EC2). Unable to start the service.

When I checked with apm-server test config the output is

Also, I don't find any log file inside log/apm-server/

I've also tried on installing ubuntu. the error remains same.

root@ip-10-0-0-64:/etc/apt/sources.list.d# apm-server test config
Exiting: error loading config file: config file ("/etc/apm-server/apm-server.yml") must be owned by the user identifier (uid=0) or root

https://www.elastic.co/guide/en/apm/server/current/setting-up-and-running.html#running-deb-rpm

You need to run the program as the apm-server user, like this:

sudo -u apm-server apm-server test config
1 Like

yea it worked. Thanks :slight_smile: