Graylog OVA 2.2.2 to 2.3 upgrade fails

I tried upgrading from 2.2.2 to 2.3 using the instructions provided here: http://docs.graylog.org/en/2.3/pages/configuration/graylog_ctl.html#upgrade-graylog-omnibus

After running:
sudo dpkg -G -i graylog_latest.deb

I get:
dpkg: regarding graylog_latest.deb containing graylog:
_ graylog conflicts with graylog-server_
_ graylog-server (version 2.1.2-1) is present and installed._

dpkg: error processing archive graylog_latest.deb (–install):
_ conflicting packages - not installing graylog_
Errors were encountered while processing:
_ graylog_latest.deb_

How can I resolve this, when looking under Nodes it states: 2.2.2+691b4b7, codename Stiegl.

How did you install Graylog in the first place?

The omnibus package is only to upgrade existing omnibus installations, such as the OVA or the Amazon AMI.

graylog-server looks like you’ve installed Graylog from the official operating system packages: http://docs.graylog.org/en/2.3/pages/installation/operating_system_packages.html

Downloaded the OVA, probably version 2.1, which was then upgraded to 2.2.

Did you try to install the graylog-server package after adding the official DEB repository before?

The only thing that was performed were these steps:

$ wget https://packages.graylog2.org/releases/graylog-omnibus/ubuntu/graylog_latest.deb

$ sudo graylog-ctl stop

$ sudo dpkg -G -i graylog_latest.deb

$ sudo graylog-ctl reconfigure

$ sudo reboot

Be it upgrading from 2.1 to 2.1.x or to 2.2. I now want to perform the same steps to get up to 2.3.

Could you please point me in the correct direction as far as upgrading, perhaps some documentation I might have missed.

Someone installed graylog-server on that virtual machine. You need to uninstall (or better purge) it first before installing the Graylog omnibus package.

Thank you, I uninstalled it using:

sudo apt-get --purge remove graylog-server

When trying to upgrade to 2.3 I now get:

Running handlers:
[2017-08-07T12:31:40+02:00] ERROR: Running exception handlers
Running handlers complete
[2017-08-07T12:31:40+02:00] ERROR: Exception handlers complete
Chef Client failed. 15 resources updated in 01 minutes 31 seconds
[2017-08-07T12:31:40+02:00] FATAL: Stacktrace dumped to /opt/graylog/embedded/cookbooks/cache/chef-stacktrace.out
[2017-08-07T12:31:40+02:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-08-07T12:31:40+02:00] ERROR: ruby_block[add node to server list] (graylog::graylog-server line 84) had an error: Errno::ECONNREFUSED: Connection refused - connect(2) for “127.0.0.1” port 4001
[2017-08-07T12:31:40+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

The contents of the stacktrace file is provided here: https://pastebin.com/JQLMxr5T

Can anyone help with this issue, should I perhaps wait for a newer release?

I had the exact same issue with the upgrade to 2.3 - I uninstalled graylog-server (without the purge option) and the upgrade ran as expected.

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