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

Xin Liang XLiang at suse.com
Mon Oct 9 21:55:59 EDT 2023


Hi Christian

Please paste your /usr/sbin/crm, I doubt something broken with this file.

BTW, what's the last git commit number of crmsh that Debian Bookworm uses?
________________________________
From: Users <users-bounces at clusterlabs.org> on behalf of christian2 <christian.hoertnagl at univie.ac.at>
Sent: Monday, October 9, 2023 9:30 PM
To: users at clusterlabs.org <users at clusterlabs.org>
Subject: [ClusterLabs] crm fails with: Failed to find "console" handler in logger "crmsh.main"

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
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20231010/04536f55/attachment.htm>


More information about the Users mailing list