KeyError 'LIVESTATUS_TCP_TLS' after upgrading

Hi everyone,

has anyone experienced the following phenomena, or give me a hint of what could be the cause, or any suggestion to solve this. I really appreciate your help!

We are running Check_MK Enterprise 1.4.0p34.cee on Ubuntu 18.0.4 LTS and plan to upgrade Check_MK and move to a new server 20.0.4 LTS. The first step is to update 1.4.0 to
check-mk-enterprise-1.6.0p28_0.bionic_amd64.deb

  • check-mk-enterprise-1.6.0p28_0.bionic_amd64.deb installation ok
  • omd update – suprisingly fast (see below)
  • omd start – KeyError: ‘LIVESTATUS_TCP_TLS’

Note: if I create a new site using the version 1.6.0p28.cee everything is fine.

Thanks in advance
Phan

PS. console messages


Updating site 'cgkmon' from version 1.4.0p34.cee to 1.6.0p28.cee...

 * Updated        .profile
 * Updated        .bashrc
 * Installed dir  etc/stunnel
 * Installed dir  etc/bash_completion.d
 * Installed dir  etc/rrdcached.d
 * Updated        etc/rrdcached.conf
 * Updated        etc/nagios/conf.d/check_mk_templates.cfg
 * Updated        etc/nagios/nagios.d/logging.cfg
 * Updated        etc/nagios/nagios.d/freshness.cfg
 * Installed link etc/rc.d/85-stunnel
 * Installed link etc/rc.d/85-dcd
 * Updated        etc/apache/apache.conf
 * Installed file etc/apache/conf.d/01_wsgi.conf
 * Updated        etc/apache/conf.d/omd.conf
 * Installed file etc/apache/conf.d/security.conf
 * Installed file etc/cron.d/cmk_cleanup_crashed_checks
 * Installed file etc/cron.d/cmk_cleanup_piggyback
 * Updated        etc/init.d/nagios
 * Updated        etc/init.d/liveproxyd
 * Updated        etc/init.d/crontab
 * Updated        etc/init.d/apache
 * Updated        etc/init.d/rrdcached
 * Updated        etc/init.d/cmc
 * Installed file etc/init.d/stunnel
 * Installed file etc/init.d/dcd
 * Updated        etc/init.d/mknotifyd
 * Updated        etc/init.d/mkeventd
 * Installed file etc/logrotate.d/stunnel
 * Installed file etc/logrotate.d/dcd
 * Installed file etc/stunnel/server.conf
 * Updated        etc/check_mk/apache.conf
 * Updated        etc/nagvis/nagvis.ini.php
 * Updated        etc/nagvis/conf.d/omd.ini.php
 * Updated        etc/pnp4nagios/npcd.cfg
 * Updated        etc/mk-livestatus/xinetd.conf
 * Updated        etc/init-hooks.d/README
 * Updated        etc/dokuwiki/dokuwiki.php
 * Updated        etc/dokuwiki/mime.conf
 * Updated        etc/dokuwiki/local.php
 * Installed dir  local/share/check_mk/locale
 * Installed dir  local/share/check_mk/web/htdocs/themes
 * Installed dir  var/check_mk/reports
 * Installed dir  var/check_mk/reports/archive
 * Installed link var/dokuwiki/lib/plugins/cli.php
 * Vanished       var/icinga
 * Vanished       local/share/icinga/htdocs
 * Vanished       local/share/icinga
 * Vanished       local/lib/icinga
 * Vanished       etc/icinga/icinga.d/eventhandler.cfg
 * Vanished       etc/icinga/icinga.d/dependency.cfg
 * Vanished       etc/icinga/icinga.d/obsess.cfg
 * Vanished       etc/icinga/icinga.d/mk-livestatus.cfg
 * Vanished       etc/icinga/icinga.d/misc.cfg
 * Vanished       etc/icinga/icinga.d/retention.cfg
 * Vanished       etc/icinga/icinga.d/logging.cfg
 * Vanished       etc/icinga/icinga.d/timing.cfg
 * Vanished       etc/icinga/icinga.d/tuning.cfg
 * Vanished       etc/icinga/icinga.d/omd.cfg
 * Vanished       etc/icinga/icinga.d/freshness.cfg
 * Vanished       etc/icinga/icinga.d/flapping.cfg
 * Vanished       etc/icinga/ssi/README
 * Vanished       etc/icinga/ssi/status-header.ssi
 * Vanished       etc/icinga/ssi/extinfo-header.ssi
 * Vanished       etc/icinga/cgiauth.cfg
 * Vanished       etc/icinga/cgi.cfg
 * Vanished       etc/icinga/apache.conf
 * Vanished       etc/icinga/icinga.cfg
 * Vanished       etc/icinga/config.inc.php
 * Vanished       etc/icinga/idomod.cfg-sample
 * Vanished       etc/icinga/resource.cfg
 * Vanished       etc/icinga/ssi
 * Vanished       etc/icinga/icinga.d
 * Vanished       etc/icinga/conf.d
 * Vanished       etc/init.d/icinga
 * Vanished       etc/apache/conf.d/01_python.conf
 * Vanished       etc/rc.d/80-icinga
 * Vanished       etc/icinga
Finished update.

root@nagios3:/tmp# omd start cgkmon
Creating temporary filesystem /omd/sites/cgkmon/tmp...OK
Traceback (most recent call last):
  File "/usr/bin/omd", line 65, in <module>
    omdlib.main.main()
  File "/omd/versions/1.6.0p27.cee/lib/python/omdlib/main.py", line 4776, in main
    command_function(site, args, command_options)
  File "/omd/versions/1.6.0p27.cee/lib/python/omdlib/main.py", line 4442, in <lambda>
    lambda site, args, opts: main_init_action(site, "start", args, opts), [
  File "/omd/versions/1.6.0p27.cee/lib/python/omdlib/main.py", line 3443, in main_init_action
    exit_status = init_action(site, command, args, options)
  File "/omd/versions/1.6.0p27.cee/lib/python/omdlib/main.py", line 2329, in init_action
    prepare_and_populate_tmpfs(site)
  File "/omd/versions/1.6.0p27.cee/lib/python/omdlib/main.py", line 1612, in prepare_and_populate_tmpfs
    _create_livestatus_tcp_socket_link(site)
  File "/omd/versions/1.6.0p27.cee/lib/python/omdlib/main.py", line 3373, in _create_livestatus_tcp_socket_link
    target = "live-tls" if site.conf["LIVESTATUS_TCP_TLS"] == "on" else "live"
KeyError: 'LIVESTATUS_TCP_TLS'
root@nagios3:/tmp#

Hi,
you should update from 1.4 to 1.5 and then to 1.6.

Karl

Thank you kdeutsch, I think I’ve done that (check-mk-enterprise-1.5.0p20_0.bionic_amd64.deb), same result. But I’ll give another try

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.