<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Azure service cme test error &amp;quot;a bytes-like object is required, not 'str'&amp;quot; in Cloud Firewall</title>
    <link>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/166160#M744</link>
    <description>&lt;P&gt;Normally you get this error if you run "service cme test" without setting up azure AD application and application access to subscription.&lt;/P&gt;
&lt;P&gt;Following the &lt;A href="https://sc1.checkpoint.com/documents/IaaS/WebAdminGuides/EN/CP_VMSS_for_Azure/Content/Topics-Azure-VMSS/Configuration.htm?TocPath=Configuration%20Steps%7C_____5#Step_5__Deploy_the_Check_Point_VMSS_and_Assign_the_Azure_AD_Application" target="_blank" rel="noopener"&gt;admin guide&lt;/A&gt;: Don´t run service cme test before you finished Step 5.&lt;/P&gt;
&lt;P&gt;In addition, the CME Log should give a good understanding what´s going on in the background.&lt;/P&gt;
&lt;P&gt;Review logs are created by the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_CloudGuard.tp_cme variable"&gt;CME&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_Other.tp_mgmt variable"&gt;Management Server&lt;/SPAN&gt;:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;/var/log/CPcme/cme.log*&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;look for an authorization failed message like the following:&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;STRONG&gt;cloud_connectors.https.RequestException: HTTP/1.1 403 Forbidden&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;b'{"error":{"code":"AuthorizationFailed","message":"The client \'xxxxxxxxxxx' with object id \'xxxxxxxxxx' does not have authorization to perform action \'Microsoft.Network/virtualNetworks/read\' over scope \'/subscriptions/xxxxxxxx\' or the scope is invalid. If access was recently granted, please refresh your credentials."}&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2022 15:28:37 GMT</pubDate>
    <dc:creator>AndreTobers</dc:creator>
    <dc:date>2022-12-27T15:28:37Z</dc:date>
    <item>
      <title>Azure service cme test error "a bytes-like object is required, not 'str'"</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/163652#M741</link>
      <description>&lt;P&gt;Hello Checkmates community,&lt;/P&gt;&lt;P&gt;I'm trying to configure VMSS autoprov on Azure but when I run "service cme test" I got this error:&lt;/P&gt;&lt;P&gt;Testing cbccgdr...&lt;BR /&gt;ERROR: Controller cbccgdr failed&lt;BR /&gt;ERROR details: a bytes-like object is required, not 'str'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone from the community can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 02:58:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/163652#M741</guid>
      <dc:creator>Paul_Manalaysay</dc:creator>
      <dc:date>2022-11-30T02:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Azure service cme test error "a bytes-like object is required, not 'str'"</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/163653#M742</link>
      <description>&lt;P&gt;Apologies if below does not help, but worth a try..&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.datasciencelearner.com/typeerror-a-bytes-like-object-is-required-not-str-fix/#:~:text=Only%20size%2D1%20or%20length,comparison%20or%20any%20other%20operation" target="_blank"&gt;https://www.datasciencelearner.com/typeerror-a-bytes-like-object-is-required-not-str-fix/#:~:text=Only%20size%2D1%20or%20length,comparison%20or%20any%20other%20operation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://stackoverflow.com/questions/33054527/typeerror-a-bytes-like-object-is-required-not-str-when-writing-to-a-file-in" target="_blank"&gt;https://stackoverflow.com/questions/33054527/typeerror-a-bytes-like-object-is-required-not-str-when-writing-to-a-file-in&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 03:11:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/163653#M742</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-11-30T03:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Azure service cme test error "a bytes-like object is required, not 'str'"</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/164416#M743</link>
      <description>&lt;P&gt;&amp;nbsp;R&amp;amp;D are looking into that and will update once the issue is resolved&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 12:00:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/164416#M743</guid>
      <dc:creator>Rivka-Strilitz</dc:creator>
      <dc:date>2022-12-07T12:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Azure service cme test error "a bytes-like object is required, not 'str'"</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/166160#M744</link>
      <description>&lt;P&gt;Normally you get this error if you run "service cme test" without setting up azure AD application and application access to subscription.&lt;/P&gt;
&lt;P&gt;Following the &lt;A href="https://sc1.checkpoint.com/documents/IaaS/WebAdminGuides/EN/CP_VMSS_for_Azure/Content/Topics-Azure-VMSS/Configuration.htm?TocPath=Configuration%20Steps%7C_____5#Step_5__Deploy_the_Check_Point_VMSS_and_Assign_the_Azure_AD_Application" target="_blank" rel="noopener"&gt;admin guide&lt;/A&gt;: Don´t run service cme test before you finished Step 5.&lt;/P&gt;
&lt;P&gt;In addition, the CME Log should give a good understanding what´s going on in the background.&lt;/P&gt;
&lt;P&gt;Review logs are created by the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_CloudGuard.tp_cme variable"&gt;CME&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_Other.tp_mgmt variable"&gt;Management Server&lt;/SPAN&gt;:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;/var/log/CPcme/cme.log*&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;look for an authorization failed message like the following:&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;STRONG&gt;cloud_connectors.https.RequestException: HTTP/1.1 403 Forbidden&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;b'{"error":{"code":"AuthorizationFailed","message":"The client \'xxxxxxxxxxx' with object id \'xxxxxxxxxx' does not have authorization to perform action \'Microsoft.Network/virtualNetworks/read\' over scope \'/subscriptions/xxxxxxxx\' or the scope is invalid. If access was recently granted, please refresh your credentials."}&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 15:28:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/166160#M744</guid>
      <dc:creator>AndreTobers</dc:creator>
      <dc:date>2022-12-27T15:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Azure service cme test error "a bytes-like object is required, not 'str'"</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/166201#M745</link>
      <description>&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's is correct, I found out that this is a authorization/IAM issue. I added the service principal application as contributor on VNET and VMSS.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Now it works fine. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 03:43:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/166201#M745</guid>
      <dc:creator>Paul_Manalaysay</dc:creator>
      <dc:date>2022-12-28T03:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Azure service cme test error "a bytes-like object is required, not 'str'"</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/221581#M4898</link>
      <description>&lt;P&gt;This error can occurs if you use wrong VMSS object in the Access control (IAM).&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 14:30:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Azure-service-cme-test-error-quot-a-bytes-like-object-is/m-p/221581#M4898</guid>
      <dc:creator>Yurybu</dc:creator>
      <dc:date>2024-07-22T14:30:12Z</dc:date>
    </item>
  </channel>
</rss>

