<?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: Install MineMeld behind the proxy server in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/install-minemeld-behind-the-proxy-server/m-p/199806#M97272</link>
    <description>&lt;P&gt;Just resolved it, in case somebody would be interesting in..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I missed that 'sudo' does not preserve the environment&amp;nbsp; settings by default. Gooing 'root' to the sake of this installation had resolved the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2018 18:01:20 GMT</pubDate>
    <dc:creator>ust_lynt</dc:creator>
    <dc:date>2018-02-09T18:01:20Z</dc:date>
    <item>
      <title>Install MineMeld behind the proxy server</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/install-minemeld-behind-the-proxy-server/m-p/199786#M97271</link>
      <description>&lt;P&gt;Having issue to install the MM behind the proxy, the IP address of MM is whitelisted for any proto/url in the proxy configure.&lt;/P&gt;&lt;P&gt;While the installation is started thru the command&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sudo apt-get install minemeld &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I do see the requests from MM is comming to the proxy and the process of the install seems like goes well enought until at some points it fails with the error&lt;/P&gt;&lt;PRE&gt;minemeld@minemeld-virtual-machine:~$  sudo apt-get install minemeld
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  minemeld
0 upgraded, 1 newly installed, 0 to remove and 335 not upgraded.
Need to get 0 B/24.3 kB of archives.
After this operation, 69.6 kB of additional disk space will be used.
Selecting previously unselected package minemeld.
(Reading database ... 172862 files and directories currently installed.)
Preparing to unpack .../minemeld_0.9.11-2build1_amd64.deb ...
Unpacking minemeld (0.9.11-2build1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up minemeld (0.9.11-2build1) ...
adduser: The user `minemeld' already exists. Exiting.
2018-02-09 07:44:07,254 ERROR:0.9.11 Symbolic link current in /opt/minemeld/engine not found: [Errno 2] No such file or directory: '/opt/minemeld/engine/current'
2018-02-09 07:44:07,254 ERROR:0.9.11 Symbolic link current in /opt/minemeld/www not found: [Errno 2] No such file or directory: '/opt/minemeld/www/current'
2018-02-09 07:44:07,254 ERROR:0.9.11 Symbolic link current in /opt/minemeld/prototypes not found: [Errno 2] No such file or directory: '/opt/minemeld/prototypes/current'
2018-02-09 07:44:07,255 INFO:0.9.11 Current status:
2018-02-09 07:44:07,255 INFO:0.9.11 minemeld-engine: current: None latest: None
2018-02-09 07:44:07,255 INFO:0.9.11 minemeld-webui: current: None latest: None
2018-02-09 07:44:07,255 INFO:0.9.11 minemeld-prototypes: current: None latest: None
2018-02-09 07:49:05,957 CRITICAL:0.9.11 Error running curl: curl: (7) Failed to connect to minemeld-updates.panw.io port 80: Connection timed out

Traceback (most recent call last):
  File "/usr/sbin/minemeld-auto-update", line 787, in &amp;lt;module&amp;gt;
    main()
  File "/usr/sbin/minemeld-auto-update", line 742, in main
    update_package_list(config)
  File "/usr/sbin/minemeld-auto-update", line 443, in update_package_list
    config
  File "/usr/sbin/minemeld-auto-update", line 407, in download_package_list
    curl_options=config.get('curl-options', None)
  File "/usr/sbin/minemeld-auto-update", line 303, in download_via_curl
    stderr=subprocess.STDOUT
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'curl -k  -f -s -A "MineMeld/0.9.11" --show-error http://minemeld-updates.panw.io/stage2/0_9/manifest.json -o /tmp/mmaupackages0nlrvB' returned non-zero exit status 7
 * Restarting nginx nginx                                                                                                                                                                    [ OK ]
 * Restarting statistics collection and monitoring daemon collectd                                                                                                                           [ OK ]
rsyslog stop/waiting
rsyslog start/running, process 10999&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While checking this erro log, I can see it tries to reach&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2018-02-09 07:49:05,957 CRITICAL:0.9.11 Error running curl: curl: (7) Failed to connect to minemeld-updates.panw.io port 80: Connection timed out&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;Command 'curl -k -f -s -A "MineMeld/0.9.11" --show-error http://minemeld-updates.panw.io/stage2/0_9/manifest.json -o /tmp/mmaupackages0nlrvB' returned non-zero exit status 7&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and fails to reach this link on port 80, which is not make sense since while issue the command from minemeld user enverement it works great and catching the files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl  minemeld-updates.panw.io:80
curl -k&amp;nbsp; -f -s -A "MineMeld/0.9.11" --show-error http://minemeld-updates.panw.io/stage2/0_9/manifest.json&lt;/PRE&gt;&lt;P&gt;The weard part is when I trace the logs in the Firewall, it seems like the curl makes the requests to reach minemeld-updates.panw.io:80 directly to the internet while installing the minemeld and ignoring the proxy settings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my quetions is why some of the requests would be directed to proxy while some of them are sent directly to firewall when the MM is installed&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here is my enverentment parameters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;minemeld@minemeld-virtual-machine:~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
http_proxy="http://x.x.x.x:1080/"
https_proxy="https://x.x.x.x:1080/"
ftp_proxy="ftp://x.x.x.x:1080/"
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
HTTP_PROXY="http://x.x.x.x:1080/"
HTTPS_PROXY="https://x.x.x.x:1080/"
FTP_PROXY="ftp://x.x.x.x:1080/"
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com"&lt;/PRE&gt;&lt;PRE&gt;minemeld@minemeld-virtual-machine:~$ cat /etc/apt/apt.conf.d/95proxies
Acquire::http::proxy "http://x.x.x.x:1080/";
Acquire::https::proxy "https://x.x.x.x:1080/";
Acquire::ftp::proxy "ftp://x.x.x.x:1080/";&lt;/PRE&gt;&lt;PRE&gt;minemeld@minemeld-virtual-machine:~$ cat /etc/default/minemeld
export HTTP_PROXY=http://x.x.x.x:1080
export HTTPS_PROXY=https://x.x.x.x:1080&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 16:16:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/install-minemeld-behind-the-proxy-server/m-p/199786#M97271</guid>
      <dc:creator>ust_lynt</dc:creator>
      <dc:date>2018-02-09T16:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Install MineMeld behind the proxy server</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/install-minemeld-behind-the-proxy-server/m-p/199806#M97272</link>
      <description>&lt;P&gt;Just resolved it, in case somebody would be interesting in..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I missed that 'sudo' does not preserve the environment&amp;nbsp; settings by default. Gooing 'root' to the sake of this installation had resolved the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 18:01:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/install-minemeld-behind-the-proxy-server/m-p/199806#M97272</guid>
      <dc:creator>ust_lynt</dc:creator>
      <dc:date>2018-02-09T18:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Install MineMeld behind the proxy server</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/install-minemeld-behind-the-proxy-server/m-p/246632#M97273</link>
      <description>&lt;P&gt;Hello ust_lynt!&lt;BR /&gt;&lt;BR /&gt;Could you please ellaborate on how did you solve this problem?&lt;BR /&gt;&lt;BR /&gt;I've exported proxy settings to&lt;BR /&gt;/etc/apt/apt.conf&lt;BR /&gt;/etc/environment&lt;BR /&gt;/etc/profile&lt;BR /&gt;/etc/default/minemeld&lt;BR /&gt;&lt;BR /&gt;and still no success. I've tried to install it using sudo -i command and directly from root - it didn't help. What did you mean by saying that going root solved your problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;After much struggle, creating configuration file&lt;EM&gt; .curlrc&lt;/EM&gt; in user's home directory (root in my case) finally have resolved this issue. Correct syntax is this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;proxy = &amp;lt;proxy_host&amp;gt;:&amp;lt;proxy_port&amp;gt;&lt;/CODE&gt; &lt;/PRE&gt;
&lt;P&gt;More thoroghly explained here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/7559103/how-to-setup-curl-to-permanently-use-a-proxy" target="_blank"&gt;https://stackoverflow.com/questions/7559103/how-to-setup-curl-to-permanently-use-a-proxy&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 08:07:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/install-minemeld-behind-the-proxy-server/m-p/246632#M97273</guid>
      <dc:creator>ay.marusov</dc:creator>
      <dc:date>2019-01-21T08:07:48Z</dc:date>
    </item>
  </channel>
</rss>

