<?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: FAILED: /opt/CPotelcol/REST.py  - Error: 'utf-8' codec can't decode byte 0xca in position 1: inv in OpenTelemetry/Skyline</title>
    <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197780#M246</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this fixed the issue on MHO&lt;/P&gt;&lt;P&gt;/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)"&lt;BR /&gt;&lt;BR /&gt;this fixed the issue on Maestro - the g_all command did not work:&lt;BR /&gt;gexec -b all -c '/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)"'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After that I could re-run successfully on MHO and SMO.&lt;BR /&gt;/opt/CPotelcol/REST.py --set_open_telemetry "$(cat /home/admin/skyline_payload.json)"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You should add this to the SK and/or fix it with the next update packages.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2023 08:32:34 GMT</pubDate>
    <dc:creator>Alexander_Wilke</dc:creator>
    <dc:date>2023-11-13T08:32:34Z</dc:date>
    <item>
      <title>FAILED: /opt/CPotelcol/REST.py  - Error: 'utf-8' codec can't decode byte 0xca in position 1: invalid</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197677#M237</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;running R81.10 + JumboHFA Take 110 and Skyline/CPOtelcol Verison Take 70 on Maestro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error out of a sudden on the SGMs of the Maestro:&lt;BR /&gt;Further I get the same error on 1 out of 4 MHOs.&lt;/P&gt;&lt;P&gt;[Expert@l999ravpn101d-ch02-01:dplane]# /opt/CPotelcol/REST.py --set_open_telemetry "$(cat /home/admin/skyline_payload.json)"&lt;BR /&gt;Error: 'utf-8' codec can't decode byte 0xca in position 1: invalid continuation byte&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 1412, in main&lt;BR /&gt;request.commit()&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 1277, in commit&lt;BR /&gt;oldConfiguration = OtelColConfigHandler.getInstance().getOldConfig()&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 459, in getOldConfig&lt;BR /&gt;isSuccess, dynamicConfigOut, _, _= execCommandWithEnv(self._otDynamicConfigScript, ALLOW_EMPTY=False)&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 278, in execCommandWithEnv&lt;BR /&gt;isSuccess = isSuccess and len(out.decode('utf-8')) &amp;gt; 0&lt;BR /&gt;UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 1: invalid continuation byte&lt;BR /&gt;[Expert@l999ravpn101d-ch02-01:dplane]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked md5sum and it is the same:&lt;/P&gt;&lt;P&gt;[Expert@l999ravpn101d-ch02-01:dplane]# g_md5sum /opt/CPotelcol/REST.py&lt;BR /&gt;-*- 4 blades: 1_01 1_02 2_01 2_02 -*-&lt;BR /&gt;d7742c1d2c97f5a2212754fa8a5eafa0 /opt/CPotelcol/REST.py&lt;/P&gt;&lt;P&gt;[Expert@l999ravpn101d-ch02-01:dplane]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did "dos2unix" for REST-py and for the payload.json. Did not solve the issue. I use the same payload.json on other environments and it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Expert@l999ravpn101d-ch02-01:dplane]# g_allc "cpinfo -y all | grep -i otel"&lt;BR /&gt;-*- 4 blades: 1_01 1_02 2_01 2_02 -*-&lt;BR /&gt;This is Check Point CPinfo Build 914000234 for GAIA&lt;BR /&gt;BUNDLE_CPOTELCOL_AUTOUPDATE Take: 70&lt;BR /&gt;[CPotelcol]&lt;/P&gt;&lt;P&gt;[Expert@l999ravpn101d-ch02-01:dplane]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Expert@l999ravpn101d-ch02-01:dplane]# g_allc /opt/CPotelcol/sklnctl -v&lt;BR /&gt;-*- 4 blades: 1_01 1_02 2_01 2_02 -*-&lt;BR /&gt;1.0.0&lt;/P&gt;&lt;P&gt;[Expert@l999ravpn101d-ch02-01:dplane]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas why this REST.py script does not work (anymore) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 08:48:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197677#M237</guid>
      <dc:creator>Alexander_Wilke</dc:creator>
      <dc:date>2023-11-10T08:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: FAILED: /opt/CPotelcol/REST.py  - Error: 'utf-8' codec can't decode byte 0xca in position 1: inv</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197694#M239</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/6901"&gt;@Alexander_Wilke&lt;/a&gt;&amp;nbsp;, Please open a support ticket to CheckPoint, so we can assist you on this issue. Also, try the following:&lt;/P&gt;
&lt;P&gt;1) On SMO - g_all /opt/CPotelcol/CPotelcolCli.sh set_dynamic_config $(cat /opt/CPotelcol/config.json)&lt;/P&gt;
&lt;P&gt;2) Re - run the script&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 12:18:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197694#M239</guid>
      <dc:creator>Elad_Chomsky</dc:creator>
      <dc:date>2023-11-10T12:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: FAILED: /opt/CPotelcol/REST.py  - Error: 'utf-8' codec can't decode byte 0xca in position 1: inv</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197695#M240</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;unfortunately this is a "poc and Buy" environment and the PoC Team is mad, Diamond engineer has enough other topics and so the progress is slow and I can not open a ticket because appliances are not in the user center.&lt;/P&gt;&lt;P&gt;There is another ticket open for "config_verify -v" failed for cpotelcol. However this is another topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Expert@l999ravpn101d-ch01-01:dplane]# g_all /opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)"&lt;BR /&gt;/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config {{&lt;BR /&gt;"receivers": {&lt;BR /&gt;"otlp": {&lt;BR /&gt;"protocols": {&lt;BR /&gt;"grpc": {&lt;BR /&gt;"transport": "unix",&lt;BR /&gt;"endpoint": "/opt/CPotelcol/grpc_otlp.sock"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"exporters": {&lt;BR /&gt;"prometheusremotewrite": {&lt;BR /&gt;"endpoint": "&lt;A href="https://myprometheusserver:9090/api/v1/write" target="_blank"&gt;https://myprometheusserver:9090/api/v1/write&lt;/A&gt;",&lt;BR /&gt;"external_labels": {&lt;BR /&gt;"environment": "Default"&lt;BR /&gt;},&lt;BR /&gt;"resource_to_telemetry_conversion": {&lt;BR /&gt;"enabled": true&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"unix": {&lt;BR /&gt;"format": "json",&lt;BR /&gt;"path": "/home/admin/mytest.sock",&lt;BR /&gt;"transport": "unixgram"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"processors": {&lt;BR /&gt;"batch": null,&lt;BR /&gt;"filter/um":null,&lt;BR /&gt;"filter/skyline":null&lt;BR /&gt;},&lt;BR /&gt;"extensions": {&lt;BR /&gt;"health_check": null&lt;BR /&gt;},&lt;BR /&gt;"service": {&lt;BR /&gt;"extensions": [&lt;BR /&gt;"health_check"&lt;BR /&gt;],&lt;BR /&gt;"pipelines": {&lt;BR /&gt;"metrics/skyline": {&lt;BR /&gt;"receivers": [&lt;BR /&gt;"otlp"&lt;BR /&gt;],&lt;BR /&gt;"processors": [&lt;BR /&gt;"batch",&lt;BR /&gt;"filter/skyline"&lt;BR /&gt;],&lt;BR /&gt;"exporters": [&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}}: command not found&lt;BR /&gt;[Expert@l999ravpn101d-ch01-01:dplane]#&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 12:24:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197695#M240</guid>
      <dc:creator>Alexander_Wilke</dc:creator>
      <dc:date>2023-11-10T12:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: FAILED: /opt/CPotelcol/REST.py  - Error: 'utf-8' codec can't decode byte 0xca in position 1: inv</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197706#M243</link>
      <description>&lt;P&gt;I re-run the script:&lt;/P&gt;&lt;P&gt;[Expert@l999ravpn101d-ch02-01:dplane]# /opt/CPotelcol/REST.py --set_open_telemetry "$(cat /home/admin/skyline_payload.json)"&lt;BR /&gt;/opt/CPotelcol/REST.py:452: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead&lt;BR /&gt;logger.warn("Failed Loading OTCOL Dynamic config")&lt;/P&gt;&lt;P&gt;Error: The configuration file is invalid ( Check /opt/CPotelcol/config.yml, See sk178566)&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 1412, in main&lt;BR /&gt;request.commit()&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 1281, in commit&lt;BR /&gt;stage[2](*stage[3:])(REATTEMPT=True,OLD_CONFIG=oldConfiguration)&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 1089, in __call__&lt;BR /&gt;self._validationCallback(isSuccess, out, err, rc, **kwargs)&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 1207, in isReconfigCommandFailed&lt;BR /&gt;ReconfigureOpenTelemetryCollector()(REATTEMPT=False)&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 1089, in __call__&lt;BR /&gt;self._validationCallback(isSuccess, out, err, rc, **kwargs)&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 1211, in isReconfigCommandFailed&lt;BR /&gt;raise Exception("The configuration file is invalid ( Check /opt/CPotelcol/config.yml, See sk178566)")&lt;BR /&gt;Exception: The configuration file is invalid ( Check /opt/CPotelcol/config.yml, See sk178566)&lt;BR /&gt;[Expert@l999ravpn101d-ch02-01:dplane]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This file does not exists:&lt;BR /&gt;/opt/CPotelcol/config.yml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead there is the&amp;nbsp;/opt/CPotelcol/config.json&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 14:28:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197706#M243</guid>
      <dc:creator>Alexander_Wilke</dc:creator>
      <dc:date>2023-11-10T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: FAILED: /opt/CPotelcol/REST.py  - Error: 'utf-8' codec can't decode byte 0xca in position 1: inv</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197741#M245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/6901"&gt;@Alexander_Wilke&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to re run the command as following:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;g_all '/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)"'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 17:10:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197741#M245</guid>
      <dc:creator>Elad_Chomsky</dc:creator>
      <dc:date>2023-11-11T17:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: FAILED: /opt/CPotelcol/REST.py  - Error: 'utf-8' codec can't decode byte 0xca in position 1: inv</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197780#M246</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this fixed the issue on MHO&lt;/P&gt;&lt;P&gt;/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)"&lt;BR /&gt;&lt;BR /&gt;this fixed the issue on Maestro - the g_all command did not work:&lt;BR /&gt;gexec -b all -c '/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)"'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After that I could re-run successfully on MHO and SMO.&lt;BR /&gt;/opt/CPotelcol/REST.py --set_open_telemetry "$(cat /home/admin/skyline_payload.json)"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You should add this to the SK and/or fix it with the next update packages.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 08:32:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/197780#M246</guid>
      <dc:creator>Alexander_Wilke</dc:creator>
      <dc:date>2023-11-13T08:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: FAILED: /opt/CPotelcol/REST.py  - Error: 'utf-8' codec can't decode byte 0xca in position 1: inv</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/201735#M275</link>
      <description>&lt;P&gt;Thanks you Sir. save my day, that's worked for me too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran this one:&lt;/P&gt;&lt;P&gt;/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this after :&lt;/P&gt;&lt;P&gt;/opt/CPotelcol/REST.py --set_open_telemetry "$(cat payload.json)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And worked!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 19:17:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/FAILED-opt-CPotelcol-REST-py-Error-utf-8-codec-can-t-decode-byte/m-p/201735#M275</guid>
      <dc:creator>salles</dc:creator>
      <dc:date>2023-12-28T19:17:09Z</dc:date>
    </item>
  </channel>
</rss>

