Hi Xin,

Thanks for your quick response.

I also doubt that the Python code in /usr/local/bin/crm (that’s the location in 
my case) has changed. Perhaps it’s enough if I submit the md5sum here instead 
of pasting the entire file: it’s 2bcdfe720f28061a4f71fe7d8d114220 (49 lines). 

I don't know what last commit went into the Debian package for crmsh. Its 
/usr/share/doc/crmsh/changelog.gz refers to "Thu Feb 17 2022 Xin Liang 
<xli...@suse.com>”, "Release 4.4.0” at the top, so I guess it was the last 
commit for that release.

I’m still puzzled what could be wrong.

Christian

> On 10.10.2023, at 03:55, Xin Liang <xli...@suse.com> wrote:
> 
> 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