[ClusterLabs] crm fails with: Failed to find "console" handler in logger "crmsh.main"

christian2 christian.hoertnagl at univie.ac.at
Mon Oct 9 09:30:19 EDT 2023


Hello members,

I have upgraded from crm 4.2.0 to 4.4.0 as part of a Debian upgrade from Bullseye to Bookworm. Unfortunately, “crm -d status” now fails with the error message indicated in the title and with the following stackdump. Since all indicated source files belong to the Debian package crmsh I also tried purging and then reinstalling the package: however, the issue remains the same. What could be wrong and how can I fix this?

  File "/usr/lib/python3/dist-packages/crmsh/main.py", line 374, in run
    return main_input_loop(context, user_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/crmsh/main.py", line 253, in main_input_loop
    rc = handle_noninteractive_use(context, user_args)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/crmsh/main.py", line 205, in handle_noninteractive_use
    logger_utils.reset_lineno()
  File "/usr/lib/python3/dist-packages/crmsh/log.py", line 226, in reset_lineno
    self.set_console_formatter(to)
  File "/usr/lib/python3/dist-packages/crmsh/log.py", line 218, in set_console_formatter
    console_handler = self.get_handler("console")
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/crmsh/log.py", line 205, in get_handler
    raise ValueError("Failed to find \"{}\" handler in logger \"{}\"".format(_type, self.logger.name))

Best regards
Christian


More information about the Users mailing list