#Problem updating or reinstalling

1 messages · Page 1 of 1 (latest)

urban crow
#

I normally use this command to update our Netdata installation:
wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && sh /tmp/netdata-kickstart.sh --stable-channel --disable-telemetry --no-updates

Also tried reinstalling with --reinstall.

It will always fail on me when it comes to the fluent-bit part.
The full log can be seen here: https://pastebin.com/raw/tWh9PZKp

What can I do to make it update correctly?

fossil sandal
#

Hi, @urban crow. Compiling from source on Ubuntu 18 is no longer possible. You need to install static build (it has no systemd-journal plugin). And you will need to uninstall/remove existing Netdata installation first which can be tricky if you don't want to lose collected metrics/reclaim nodes.

urban crow
#

@fossil sandal Oh no. So I can't update without removing the current installment? I can't just overwrite?
It's more that I'm not keen on risking loosing the data and the configurations.

fossil sandal
#

The issue is that the static build uses different install prefix - /opt/netdata/..... There is definitely a way to preserve data (just files in /var/cache/netdata/) but I can't provide a step-by-step instruction how to do it, unfortunately. I will ask about it.

urban crow
#

I see the issue. But if data wasn't super important, we could just ignore that part and the configs can be copied from the old instance to the new, I suppose?

fossil sandal
#

Yes, in general it is just:

  • backup needed files (move to someDir)
  • remove old installation
  • install new
  • stop netdata; move backup files to the new dirs
  • start netdata
urban crow
#

Thank you for the help! This has annoyed me for a few weeks now and it's just because it's old software, as always 😄

fossil sandal
#

I asked internally the Agent team about a guide, if we don't have we need to document it at least.