Problem udpating version 2.0.0p37.cre to 2.1.0p30.cre

Hello I have a problem with update from newest 2.0.0 to 2.1

omd -vvvvv update
Saving temporary filesystem contents…OK
Unmounting temporary filesystem…OK
Saving temporary filesystem contents…OK
Cleaning up tmp directory…OK

2023-07-26 12:46:18 - Updating site ‘***’ from version 2.0.0p37.cre to 2.1.0p30.cre…

  • Installed dir var/log/agent-receiver
  • Identical new etc/omd
  • Updated etc/init.d/pnp_gearman_worker
  • Installed file etc/init.d/agent-receiver
  • Updated etc/init.d/xinetd
  • Permissions 0755 → 0775 etc/init.d/mkeventd
  • Updated etc/init.d/redis
  • Updated etc/init.d/stunnel
  • Updated etc/apache/conf.d/omd.conf
  • Updated etc/apache/conf.d/security.conf
  • Updated etc/apache/conf.d/01_wsgi.conf
  • Updated etc/apache/conf.d/02_fcgid.conf
  • Updated etc/cron.d/cmk_discovery
  • Installed file etc/cron.d/cmk_cleanup_pdf_tmp_files
  • Installed file etc/logrotate.d/agent_bakery
  • Installed file etc/logrotate.d/agent-registration
  • Installed file etc/logrotate.d/agent-receiver
  • Installed link etc/rc.d/10-agent-receiver
  • Installed file etc/omd/allocated_ports
  • Updated etc/nagvis/apache.conf
  • Installed dir etc/stunnel/conf.d
  • Updated etc/stunnel/server.conf
  • Installed file etc/stunnel/conf.d/01-livestatus.conf
  • Updated etc/check_mk/apache.conf
  • Installed file etc/mk-livestatus/livestatus@.service
  • Installed file etc/mk-livestatus/livestatus.socket
  • Updated etc/mk-livestatus/nagios.cfg
  • Updated etc/nagios/conf.d/check_mk_templates.cfg
  • Updated etc/nagios/nagios.d/misc.cfg
  • Vanished etc/nagios/conf.d/jmx4perl_nagios.cfg
  • Vanished etc/jmx4perl/config/websphere/threads.cfg
  • Vanished etc/jmx4perl/config/websphere/http.cfg
  • Vanished etc/jmx4perl/config/websphere/jdbc.cfg
  • Vanished etc/jmx4perl/config/websphere/jms.cfg
  • Vanished etc/jmx4perl/config/websphere/appstate.cfg
  • Vanished etc/jmx4perl/config/websphere/jca.cfg
  • Vanished etc/jmx4perl/config/glassfish.cfg
  • Vanished etc/jmx4perl/config/threads.cfg
  • Vanished etc/jmx4perl/config/common.cfg
  • Vanished etc/jmx4perl/config/websphere.cfg
  • Vanished etc/jmx4perl/config/jboss.cfg
  • Vanished etc/jmx4perl/config/tomcat.cfg
  • Vanished etc/jmx4perl/config/jetty.cfg
  • Vanished etc/jmx4perl/config/weblogic.cfg
  • Vanished etc/jmx4perl/config/metrics.cfg
  • Vanished etc/jmx4perl/config/memory.cfg
  • Vanished etc/jmx4perl/config/jboss7.cfg
  • Vanished etc/jmx4perl/config/websphere
  • Vanished etc/jmx4perl/config
  • Vanished etc/jmx4perl
  • Vanished .j4p
    Calling hook: /omd/versions/2.1.0p30.cre/lib/omd/hooks/AGENT_RECEIVER default
    Calling hook: /omd/versions/2.1.0p30.cre/lib/omd/hooks/AGENT_RECEIVER_PORT default
    Traceback (most recent call last):
    File “/omd/versions/2.1.0p30.cre/bin/omd”, line 63, in
    omdlib.main.main()
    File “/omd/versions/2.1.0p30.cre/lib/python3/omdlib/main.py”, line 4685, in main
    command.handler(version_info, site, global_opts, args, command_options)
    File “/omd/versions/2.1.0p30.cre/lib/python3/omdlib/main.py”, line 2818, in main_update
    initialize_site_ca(site)
    File “/omd/versions/2.1.0p30.cre/lib/python3/omdlib/main.py”, line 1307, in initialize_site_ca
    root_ca=RootCA.load_or_create(root_cert_path(ca_path), f"Site ‘{site.name}’ local CA"),
    File “/omd/versions/2.1.0p30.cre/lib/python3/cmk/utils/certs.py”, line 52, in load_or_create
    return cls.load(path)
    File “/omd/versions/2.1.0p30.cre/lib/python3/cmk/utils/certs.py”, line 47, in load
    return cls(*load_cert_and_private_key(path))
    File “/omd/versions/2.1.0p30.cre/lib/python3/cmk/utils/certs.py”, line 101, in load_cert_and_private_key
    load_pem_private_key(
    File “/omd/versions/2.1.0p30.cre/lib/python3.9/site-packages/cryptography/hazmat/primitives/serialization/base.py”, line 18, in load_pem_private_key
    return backend.load_pem_private_key(data, password)
    File “/omd/versions/2.1.0p30.cre/lib/python3.9/site-packages/cryptography/hazmat/backends/openssl/backend.py”, line 1244, in load_pem_private_key
    return self._load_key(
    File “/omd/versions/2.1.0p30.cre/lib/python3.9/site-packages/cryptography/hazmat/backends/openssl/backend.py”, line 1475, in _load_key
    self._handle_key_loading_error()
    File “/omd/versions/2.1.0p30.cre/lib/python3.9/site-packages/cryptography/hazmat/backends/openssl/backend.py”, line 1517, in _handle_key_loading_error
    raise ValueError(
    ValueError: Could not deserialize key data. The data may be in an incorrect format or it may be encrypted with an unsupported algorithm.

solved

the issue was not proper file /omd/sites/XXX/etc/ssl/ca.pem
what is wired it was changed in 2019 and since then many updates went without issue

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.