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-boun...@clusterlabs.org> on behalf of christian2 
<christian.hoertn...@univie.ac.at>
Sent: Monday, October 9, 2023 9:30 PM
To: users@clusterlabs.org <users@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/
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/

Reply via email to