I did a fresh install on a new CentOS 7.5 DigitalOcean Droplet. Used the automatic install script and installation was finished successfull. I then went on to the webinterface and entered the details for the admin account. When I clicked on proceed the browser was stuck for more than an hour waiting for the server. I gave up and opened a new browser session. Log server is now just stuck on waiting for database startup.
It seems to me elasticsearch is starting as it is supposed to:
cat /etc/hosts
# Your system has configured 'manage_etc_hosts' as True.
# As a result, if you wish for changes to this file to persist
# then you will need to either
# a.) make changes to the master file in /etc/cloud/templates/hosts.redhat.tmpl
# b.) change or remove the value of 'manage_etc_hosts' in
# /etc/cloud/cloud.cfg or cloud-config from user-data
#
# The following lines are desirable for IPv4 capable hosts
127.0.0.1 nagios-syslog-server-2gb nagios-syslog-server-2gb
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost4.localdomain4 localhost4
# The following lines are desirable for IPv6 capable hosts
::1 nagios-syslog-server-2gb nagios-syslog-server-2gb
::1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
I did try another fresh install. It´s a 2GB 50GB SSD DigitalOcean CentOS 7.5. Only thing I have done is to run yum update and then the automatic install script. This server was working for about an hour or so before the exact same issue occured. Restarting the apache and elasticsearch service it runs for a couple of minutes before the "waiting for database" problem happens again.
Thanks for helping out. I only see INFO and DEBUG information in /var/log/elasticsearch/*.log. Nothing flagged as ERROR or WARNING.
I'm sending you a PM with the system profile.
I see the PM I've sent is stuck in the outbox and not being moved to the sent folder. I'm new to this forum and would have expected the message to end up in the sent folder. Please report if you have not received the message.
We received it. The elasticsearch process is crashing and it looks like it was down at the time the profile was taken so some details are missing, but I would suspect there may be a problem with the size of the indices and the available memory. Elasticsearch can only use half of the total system memory and in this case that would only be about 1gig. I would try increasing the memory to 4 or 8gig if possible.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Thanks for the suggestion. I have resized the VM to 4GB RAM and 2 CPU´s. Hopefully this resolves our issues.
I went with the 2GB droplet since it was within the minimum requirements and we currently only have 1 host sending syslog to this server for evaluation purposes.
Yeah, it normally doesn't take long for an install to quickly outgrow the 2gig minimum but it is a bit odd with just the single host. Keep an eye on it though and feel free to send us a fresh profile if needed.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.