<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
Is your bin/crm the same with this <a href="https://github.com/ClusterLabs/crmsh/blob/4.4.0/bin/crm" id="LPlnk378771">https://github.com/ClusterLabs/crmsh/blob/4.4.0/bin/crm</a>?</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> christian2 <christian.hoertnagl@univie.ac.at><br>
<b>Sent:</b> Tuesday, October 10, 2023 3:10 PM<br>
<b>To:</b> Xin Liang <XLiang@suse.com><br>
<b>Cc:</b> users@clusterlabs.org <users@clusterlabs.org><br>
<b>Subject:</b> Re: [ClusterLabs] crm fails with: Failed to find "console" handler in logger "crmsh.main"</font>
<div> </div>
</div>
<div style="line-break:after-white-space">Hi Xin,
<div><br>
</div>
<div>Thanks for your quick response.</div>
<div><br>
</div>
<div>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). <br>
<div><br>
</div>
<div>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 <XLiang@suse.com>”, "Release 4.4.0” at the top, so I guess it was the last commit for that release.</div>
<div><br>
</div>
<div>I’m still puzzled what could be wrong.</div>
<div><br>
</div>
<div>Christian</div>
<div><br>
</div>
<div>
<blockquote type="cite">
<div>On 10.10.2023, at 03:55, Xin Liang <XLiang@suse.com> wrote:</div>
<br class="x_Apple-interchange-newline">
<div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt">
Hi <span class="x_ContentPasted0" style="font-size:14.6667px; background-color:rgb(255,255,255); display:inline!important">Christian</span></div>
<div class="x_elementToProof" style="font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt">
<span class="x_ContentPasted0" style="font-size:14.6667px; background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div class="x_elementToProof" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="x_ContentPasted1 x_ContentPasted2" style="font-size:14.6667px">Please paste your /usr/sbin/crm, I doubt something broken with this file.</span></div>
<div class="x_elementToProof" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="x_ContentPasted1 x_ContentPasted2" style="font-size:14.6667px"><br>
</span></div>
<div class="x_elementToProof" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="x_ContentPasted1 x_ContentPasted2" style="font-size:14.6667px">BTW, what's the last git commit number of crmsh that Debian Bookworm uses?</span></div>
<div id="x_appendonsend" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
</div>
<hr tabindex="-1" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; display:inline-block; width:687.953125px">
<span style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important"></span>
<div id="x_divRplyFwdMsg" dir="ltr" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<font face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b><span class="x_Apple-converted-space"> </span>Users <users-bounces@clusterlabs.org> on behalf of christian2 <christian.hoertnagl@univie.ac.at><br>
<b>Sent:</b><span class="x_Apple-converted-space"> </span>Monday, October 9, 2023 9:30 PM<br>
<b>To:</b><span class="x_Apple-converted-space"> </span>users@clusterlabs.org <users@clusterlabs.org><br>
<b>Subject:</b><span class="x_Apple-converted-space"> </span>[ClusterLabs] crm fails with: Failed to find "console" handler in logger "crmsh.main"</font>
<div> </div>
</div>
<div class="x_BodyFragment" style="font-family:Helvetica; font-size:18px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Hello members,<br>
<br>
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?<br>
<br>
File "/usr/lib/python3/dist-packages/crmsh/main.py", line 374, in run<br>
return main_input_loop(context, user_args)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File "/usr/lib/python3/dist-packages/crmsh/main.py", line 253, in main_input_loop<br>
rc = handle_noninteractive_use(context, user_args)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File "/usr/lib/python3/dist-packages/crmsh/main.py", line 205, in handle_noninteractive_use<br>
logger_utils.reset_lineno()<br>
File "/usr/lib/python3/dist-packages/crmsh/log.py", line 226, in reset_lineno<br>
self.set_console_formatter(to)<br>
File "/usr/lib/python3/dist-packages/crmsh/log.py", line 218, in set_console_formatter<br>
console_handler = self.get_handler("console")<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File "/usr/lib/python3/dist-packages/crmsh/log.py", line 205, in get_handler<br>
raise ValueError("Failed to find \"{}\" handler in logger \"{}\"".format(_type, self.logger.name))<br>
<br>
Best regards<br>
Christian<br>
_______________________________________________<br>
Manage your subscription:<br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
ClusterLabs home:<span class="x_Apple-converted-space"> </span><a href="https://www.clusterlabs.org/">https://www.clusterlabs.org/</a></div>
</span></font></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>