Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

While Setting up Ambari Server, getting the error: "exit code:3 ambari server not running"

avatar
Contributor
1 ACCEPTED SOLUTION

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
3 REPLIES 3

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
New Contributor

Hi Abhirup,

In order to solve this issue, please follow the below steps:-

1) Run your ambari-server setup in verbose and you will see where exactly this fails.

INFO: about to run command: /usr/bin/env service postgresql status

Running initdb: This may take upto a minute.

INFO: about to run command: /usr/bin/env service postgresql initdb

About to start PostgreSQL INFO: about to run command: /usr/bin/env service postgresql status

ERROR: Exiting with exit code 3. REASON: Unable to start PostgreSQL server. Exiting Now,

If you manually try and run the below command, you will get the exact cause of the issue.

[root@robin-lab-1 ~]# /usr/bin/env service postgresql initdb Initializing database: mkdir: cannot create directory `/var/lib/pgsql/data/pg_log': File exists [FAILED]

Solution: Go inside /var/lib/pgsql/, backup and remove the data folder and re-run the ambari-server setup.

avatar
Contributor

This solution worked for me. Thanks!