Offline Installation of Netdata

Hi,

We were using netdata agent in our environment with following version.

netdata -v

netdata v1.18.1

But we wanted to install new version of netdata in order to test it.

We have followed instructions from the offical documents for offline installation of netdata.

We have first prepared files with following command and then transferred them to the offline nodes from our local machines.
wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --prepare-offline-install-source ./netdata-offline

And then basically we have used “install.sh” script as it is described.

Installation is completed but installation is done to the “/opt” directory instead of “/etc” directory.
That’s why netdata commands do not work. We believe installation is not healthy in this way.

Previously, we were using “–local-files” option with kickstart.sh script and we were specifying netdata tar ball, checksum file, go.d plugin tarball and config files with netdata 1.18 version.
But “–local-files” option does not work with the current kickstart.sh/netdata_installar.sh for netdata 1.38 version.
Do you have any comments on this case ? How can we specify specific tarbal of specific netdata version without “–local-files” option?

Thank you in advance all.

Hi @kubilayodine

What distribution are you using? I’m guessing kickstart decided that a static install (what you get in /opt) is the best for this case. Installation is ok using this way in fact, nothing being “less” than an install on system directories.

Hi Manolis,

Can we specify installation path during the offline install ?
For instance, we want to try specifing installation path to “/etc/netdata”.

Hi @kubilayodine

We will have a look about the –local-files and offline installation for 1.38.1, not sure yet what’s going on there.

The static install that you got now though, can only be installed on /opt/.

Hi,

It gives following error when I try to use “–local-files” option with current kickstart.sh.

[root@compute08 netdata_offline]# bash kickstart.sh --local-files /tmp/netdata_offline/netdata-v1.38.1.tar.gz /tmp/netdata_offline/sha256sums.txt /tmp/netdata_offline/go.d.plugin-v0.50.0.linux-amd64.tar.gz /tmp/netdata_offline/config.tar.gz /tmp/netdata_offline/install-required-packages.sh --dont-wait
kickstart.sh: line 34: cd: kickstart.sh: Not a directory

ABORTED Unrecognized option ‘–local-files’. If you intended to pass this option to the installer code, please use either --local-build-options or --static-install-options to specify it instead.

For community support, you can connect with us on:

@kubilayodine

following up on this thread, let me clarify the followings.

  1. We support an offline installation with the --prepare-offline-install-source [OUTPUT_FOLDER] option (download the latest kickstart script into the guest machine)

  2. This gives you an archive with all of our static builds (for multiple supported architectures) for a specific release channel inside the [OUTPUT_FOLDER]

       ls -la temp3/
       total 201376
       drwxr-xr-x 1 tkatsoulas tkatsoulas      314 Mar  6 15:20 .
       drwxr-xr-x 1 tkatsoulas tkatsoulas       20 Mar  6 15:19 ..
       -rw-r--r-- 1 tkatsoulas tkatsoulas        7 Mar  6 15:20 channel
       -rwxr-xr-x 1 tkatsoulas tkatsoulas      120 Mar  6 15:20 install.sh
       -rwxr-xr-x 1 tkatsoulas tkatsoulas    84198 Mar  6 15:20 kickstart.sh
       -rw-r--r-- 1 tkatsoulas tkatsoulas 47843559 Mar  6 15:20 netdata-aarch64-latest.gz.run
       -rw-r--r-- 1 tkatsoulas tkatsoulas 51496935 Mar  6 15:19 netdata-armv7l-latest.gz.run
       -rw-r--r-- 1 tkatsoulas tkatsoulas 47421436 Mar  6 15:20 netdata-ppc64le-latest.gz.run
       -rw-r--r-- 1 tkatsoulas tkatsoulas 59338898 Mar  6 15:19 netdata-x86_64-latest.gz.run
       -rw-r--r-- 1 tkatsoulas tkatsoulas     1233 Mar  6 15:20 sha256sums.txt
    
  3. This option mutates any other options (mostly the install options) except of the --stable-channel, --nightly-channel ( this is the default). You can double down the channel for the artifacts you downloaded by checking the file [OUTPUT_FOLDER]/channel

As far as this.

bash kickstart.sh --local-files /tmp/netdata_offline/netdata-v1.38.1.tar.gz /tmp/netdata_offline/sha256sums.txt /tmp/netdata_offline/go.d.plugin-v0.50.0.linux-amd64.tar.gz /tmp/netdata_offline/config.tar.gz /tmp/netdata_offline/install-required-packages.sh --dont-wait
kickstart.sh: line 34: cd: kickstart.sh: Not a directory

ABORTED Unrecognized option ‘–local-files’. If you intended to pass this option to the installer code, please use either --local-build-options or --static-install-options to specify it instead.

If you offload the offline installation archive into the target (offline) node. You can either use the install.sh or the kickstart with the --offline-install-source [FOLDER_OF_THE_ARCHIVE]. Preferinstall.sh which actually calls the kickstart (already present) with the --offline-install-source option (this is the new option, instead of the --local-files you used).

Hope I helped.