Problem
Code Block |
2021-09-01 11:12:19,455 DEBUG: Starting Checkmk Agent Updater v2.0.0p92021-09-01 11:12:19,456 DEBUG: Successfully read /etc/cmk-update-agent.state.2021-09-01 11:12:19,456 DEBUG: Successfully read /etc/check_mk/cmk-update-agent.cfg.2021-09-01 11:12:19,456 DEBUG: Updating the certificate store "/var/lib/check_mk_agent/cas/all_certs.pem"...2021-09-01 11:12:19,456 DEBUG: Caught Exception:Traceback (most recent call last): File "cmk_update_agent.py", line 1888, in main File "cmk_update_agent.py", line 627, in __init__ File "cmk_update_agent.py", line 116, in __init__ File "cmk_update_agent.py", line 153, in update_ca_storeTypeError: sequence item 0: expected str instance, bytes found2021-09-01 11:12:19,456 ERROR: sequence item 0: expected str instance, bytes found2021-09-01 11:12:19,516 DEBUG: Starting Checkmk Agent Updater v2.0.0p92021-09-01 11:12:19,516 DEBUG: Successfully read /etc/cmk-update-agent.state.2021-09-01 11:12:19,517 DEBUG: Successfully read /etc/check_mk/cmk-update-agent.cfg.2021-09-01 11:12:19,517 DEBUG: Updating the certificate store "/var/lib/check_mk_agent/cas/all_certs.pem"...2021-09-01 11:12:19,517 DEBUG: Caught Exception:Traceback (most recent call last): File "cmk_update_agent.py", line 1888, in main File "cmk_update_agent.py", line 627, in __init__ File "cmk_update_agent.py", line 116, in __init__ File "cmk_update_agent.py", line 153, in update_ca_storeTypeError: sequence item 0: expected str instance, bytes found2021-09-01 11:12:19,517 ERROR: Info |
---|
An error of "sequence item 0: expected str instance, bytes found" while running the agent updater. |
Status |
---|
colour | Green |
---|
title | LAST TESTED ON CHECKMK 2.3.0P1 |
---|
|
Panel |
---|
borderColor | black |
---|
bgColor | #f8f8f8 |
---|
title | Table of Contents |
---|
|
|
Problem
For some reason, the agent updater is failing when trying to execute:
Code Block |
---|
|
root@dockerhost:~# cmk-update-agent -V
sequence item 0: expected str instance, bytes found2021-09-01 11:12:19,805 DEBUG: Starting Checkmk Agent Updater v2.0.0p92021-09-01 11:12:19,805 DEBUG: Successfully read /etc/cmk-update-agent.state.2021-09-01 11:12:19,805 DEBUG: Successfully read /etc/check_mk/cmk-update-agent.cfg.2021-09-01 11:12:19,805 DEBUG: Updating the certificate store "found
See syslog or Logfile at /var/lib/check_mk_agent/cas/all_certs.pem"...2021-09-01 11:12:19,805 DEBUG: Caught Exception:Traceback (most recent call last): File "cmk_update_agent.py", line 1888, in main File "cmk_update_agent.py", line 627, in __init__ File "cmk_update_agent.py", line 116, in __init__ File "cmk_update_agent.py", line 153, in update_ca_storeTypeError: sequence item 0: expected str instance, bytes found2021-09-01 11:12:19,806 ERROR: sequence item 0: expected str instance, bytes found2021-09-01 11:12:26,421 DEBUG: Starting Checkmk Agent Updater v2.0.0p92021-09-01 11:12:26,421 DEBUG: Successfully readcmk-update-agent.log for details. |
Solution
Delete the state file
Code Block |
---|
|
root@linux~# rm /etc/cmk-update-agent.state |
...
Solution
...
.
Switch to the site user.
Code Block |
---|
|
root@linux~# su mysite |
.
Register the agent again.
Code Block |
---|
|
OMD[mysite]:~$ cmk-update-agent register |
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | KB |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ( "linux_agent" , "updater" , "troubleshooting" ) and type = "page" and space = "KB" |
---|
labels | updater linux_agent |
---|
|