<?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>question Issue with NiFi 2.0.0-M4: crypto.randomUUID is not a function Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/390261#M247240</link>
    <description>&lt;P&gt;I recently downloaded the latest version of NiFi (nifi-2.0.0-M4) and installed it by placing the folder in /opt/nifi-2.0.0-M4. The only modifications I made were in the nifi-env.sh and nifi.properties files as follows:&lt;/P&gt;&lt;P&gt;nifi-env.sh&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64&lt;/LI-CODE&gt;&lt;P&gt;nifi.properties&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Site to Site properties
nifi.remote.input.host=10.37.10.199
nifi.remote.input.secure=false
nifi.remote.input.socket.port=10000
nifi.remote.input.http.enabled=true
nifi.remote.input.http.transaction.ttl=60 sec
nifi.remote.contents.cache.expiration=60 secs

# web properties #
#############################################

# For security, NiFi will present the UI on 127.0.0.1 and only be accessible through this loopback interface.
# Be aware that changing these properties may affect how your instance can be accessed without any restriction.
# We recommend configuring HTTPS instead. The administrators guide provides instructions on how to do this.

nifi.web.http.host= 0.0.0.0 # Here goes the IP of my virtual machine in Ubuntu
nifi.web.http.port=8443
nifi.web.http.network.interface.default=

#############################################

nifi.web.https.host=
nifi.web.https.port=&lt;/LI-CODE&gt;&lt;P&gt;When I run ./nifi.sh start, the server starts correctly and there are no errors in the console. However, when I open the URL in the browser, the page remains blank and the following error appears in the browser console:&lt;BR /&gt;&lt;BR /&gt;TypeError: crypto.randomUUID is not a function&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Additional Information:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Operating System: Ubuntu&lt;/LI&gt;&lt;LI&gt;Java Version: OpenJDK 21&lt;/LI&gt;&lt;LI&gt;NiFi Version: 2.0.0-M4&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Has anyone else encountered this issue or can provide guidance on how to resolve it? Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2024-07-12 161846.jpg" style="width: 435px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41154i33DF75F197C12922/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-07-12 161846.jpg" alt="Screenshot 2024-07-12 161846.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2024 21:22:09 GMT</pubDate>
    <dc:creator>Twelve</dc:creator>
    <dc:date>2024-07-12T21:22:09Z</dc:date>
    <item>
      <title>Issue with NiFi 2.0.0-M4: crypto.randomUUID is not a function Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/390261#M247240</link>
      <description>&lt;P&gt;I recently downloaded the latest version of NiFi (nifi-2.0.0-M4) and installed it by placing the folder in /opt/nifi-2.0.0-M4. The only modifications I made were in the nifi-env.sh and nifi.properties files as follows:&lt;/P&gt;&lt;P&gt;nifi-env.sh&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64&lt;/LI-CODE&gt;&lt;P&gt;nifi.properties&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Site to Site properties
nifi.remote.input.host=10.37.10.199
nifi.remote.input.secure=false
nifi.remote.input.socket.port=10000
nifi.remote.input.http.enabled=true
nifi.remote.input.http.transaction.ttl=60 sec
nifi.remote.contents.cache.expiration=60 secs

# web properties #
#############################################

# For security, NiFi will present the UI on 127.0.0.1 and only be accessible through this loopback interface.
# Be aware that changing these properties may affect how your instance can be accessed without any restriction.
# We recommend configuring HTTPS instead. The administrators guide provides instructions on how to do this.

nifi.web.http.host= 0.0.0.0 # Here goes the IP of my virtual machine in Ubuntu
nifi.web.http.port=8443
nifi.web.http.network.interface.default=

#############################################

nifi.web.https.host=
nifi.web.https.port=&lt;/LI-CODE&gt;&lt;P&gt;When I run ./nifi.sh start, the server starts correctly and there are no errors in the console. However, when I open the URL in the browser, the page remains blank and the following error appears in the browser console:&lt;BR /&gt;&lt;BR /&gt;TypeError: crypto.randomUUID is not a function&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Additional Information:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Operating System: Ubuntu&lt;/LI&gt;&lt;LI&gt;Java Version: OpenJDK 21&lt;/LI&gt;&lt;LI&gt;NiFi Version: 2.0.0-M4&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Has anyone else encountered this issue or can provide guidance on how to resolve it? Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2024-07-12 161846.jpg" style="width: 435px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41154i33DF75F197C12922/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-07-12 161846.jpg" alt="Screenshot 2024-07-12 161846.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 21:22:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/390261#M247240</guid>
      <dc:creator>Twelve</dc:creator>
      <dc:date>2024-07-12T21:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with NiFi 2.0.0-M4: crypto.randomUUID is not a function Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/390574#M247303</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am also facing the same problem with no solution at the moment. Sharing some information which may shed some light as to why the issue is observed.&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/105034/how-do-i-create-a-guid-uuid/2117523#2117523" target="_blank"&gt;https://stackoverflow.com/questions/105034/how-do-i-create-a-guid-uuid/2117523#2117523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 00:25:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/390574#M247303</guid>
      <dc:creator>kruskal</dc:creator>
      <dc:date>2024-07-19T00:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with NiFi 2.0.0-M4: crypto.randomUUID is not a function Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/390670#M247321</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;Hi! Do you have any insights here? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 20:44:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/390670#M247321</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-07-19T20:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with NiFi 2.0.0-M4: crypto.randomUUID is not a function Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/393766#M248565</link>
      <description>&lt;P&gt;Hello ,this TypeError: crypto.randomUUID is not a function occurs because the environment in which you are running your application does not support the crypto.randomUUID() function. It is a versioning problem, either you solve the Polyfill from the code, or you can add this extension:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erikaGutierrez_0-1726871502623.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41820i6765989D2513D750/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erikaGutierrez_0-1726871502623.png" alt="erikaGutierrez_0-1726871502623.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Once installed, create a new script and add this code.&lt;/P&gt;&lt;P&gt;(&lt;SPAN class="hljs-keyword"&gt;function&lt;/SPAN&gt;() { &lt;SPAN class="hljs-string"&gt;'use strict'&lt;/SPAN&gt;; &lt;SPAN class="hljs-keyword"&gt;if&lt;/SPAN&gt; (&lt;SPAN class="hljs-keyword"&gt;typeof&lt;/SPAN&gt; crypto.&lt;SPAN class="hljs-property"&gt;randomUUID&lt;/SPAN&gt; !== &lt;SPAN class="hljs-string"&gt;'function'&lt;/SPAN&gt;) { crypto.&lt;SPAN class="hljs-property"&gt;randomUUID&lt;/SPAN&gt; = &lt;SPAN class="hljs-keyword"&gt;function&lt;/SPAN&gt; () { &lt;SPAN class="hljs-keyword"&gt;return&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'&lt;/SPAN&gt;.&lt;SPAN class="hljs-title function_"&gt;replace&lt;/SPAN&gt;(&lt;SPAN class="hljs-regexp"&gt;/[xy]/g&lt;/SPAN&gt;, &lt;SPAN class="hljs-keyword"&gt;function&lt;/SPAN&gt;(&lt;SPAN class="hljs-params"&gt;c&lt;/SPAN&gt;) { &lt;SPAN class="hljs-keyword"&gt;var&lt;/SPAN&gt; r = &lt;SPAN class="hljs-title class_"&gt;Math&lt;/SPAN&gt;.&lt;SPAN class="hljs-title function_"&gt;random&lt;/SPAN&gt;() * &lt;SPAN class="hljs-number"&gt;16&lt;/SPAN&gt; | &lt;SPAN class="hljs-number"&gt;0&lt;/SPAN&gt;, v = c === &lt;SPAN class="hljs-string"&gt;'x'&lt;/SPAN&gt; ? r : (r &amp;amp; &lt;SPAN class="hljs-number"&gt;0x3&lt;/SPAN&gt; | &lt;SPAN class="hljs-number"&gt;0x8&lt;/SPAN&gt;); &lt;SPAN class="hljs-keyword"&gt;return&lt;/SPAN&gt; v.&lt;SPAN class="hljs-title function_"&gt;toString&lt;/SPAN&gt;(&lt;SPAN class="hljs-number"&gt;16&lt;/SPAN&gt;); }); }; } })();&lt;/P&gt;&lt;P&gt;Or you can generate a static UUID from here::&amp;nbsp;&lt;A href="https://www.uuidgenerator.net/version4" target="_blank" rel="noopener"&gt;https://www.uuidgenerator.net/version4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enable developer mode in your browser, restart the extension, and then you will be able to see your started Nifi normally.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erikaGutierrez_1-1726871628295.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41821iA34A7E03794287D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erikaGutierrez_1-1726871628295.png" alt="erikaGutierrez_1-1726871628295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erikaGutierrez_2-1726871965224.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41822i85FBC98D52D921E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erikaGutierrez_2-1726871965224.png" alt="erikaGutierrez_2-1726871965224.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erikaGutierrez_3-1726871979493.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41823i3FBAFF50101B5633/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erikaGutierrez_3-1726871979493.png" alt="erikaGutierrez_3-1726871979493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Use this for test scenarios.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 23:09:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/393766#M248565</guid>
      <dc:creator>erikaGutierrez</dc:creator>
      <dc:date>2024-09-20T23:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with NiFi 2.0.0-M4: crypto.randomUUID is not a function Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/393915#M248623</link>
      <description>&lt;P&gt;&lt;SPAN&gt;crypto.randomUUID&amp;nbsp;is only allowed to run on HTTPS, and localhost should also be able to run on it.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developer.mozilla.org/zh-CN/docs/Web/API/Crypto/randomUUID" target="_blank"&gt;Crypto.randomUUID() - Web API | MDN (mozilla.org)&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 08:07:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/393915#M248623</guid>
      <dc:creator>aLiang</dc:creator>
      <dc:date>2024-09-25T08:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with NiFi 2.0.0-M4: crypto.randomUUID is not a function Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/393961#M248629</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111577"&gt;@Twelve&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/117446"&gt;@aLiang&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The&amp;nbsp;crypto.randomUUID() issue when running NiFi over HTTP or on localhost has been resolved via&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/NIFI-13680" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-13680&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;The fix will be part of next release &lt;EM&gt;&lt;STRONG&gt;after&lt;/STRONG&gt;&lt;/EM&gt; NiFi-2.0.0-M4.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 15:35:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Issue-with-NiFi-2-0-0-M4-crypto-randomUUID-is-not-a-function/m-p/393961#M248629</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-09-25T15:35:39Z</dc:date>
    </item>
  </channel>
</rss>

