<?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: Automation of GlobalProtect installation in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/automation-of-globalprotect-installation/m-p/412322#M92819</link>
    <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/184199"&gt;@Villabrille&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is your connection method configured as ? Is your connection method set to 'on-demand' ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This exact issue has been discussed several times ... any tips on these pages ?:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/general-topics/unable-to-disconnect-global-protect-in-linux-machine/td-p/303359" target="_blank"&gt;https://live.paloaltonetworks.com/t5/general-topics/unable-to-disconnect-global-protect-in-linux-machine/td-p/303359&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/general-topics/connection-issues-with-globalprotect-vpn/td-p/234849" target="_blank"&gt;https://live.paloaltonetworks.com/t5/general-topics/connection-issues-with-globalprotect-vpn/td-p/234849&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any GP logs from the time the issue occurs you can look at ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;-Kiwi.&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 10 Jun 2021 09:28:41 GMT</pubDate>
    <dc:creator>kiwi</dc:creator>
    <dc:date>2021-06-10T09:28:41Z</dc:date>
    <item>
      <title>Automation of GlobalProtect installation</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/automation-of-globalprotect-installation/m-p/412069#M92795</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to automate the deployment of GlobalProtect software in laptops with Ubuntu installed and I have faced an issue not easy to explain. The operating system is being deployed automatically in chroot mode, and one of the last steps involves installing the package of GlobaProtect as root ( dpkg -i GlobalProtect-latest.deb)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the laptop is restarted and a user logins, if the user tries to run the globalprotect command, it always receive the message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:~$ globalprotect&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Unable to establish a new GlobalProtect connection as a GlobalProtect connection is already established from this Linux system by the same user or another user.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does not matter the attempts to reinstall the software later (With sudo or directly as root) the software does not allow any option and only shows above message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm the software runs as root originally, or as under the user name after reinstallation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Preparing to unpack .../GlobalProtect_deb-5.2.6.0-18.deb ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;gp service is running and we need to stop it...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Disable service...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;PanGPA is running and we need to stop it...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;stop gpa for sudo user username&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Disable gpa user service...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Start upgrading gp...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Unpacking globalprotect (5.2.6-18) over (5.2.6-18) ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;systemd is detected.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Setting up globalprotect (5.2.6-18) ...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Enable gp service...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Starting gp service...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;enable ping&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;net.ipv4.ping_group_range = 0 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Starting gpa...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;start GPA for sudo user username&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Processing triggers for man-db (2.9.1-1) ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;~$ ps -ef | grep global&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;root 1559 1 0 15:16 ? 00:00:00 /opt/paloaltonetworks/globalprotect/PanGPS&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;root 2522 2510 0 15:35 ? 00:00:00 /opt/paloaltonetworks/globalprotect/PanGPA start&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;username 2663 2654 0 15:35 ? 00:00:00 /opt/paloaltonetworks/globalprotect/PanGPA start&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clue why the messages keeps suggesting that there is any connection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 07:17:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/automation-of-globalprotect-installation/m-p/412069#M92795</guid>
      <dc:creator>Villabrille</dc:creator>
      <dc:date>2021-06-10T07:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automation of GlobalProtect installation</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/automation-of-globalprotect-installation/m-p/412322#M92819</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/184199"&gt;@Villabrille&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is your connection method configured as ? Is your connection method set to 'on-demand' ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This exact issue has been discussed several times ... any tips on these pages ?:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/general-topics/unable-to-disconnect-global-protect-in-linux-machine/td-p/303359" target="_blank"&gt;https://live.paloaltonetworks.com/t5/general-topics/unable-to-disconnect-global-protect-in-linux-machine/td-p/303359&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/general-topics/connection-issues-with-globalprotect-vpn/td-p/234849" target="_blank"&gt;https://live.paloaltonetworks.com/t5/general-topics/connection-issues-with-globalprotect-vpn/td-p/234849&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any GP logs from the time the issue occurs you can look at ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;-Kiwi.&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Jun 2021 09:28:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/automation-of-globalprotect-installation/m-p/412322#M92819</guid>
      <dc:creator>kiwi</dc:creator>
      <dc:date>2021-06-10T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Automation of GlobalProtect installation</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/automation-of-globalprotect-installation/m-p/412367#M92822</link>
      <description>&lt;P&gt;Hi Kiwi,&lt;/P&gt;&lt;P&gt;thanks for you reply. Those links have been reviewed, but the assumption that the issue is on the server side or that it gets solved with &lt;EM&gt;disconnect &lt;/EM&gt;or&lt;EM&gt; disable&lt;/EM&gt; on the client are&amp;nbsp;pointing to the incorrect source. There is no setup performed or any account configured, so how can the application knows anything about the server as it is suggested on the links?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For those interested, you can try the solution suggested below (it worked in my case at all times that I tested it)....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is clearly not at the server side, since we cannot run any&amp;nbsp; &amp;nbsp;&lt;EM&gt;globalprotect disable&amp;nbsp;&amp;nbsp;&lt;/EM&gt; or&amp;nbsp; &amp;nbsp;&lt;EM&gt;globalprotect disconnect&lt;/EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;the application is not accepting any modifier (just outputting the error)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me add that at that point I just installed as root (without any account logged in) and stated that I still did not configure either any account or any server where to connect, it's clearly not a matter of missconfiguration on the server side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me share the experiences here. You can easily reproduce the error by running the installation of the package as root (only) or in chroot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The installation of the package is performed by root in chroot mode, or just with the server on but without any other account logged in the GDM or any X-Window (no graphical login). So the processes are started by root only (both&amp;nbsp;PanGPS and&amp;nbsp;PanGPA)&lt;/LI&gt;&lt;LI&gt;If you login by SSH (with a non-root account) and you run the installation through sudo, it still fails and shows the same message (now the processes are started&amp;nbsp;PanGPS as root and PanGPA as the user logged through SSH). But still same annoying message.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run the following commands:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:-$ sudo systemctl stop gpd&amp;nbsp; &amp;nbsp;--&amp;gt; Unfortunately, it does not do anything, but....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:-$ sudo systemctl disable gpd&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now there will be two PIDs, one (2953 as an example) belongs to the PanGPA and the second (2571 as an example) belongs to the&amp;nbsp;/lib/systemd/systemd --user that you also have to kill otherwise the system will relaunch PanGPA.&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;:-$ ps -ef | grep global&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;root &lt;STRONG&gt;2953 2571&lt;/STRONG&gt; 0 15:19 ? 00:00:00 /opt/paloaltonetworks/globalprotect/PanGPA start&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kill both:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:-$ sudo kill -9 $(ps -ef | grep -v grep | grep global | awk '{ print $2 " "$3}')&amp;nbsp; &amp;nbsp;--&amp;gt; Or kill them separately with kill -9&amp;nbsp;2953 and kill -9 2571 (or the PID that the output shows).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, now you are forced to initiate a X-Window session in the computer (it does not work remotely through SSH) and then you have to run in a terminal window:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;:-$&amp;nbsp;sudo dpkg-reconfigure globalprotect&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Magia! now you are able to run &lt;EM&gt;globalprotect&lt;/EM&gt;&amp;nbsp; (as a normal user) without the annoying message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(eventually, the system can show you a message suggesting to run &lt;EM&gt;systemctl --user daemon-reload&lt;/EM&gt;, you can run it as well.&lt;/P&gt;&lt;P&gt;Then you can run &lt;EM&gt;globalprotect connect --portal&amp;nbsp; host.supersecure.org&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: All those commands where using the&amp;nbsp;GlobalProtect_deb-5.2.6.0-18.deb version (not the UI version, since it does not integrate at all in Ubuntu, the GlobalProtect GUI Window is being showed at login, but if you click anywhere else, the window disappear and you cannot find it anymore &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 14:25:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/automation-of-globalprotect-installation/m-p/412367#M92822</guid>
      <dc:creator>Villabrille</dc:creator>
      <dc:date>2021-06-10T14:25:14Z</dc:date>
    </item>
  </channel>
</rss>

