Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status
colourGreen
titleLAST TESTED ON CHECKMK 2.23.0P1


Panel
borderColorblack
bgColor#f8f8f8
titleTable of Contents

Table of Contents

Problem

For some reason, the agent updater is failing when trying to execute:

Code Block
languagebash
themeRDark
root@dockerhost:~# cmk-update-agent -V
sequence item 0: expected str instance, bytes found
See syslog or Logfile at /var/lib/check_mk_agent/cmk-update-agent.log for details.


Solution

  1. Delete the state file

    Code Block
    languagebash
    themeRDark
    root@linux~# rm  /etc/cmk-update-agent.state

    .

  2. Switch to the site user.

    Code Block
    languagebash
    themeRDark
    root@linux~# su mysite

    .

  3. Register the agent again.

    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~$ cmk-update-agent register


Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "linux_agent" , "updater" , "troubleshooting" ) and type = "page" and space = "KB"
labelsupdater linux_agent

...