[SOLVED] Error during upgrade from 2.2.0 to 2.3.0 with docker

CMK version: 2.2.0p45.cre to 2.3.0p35.cre
OS version: Ubuntu docker

I’m trying to upgrade 2.2 to 2.3 and I get error below. Any help appreicated.

What I’ve done is:
Deactivate and remove all plugins that was in 2.2

Error message:

2025-08-14T13:59:56.547240978Z Cleaning up tmp directory...OK
2025-08-14T13:59:56.547273809Z 2025-08-14 13:59:55 - Updating site 'cmk_site' from version 2.2.0p45.cre to 2.3.0p35.cre...
2025-08-14T13:59:56.547283655Z
2025-08-14T13:59:56.547291621Z  * Updated        etc/check_mk/apache.conf
2025-08-14T13:59:56.547299676Z  * Updated        etc/mk-livestatus/nagios.cfg
2025-08-14T13:59:56.547327820Z  * Updated        etc/ssl/openssl.cnf
2025-08-14T13:59:56.547335788Z  * Updated        etc/ssl/openssl.cnf.dist
2025-08-14T13:59:56.547343371Z  * Updated        etc/ssl/misc/CA.pl
2025-08-14T13:59:56.547351075Z  * Updated        etc/ssl/misc/tsget.pl
2025-08-14T13:59:56.547358598Z  * Identical      etc/ssl/misc/tsget
2025-08-14T13:59:56.547365919Z  * Updated        etc/nagios/conf.d/check_mk_templates.cfg
2025-08-14T13:59:56.547373216Z  * Updated        etc/apache/apache.conf
2025-08-14T13:59:56.547380428Z  * Updated        etc/init.d/agent-receiver
2025-08-14T13:59:56.547388474Z  * Updated        etc/init.d/apache
2025-08-14T13:59:56.547395914Z  * Updated        etc/nagvis/apache.conf
2025-08-14T13:59:56.547403108Z  * Installed file etc/logrotate.d/security
2025-08-14T13:59:56.547410402Z  * Installed file etc/logrotate.d/audit
2025-08-14T13:59:56.547417862Z  * Updated        etc/logrotate.d/update
2025-08-14T13:59:56.547425362Z  * Installed dir  local/lib/python3/cmk_addons
2025-08-14T13:59:56.547432678Z  * Installed dir  local/lib/python3/cmk_addons/plugins
2025-08-14T13:59:56.547458159Z  * Installed dir  local/lib/python3/cmk/plugins
2025-08-14T13:59:56.547465943Z  * Vanished       etc/cron.d/cmk_discovery
2025-08-14T13:59:59.528552461Z Preparing tmp directory /omd/sites/cmk_site/tmp...
2025-08-14T13:59:59.528618540Z -| ATTENTION
2025-08-14T13:59:59.528631729Z -|   Some steps may take a long time depending on your installation.
2025-08-14T13:59:59.528642755Z -|   Please be patient.
2025-08-14T13:59:59.528652598Z -|
2025-08-14T13:59:59.550353713Z -| Cleanup precompiled host and folder files
2025-08-14T13:59:59.551680435Z -| Verifying Checkmk configuration...
2025-08-14T14:00:01.597866015Z -|  01/07 Legacy check plug-ins...
2025-08-14T14:00:01.640214176Z -|  02/07 Rulesets...
2025-08-14T14:00:04.166926806Z -| Traceback (most recent call last):
2025-08-14T14:00:04.167022596Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/update_config/main.py", line 101, in main_check_config
2025-08-14T14:00:04.167066285Z -|     check_config(logger, conflict)
2025-08-14T14:00:04.167078589Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/update_config/main.py", line 243, in check_config
2025-08-14T14:00:04.167089385Z -|     pre_action(logger, conflict_mode)
2025-08-14T14:00:04.167103480Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/update_config/plugins/pre_actions/rulesets.py", line 50, in __call__
2025-08-14T14:00:04.167114263Z -|     result = _validate_rule_values(
2025-08-14T14:00:04.167123798Z -|              ^^^^^^^^^^^^^^^^^^^^^^
2025-08-14T14:00:04.167136979Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/update_config/plugins/pre_actions/rulesets.py", line 155, in _validate_rule_values
2025-08-14T14:00:04.167147708Z -|     ruleset.rulespec.valuespec.validate_value(
2025-08-14T14:00:04.167157692Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/gui/valuespec.py", line 363, in validate_value
2025-08-14T14:00:04.167174986Z -|     self._validate_value(value, varprefix)
2025-08-14T14:00:04.167184736Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/gui/valuespec.py", line 6746, in _validate_value
2025-08-14T14:00:04.167194869Z -|     self._valuespec.validate_value(self.to_valuespec(value), varprefix)
2025-08-14T14:00:04.167207035Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/gui/valuespec.py", line 363, in validate_value
2025-08-14T14:00:04.167217117Z -|     self._validate_value(value, varprefix)
2025-08-14T14:00:04.167252180Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/gui/valuespec.py", line 6746, in _validate_value
2025-08-14T14:00:04.167262706Z -|     self._valuespec.validate_value(self.to_valuespec(value), varprefix)
2025-08-14T14:00:04.167272819Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/gui/valuespec.py", line 363, in validate_value
2025-08-14T14:00:04.167344744Z -|     self._validate_value(value, varprefix)
2025-08-14T14:00:04.167383270Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/gui/valuespec.py", line 6446, in _validate_value
2025-08-14T14:00:04.167417159Z -|     vs.validate_value(value[param], f"{varprefix}_p_{param}")
2025-08-14T14:00:04.167445884Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/gui/valuespec.py", line 363, in validate_value
2025-08-14T14:00:04.167456262Z -|     self._validate_value(value, varprefix)
2025-08-14T14:00:04.167466568Z -|   File "/omd/sites/cmk_site/lib/python3/cmk/gui/valuespec.py", line 1046, in _validate_value
2025-08-14T14:00:04.167476586Z -|     if not self._allow_empty and (value == "" or (self._strip and value.strip() == "")):
2025-08-14T14:00:04.167486804Z -|                                                                   ^^^^^^^^^^^
2025-08-14T14:00:04.167496457Z -| AttributeError: 'tuple' object has no attribute 'strip'
2025-08-14T14:00:04.167508184Z -|
2025-08-14T14:00:04.167517422Z -| Update aborted with Error: 'tuple' object has no attribute 'strip'.
2025-08-14T14:00:04.167533757Z -| Your site has not been modified.
2025-08-14T14:00:04.167543344Z -| The update can be retried after the error has been fixed.

I was able to upgrade to 2.3.0 by directly going to 2.3.0 instead of patch version 45.

2025-08-14T14:23:31.252186437Z ### UPDATING SITE
2025-08-14T14:23:32.127404798Z ERROR: Failed to read config  of site cmk. AGENT_RECEIVER_PORT port will possibly be allocated twice
2025-08-14T14:23:32.159122583Z ERROR: Failed to read config  of site cmk. APACHE_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:32.196362895Z ERROR: Failed to read config  of site cmk. LIVESTATUS_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:32.273511478Z ERROR: Failed to read config  of site cmk. AGENT_RECEIVER_PORT port will possibly be allocated twice
2025-08-14T14:23:32.311469790Z ERROR: Failed to read config  of site cmk. APACHE_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:32.359741426Z ERROR: Failed to read config  of site cmk. LIVESTATUS_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:32.755522335Z ERROR: Failed to read config  of site cmk. AGENT_RECEIVER_PORT port will possibly be allocated twice
2025-08-14T14:23:32.790792905Z ERROR: Failed to read config  of site cmk. APACHE_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:32.828836930Z ERROR: Failed to read config  of site cmk. LIVESTATUS_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:33.096035406Z Cleaning up tmp directory...OK
2025-08-14T14:23:33.096075015Z 2025-08-14 14:23:31 - Updating site 'cmk_site' from version 2.2.0p45.cre to 2.3.0.cre...
2025-08-14T14:23:33.096087031Z
2025-08-14T14:23:33.096096590Z  * Updated        etc/check_mk/apache.conf
2025-08-14T14:23:33.096106303Z  * Updated        etc/cron.d/cmk_cleanup_pdf_tmp_files
2025-08-14T14:23:33.096115895Z  * Updated        etc/mk-livestatus/nagios.cfg
2025-08-14T14:23:33.096126124Z  * Updated        etc/ssl/openssl.cnf
2025-08-14T14:23:33.096135461Z  * Updated        etc/ssl/openssl.cnf.dist
2025-08-14T14:23:33.096144760Z  * Updated        etc/ssl/misc/CA.pl
2025-08-14T14:23:33.096153990Z  * Updated        etc/ssl/misc/tsget.pl
2025-08-14T14:23:33.096163404Z  * Identical      etc/ssl/misc/tsget
2025-08-14T14:23:33.096172684Z  * Updated        etc/nagios/conf.d/check_mk_templates.cfg
2025-08-14T14:23:33.096182489Z  * Updated        etc/apache/php-wrapper
2025-08-14T14:23:33.096191765Z  * Updated        etc/apache/conf.d/security.conf
2025-08-14T14:23:33.096201277Z  * Updated        etc/init.d/agent-receiver
2025-08-14T14:23:33.096210654Z  * Updated        etc/init.d/apache
2025-08-14T14:23:33.096220006Z  * Updated        etc/nagvis/apache.conf
2025-08-14T14:23:33.096229243Z  * Updated        etc/nagvis/nagvis.ini.php
2025-08-14T14:23:33.096238475Z  * Installed file etc/logrotate.d/security
2025-08-14T14:23:33.096247738Z  * Installed file etc/logrotate.d/audit
2025-08-14T14:23:33.096256965Z  * Updated        etc/logrotate.d/redis
2025-08-14T14:23:33.096266137Z  * Installed dir  local/lib/python3/cmk_addons
2025-08-14T14:23:33.096275710Z  * Installed dir  local/lib/python3/cmk_addons/plugins
2025-08-14T14:23:33.096304716Z  * Installed dir  local/lib/python3/cmk/plugins
2025-08-14T14:23:33.096314592Z  * Vanished       etc/cron.d/cmk_discovery
2025-08-14T14:23:36.007568942Z Preparing tmp directory /omd/sites/cmk_site/tmp...ATTENTION
2025-08-14T14:23:36.007623079Z   Some steps may take a long time depending on your installation.
2025-08-14T14:23:36.007635765Z   Please be patient.
2025-08-14T14:23:36.007645632Z
2025-08-14T14:23:36.022567906Z Cleanup precompiled host and folder files
2025-08-14T14:23:36.023969596Z Verifying Checkmk configuration...
2025-08-14T14:23:38.875573191Z  01/06 Legacy check plugins...
2025-08-14T14:23:38.928138287Z  02/06 Rulesets...
2025-08-14T14:23:41.650354458Z  03/06 UI extensions...
2025-08-14T14:23:41.747125582Z  04/06 Agent based plugins...
2025-08-14T14:23:41.756963751Z  05/06 Autochecks...
2025-08-14T14:23:42.096440970Z  06/06 Deprecated .mk configuration of plugins...
2025-08-14T14:23:42.096490073Z Done (success)
2025-08-14T14:23:42.096502963Z
2025-08-14T14:23:46.164614572Z
2025-08-14T14:23:46.164655079Z Completed verifying site configuration. Your site now has version 2.3.0.cre.
2025-08-14T14:23:46.164667103Z Executing update-pre-hooks script "01_mkp-disable-outdated"...OK
2025-08-14T14:23:46.164677613Z Executing update-pre-hooks script "02_cmk-update-config"...
2025-08-14T14:23:46.164688353Z -| ATTENTION
2025-08-14T14:23:46.164698928Z -|   Some steps may take a long time depending on your installation.
2025-08-14T14:23:46.164708821Z -|   Please be patient.
2025-08-14T14:23:46.164718177Z -|
2025-08-14T14:23:46.178061895Z -| Cleanup precompiled host and folder files
2025-08-14T14:23:46.180558966Z -| Verifying Checkmk configuration...
2025-08-14T14:23:48.056785081Z -|  01/06 Legacy check plugins...
2025-08-14T14:23:48.102062628Z -|  02/06 Rulesets...
2025-08-14T14:23:50.825967062Z -|  03/06 UI extensions...
2025-08-14T14:23:50.933213365Z -|  04/06 Agent based plugins...
2025-08-14T14:23:50.945111159Z -|  05/06 Autochecks...
2025-08-14T14:23:51.325387534Z -|  06/06 Deprecated .mk configuration of plugins...
2025-08-14T14:23:51.326184069Z -| Done (success)
2025-08-14T14:23:51.326194521Z -|
2025-08-14T14:23:52.276582261Z -| Updating Checkmk configuration...
2025-08-14T14:23:52.276636759Z -|  01/21 Create precompiled host and folder files...
2025-08-14T14:23:52.519218187Z -|  02/21 Validate user IDs...
2025-08-14T14:23:52.520391922Z -|  03/21 Update views...
2025-08-14T14:23:52.535390765Z -|  04/21 Update dashboards...
2025-08-14T14:23:52.542395264Z -|  05/21 User attributes...
2025-08-14T14:23:52.559933821Z -|  06/21 Global settings...
2025-08-14T14:23:52.600000943Z -|  07/21 Rulesets...
2025-08-14T14:23:52.953626254Z -|  08/21 Autochecks...
2025-08-14T14:23:53.305070975Z -|  09/21 Hosts and folders...
2025-08-14T14:23:53.311299403Z -|  10/21 Cleanup version specific caches...
2025-08-14T14:23:53.338382521Z -|  11/21 Delete old dedicated agent receiver cert...
2025-08-14T14:23:53.338422001Z -|  12/21 Synchronize automationuser secrets...
2025-08-14T14:23:53.600456407Z -|  13/21 Check for incompatible password hashes...
2025-08-14T14:23:53.601000026Z -|  14/21 Remove unreadable prediction files...
2025-08-14T14:23:53.601240691Z -|  15/21 Update existing two factor...
2025-08-14T14:23:53.601288524Z -|  16/21 Update pagetypes...
2025-08-14T14:23:53.604114255Z -|  17/21 Split large audit logs...
2025-08-14T14:23:53.604151815Z -|  18/21 Event Console: Rewrite active config...
2025-08-14T14:23:53.608096843Z -|  19/21 Remove persisted graph options...
2025-08-14T14:23:53.608590106Z -|  20/21 BI config...
2025-08-14T14:23:53.610180631Z -|  21/21 Update core config...
2025-08-14T14:23:56.145726660Z -| Generating configuration for core (type nagios)...
2025-08-14T14:23:56.786012580Z -| Precompiling host checks...OK
2025-08-14T14:23:57.151071002Z -| Done (success)
2025-08-14T14:23:58.163858861Z OK
2025-08-14T14:23:58.163900630Z Finished update.
2025-08-14T14:23:58.163904948Z
2025-08-14T14:23:58.524010657Z ERROR: Failed to read config  of site cmk. AGENT_RECEIVER_PORT port will possibly be allocated twice
2025-08-14T14:23:58.550178359Z ERROR: Failed to read config  of site cmk. APACHE_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:58.581577065Z ERROR: Failed to read config  of site cmk. LIVESTATUS_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:58.650452986Z ERROR: Failed to read config  of site cmk. AGENT_RECEIVER_PORT port will possibly be allocated twice
2025-08-14T14:23:58.682746080Z ERROR: Failed to read config  of site cmk. APACHE_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:58.717471316Z ERROR: Failed to read config  of site cmk. LIVESTATUS_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:58.771018992Z /usr/sbin/apache2ctl: 99: ulimit: error setting limit (Operation not permitted)
2025-08-14T14:23:58.771058562Z Setting ulimit failed. See README.Debian for more information.
2025-08-14T14:23:58.841906295Z AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.2. Set the 'ServerName' directive globally to suppress this message
2025-08-14T14:23:58.846295393Z Reloading Apache...httpd not running, trying to start
2025-08-14T14:23:58.846511773Z httpd not running, trying to start
2025-08-14T14:23:58.847223907Z OK
2025-08-14T14:23:58.898741862Z ### STARTING XINETD
2025-08-14T14:23:58.924314241Z  * Starting internet superserver xinetd
2025-08-14T14:23:58.925549959Z    ...done.
2025-08-14T14:23:58.925898725Z ### STARTING SITE
2025-08-14T14:23:59.237541075Z ERROR: Failed to read config  of site cmk. AGENT_RECEIVER_PORT port will possibly be allocated twice
2025-08-14T14:23:59.265466698Z ERROR: Failed to read config  of site cmk. APACHE_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:59.296743441Z ERROR: Failed to read config  of site cmk. LIVESTATUS_TCP_PORT port will possibly be allocated twice
2025-08-14T14:23:59.480695271Z Preparing tmp directory /omd/sites/cmk_site/tmp...Starting agent-receiver...OK
2025-08-14T14:24:00.006539271Z Starting mkeventd (builtin: snmptrap)...OK
2025-08-14T14:24:00.029209988Z Starting rrdcached...OK
2025-08-14T14:24:00.054262495Z Starting npcd...OK
2025-08-14T14:24:00.253965895Z Starting nagios...OK
2025-08-14T14:24:00.350698937Z Starting apache...OK
2025-08-14T14:24:01.603096021Z Starting redis...OK
2025-08-14T14:24:01.627058197Z Starting stunnel...OK
2025-08-14T14:24:01.653043454Z Starting xinetd...OK
2025-08-14T14:24:01.710146739Z Initializing Crontab...OK
2025-08-14T14:24:01.764535230Z ### STARTING CRON
2025-08-14T14:24:01.765016933Z ### CONTAINER STARTED

We were running also in this issue and i found this werk:

we used the 2.3.0p36 and upgrade was successfuel.