Web Application not running

I tried installing graylog using vagrant on a test sever and when I request the web interface I get the permanent error “graylog is restarting”. I tried to check the services as a start and it shows the following:

run: elasticsearch: (pid 7907) 9s; run: log: (pid 1155) 906s
run: etcd: (pid 7930) 8s; run: log: (pid 1168) 906s
down: graylog-server: 0s, normally up, want up; run: log: (pid 1153) 906s
run: mongodb: (pid 7957) 7s; run: log: (pid 1156) 906s
run: nginx: (pid 7961) 7s; run: log: (pid 1167) 906s

So basically my graylog-server is down, I tried restart and reconfigure, but still the server is down. I hope someone knows what the problem might be.

Cheers,

How exactly did you install Graylog (or rather the OVA)?
Which commands did you execute and what was their output?
What’s in the logs of Graylog? See http://docs.graylog.org/en/2.2/pages/configuration/file_location.html#omnibus-package

I installed it this way:

#Vagrantfile
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  # Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "ubuntu/trusty64"
  config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"

  config.vm.define "graylog" do |graylog|
   graylog.vm.provision "shell", path: "provision1.sh"
   graylog.vm.network :forwarded_port, guest: 80, host: 8888
   graylog.vm.network :public_network, type: :dhcp
 end

  config.vm.define "nginx" do |nginx|
   nginx.vm.provision "shell", path: "provision.sh"
   nginx.vm.network :forwarded_port, guest: 80, host: 3000, id: "nginx"
   nginx.vm.network :public_network, type: :dhcp
  end

end

and the provision1.sh as:

wget https://raw.githubusercontent.com/Graylog2/graylog2-images/2.2/vagrant/Vagrantfile

when I ssh my graylog it works, but when trying to surf graylog through the web interface I get the following:

Graylog is restarting…

There is no Graylog web application running at the moment, please reload this page in a minute. It can take up to 1-2 minutes until all services are running properly. In case this is a permanent error, check the following:

Check if all services are running - sudo graylog-ctl status shows an overview of all running services
Check for errors in log files - Relevant services write log files here: /var/log/graylog/*/current
Ask for help - If there is no way to fix the issue ask for help: https://github.com/Graylog2/graylog2-images/issues

And what’s in the logs?

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