<?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: MineMeld hanging after reboot in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/minemeld-hanging-after-reboot/m-p/186256#M99395</link>
    <description>&lt;P&gt;Luigi was so kind as to have a webex and fix the issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The problem:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The certificate.pem file has a password on it -&amp;gt; this breaks the MineMeld on reboot&lt;/P&gt;
&lt;P&gt;(if you used a certificate.pem file without password, you are safe)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;BR /&gt;1) remove the password from the certificate.pem file before&amp;nbsp;importing it!!!&lt;/P&gt;
&lt;P&gt;2) if already imported (and device not rebooted yet, so still working), you&amp;nbsp;need to&amp;nbsp;re-import&amp;nbsp;the certificate.pem file WITHOUT the password, restart the service and reboot the MineMeld. Using the same procedure as in the install guide I provided.&lt;/P&gt;
&lt;P&gt;3) If device was rebooten and is now in a hanging state as described in my PA community article you can still access the device using SSH, re-import new certificate without password, restart service, reboot. All other config will be retained!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: You can use openssl to remove the password (PaloAlto will not let you export the certifcate.pem file without a password on it)&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;openssl rsa -in minemeld.pem -out minemeld2.pem&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2017 15:20:42 GMT</pubDate>
    <dc:creator>mr.linus</dc:creator>
    <dc:date>2017-11-09T15:20:42Z</dc:date>
    <item>
      <title>MineMeld hanging after reboot</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/minemeld-hanging-after-reboot/m-p/186219#M99394</link>
      <description>&lt;P&gt;Dear Luigi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are having a lot of issues with MineMeld, I hope you can help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are deploying MineMeld with our customers on their own vmware environment in a DMZ zone with NO DHCP.&lt;/P&gt;
&lt;P&gt;I know you prefer to use AutoFocus, MineMeld in AWS, MineMeld on Ubuntu or MineMeld with DHCP, but this is not always feasible for our customers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case here is the setup we follow:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Installation&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Download the fast-install OVA file. This has the needed iso-file bundled in&lt;BR /&gt; &lt;A href="https://s3-eu-west-1.amazonaws.com/minemeld-dist/0_9/minemeld-vm-0.9.10-1build1.ova" target="_blank"&gt;https://s3-eu-west-1.amazonaws.com/minemeld-dist/0_9/minemeld-vm-0.9.10-1build1.ova&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Deploy ova in VMWare&lt;BR /&gt; All settings can be kept there default values&lt;/LI&gt;
&lt;LI&gt;Boot the MineMeld instance and let it fail the initialization. It will take some time as it searches in vain for a DHCP server&lt;/LI&gt;
&lt;LI&gt;Login to the console of the Virtual Machine with credentials:&lt;BR /&gt; username: ubuntu&lt;BR /&gt; password: rsplizardspock&lt;/LI&gt;
&lt;LI&gt;Configure a static IP for your MineMeld
&lt;P&gt;$ sudo vi /etc/network/interfaces.d/eth0.cfg&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;auto eth0&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;iface eth0 inet static&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;address x.x.x.x&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;netmask x.x.x.x&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;gateway x.x.x.x&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;dns-nameservers x.x.x.x&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Press "esc" and ":wq" to save the file in vi.&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Then enter following command. This will reset a value so MineMeld is correctly installed on next reboot.
&lt;P&gt;$ sudo rm -rf /var/lib/cloud/*&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Reboot the device
&lt;P&gt;$ sudo shutdown -r now&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;The instance will reboot and (re)start the MineMeld installation.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Installation is now done. You can access the Gui&lt;BR /&gt; &lt;A href="https://x.x.x.x" target="_blank"&gt;https://x.x.x.x&lt;/A&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works perfectly.&lt;/P&gt;
&lt;P&gt;After install we can access the Gui&lt;/P&gt;
&lt;P&gt;We can reboot the appliance via CLI, or just in VMWare give it a hard power-off and start up -&amp;gt; the MineMeld will run again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NEXT&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Since PanOS 7.1 and higher we need to install a custom certificate on the MineMeld to get it to connect&lt;/P&gt;
&lt;P&gt;For this we follow the following steps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new self-signed CA certificate on the Palo Alto firewall for MineMeld&lt;/LI&gt;
&lt;LI&gt;Export both the public and private certificate off the firewall&amp;nbsp;&lt;BR /&gt; A) Export the public part (Base64 PEM) &amp;gt;&amp;gt;&amp;gt; certificate.crt&lt;BR /&gt; B) Export the private part&amp;nbsp;(Base64 PEM + select "Export private key") &amp;gt;&amp;gt;&amp;gt; certificate.pem&lt;BR /&gt; You will need to provide a password when selecting the private key&lt;/LI&gt;
&lt;LI&gt;Login to MineMeld via CLI (SSH or VMWare console) and Stop nginx
&lt;P&gt;$ sudo service nginx stop&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Replace the files with a valid certificate and private key&lt;/LI&gt;
&lt;OL&gt;
&lt;LI&gt;A) First rename the original certificate files:
&lt;P&gt;$ sudo mv /etc/nginx/minemeld.cer /etc/nginx/minemeld.cer.bck&lt;BR /&gt; $ sudo mv /etc/nginx/minemeld.pem /etc/nginx/minemeld.pem.bck&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;B) Using&amp;nbsp;&lt;A href="https://winscp.net" target="_blank"&gt;WinSCP&lt;/A&gt;, copy&amp;nbsp;the newly created certificates to the "/tmp" folder&lt;BR /&gt; Then copy the new certificates to the NGINX directory:
&lt;P&gt;$ sudo cp /tmp/xxx.crt /etc/nginx/minemeld.cer&lt;BR /&gt; $ sudo cp /tmp/xxx.pem /etc/nginx/minemeld.pem&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;C) Now restart the MGINX&amp;nbsp;and enter the password for private key (created in step 2.B)
&lt;P&gt;$ sudo service nginx start&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works perfectly.&lt;/P&gt;
&lt;P&gt;We can now see that the MineMeld is using the new certificate and connects to the PaloAlto.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;BUT&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If now we shutdown the MineMeld, either via de CLI (sudo shutdown) or just a hard power off in VMWare,&lt;/P&gt;
&lt;P&gt;If we then boot the appliance again it will not boot anymore but get stuck at:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-11-09 13_35_21-New notification.png" style="width: 800px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/12343iA895768A474C2829/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2017-11-09 13_35_21-New notification.png" alt="2017-11-09 13_35_21-New notification.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can still login using CLI:&lt;/P&gt;
&lt;P&gt;But the cli keeps displaying “initializing minemeld”…..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-11-09 14_18_15-Photos.png" style="width: 615px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/12344i8EC477C524DDE76C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2017-11-09 14_18_15-Photos.png" alt="2017-11-09 14_18_15-Photos.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we press CTRL+C we cancel this and can access the CLI&lt;/P&gt;
&lt;P&gt;ubuntu@minemeld:~$ sudo service nginx status&lt;/P&gt;
&lt;P&gt;* nginx is not running&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I then do sudo service nginx start and enter the PEM pass phrase again, the service run again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ubuntu@minemeld:~$ sudo service nginx start&lt;/P&gt;
&lt;P&gt;Enter PEM pass phrase:&lt;/P&gt;
&lt;P&gt;ubuntu@minemeld:~$ sudo service nginx status&lt;/P&gt;
&lt;P&gt;* nginx is running&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now we can access the GUI again, BUT&lt;/P&gt;
&lt;P&gt;When I try to login via GUI I get following errors even before I try to enter credentials, just opening the page&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-11-09 14_24_14-Settings.png" style="width: 330px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/12345i9BED9BBAD10929D3/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2017-11-09 14_24_14-Settings.png" alt="2017-11-09 14_24_14-Settings.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then when I try my credentials&lt;/P&gt;
&lt;P&gt;Even the default credentials….&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-11-09 14_24_37-Settings.png" style="width: 312px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/12346iB475B3E65E1C9EE4/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2017-11-09 14_24_37-Settings.png" alt="2017-11-09 14_24_37-Settings.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way to resolve this is to delete the appliance and start all over again…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this something known bug?&lt;BR /&gt; Are we doing something&amp;nbsp; wrong?&lt;/P&gt;
&lt;P&gt;Can you help us?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This issue can easily be reproduced using the steps above.&lt;/P&gt;
&lt;P&gt;I have a “broken” minemeld running in our VM if you need more info / files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, a backup of the config taken via de GUI does not include the new certificate installed. Is there a way to export all the config, including the IP config, cert, …&amp;nbsp; so we can restore the machines faster / easier?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 13:46:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/minemeld-hanging-after-reboot/m-p/186219#M99394</guid>
      <dc:creator>mr.linus</dc:creator>
      <dc:date>2017-11-09T13:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: MineMeld hanging after reboot</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/minemeld-hanging-after-reboot/m-p/186256#M99395</link>
      <description>&lt;P&gt;Luigi was so kind as to have a webex and fix the issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The problem:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The certificate.pem file has a password on it -&amp;gt; this breaks the MineMeld on reboot&lt;/P&gt;
&lt;P&gt;(if you used a certificate.pem file without password, you are safe)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;BR /&gt;1) remove the password from the certificate.pem file before&amp;nbsp;importing it!!!&lt;/P&gt;
&lt;P&gt;2) if already imported (and device not rebooted yet, so still working), you&amp;nbsp;need to&amp;nbsp;re-import&amp;nbsp;the certificate.pem file WITHOUT the password, restart the service and reboot the MineMeld. Using the same procedure as in the install guide I provided.&lt;/P&gt;
&lt;P&gt;3) If device was rebooten and is now in a hanging state as described in my PA community article you can still access the device using SSH, re-import new certificate without password, restart service, reboot. All other config will be retained!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: You can use openssl to remove the password (PaloAlto will not let you export the certifcate.pem file without a password on it)&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;openssl rsa -in minemeld.pem -out minemeld2.pem&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 15:20:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/minemeld-hanging-after-reboot/m-p/186256#M99395</guid>
      <dc:creator>mr.linus</dc:creator>
      <dc:date>2017-11-09T15:20:42Z</dc:date>
    </item>
  </channel>
</rss>

