{"action":"created","issue":{"url":"https://api.github.com/repos/phusion/passenger/issues/1394","labels_url":"https://api.github.com/repos/phusion/passenger/issues/1394/labels{/name}","comments_url":"https://api.github.com/repos/phusion/passenger/issues/1394/comments","events_url":"https://api.github.com/repos/phusion/passenger/issues/1394/events","html_url":"https://github.com/phusion/passenger/issues/1394","id":59432540,"number":1394,"title":"Phusion passenger failing to download nginx when it should be able to","user":{"login":"dantman","id":53399,"avatar_url":"https://avatars.githubusercontent.com/u/53399?v=3","gravatar_id":"","url":"https://api.github.com/users/dantman","html_url":"https://github.com/dantman","followers_url":"https://api.github.com/users/dantman/followers","following_url":"https://api.github.com/users/dantman/following{/other_user}","gists_url":"https://api.github.com/users/dantman/gists{/gist_id}","starred_url":"https://api.github.com/users/dantman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantman/subscriptions","organizations_url":"https://api.github.com/users/dantman/orgs","repos_url":"https://api.github.com/users/dantman/repos","events_url":"https://api.github.com/users/dantman/events{/privacy}","received_events_url":"https://api.github.com/users/dantman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-02T02:44:29Z","updated_at":"2015-03-02T20:23:03Z","closed_at":"2015-03-02T12:26:11Z","body":"Phusion passenger standalone is attempting to download nginx 1.6.2 and fails. However curl has no issue downloading the tarball which passenger says fails.\r\n\r\n```console\r\nvagrant@akan:/web/otakuseek.com/var$ sudo /usr/local/rvm/wrappers/passenger/passenger start --min-instances 1 --max-pool-size 4 --address 127.0.0.1 --port 3060 --user vagrant --app-type node --startup-file \"../otakucore/bin/www\" --environment \"production\" --friendly-error-pages\r\n --> Downloading Phusion Passenger support binaries for your platform\r\n     Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/4.0.59/support-x86_64-linux.tar.gz: Resolving timed out after 4520 milliseconds\r\n     Trying next mirror...\r\n     Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/4.0.59/support-x86_64-linux.tar.gz: Resolving timed out after 4521 milliseconds\r\n     No binaries are available for your platform. Will compile them from source\r\n --> Downloading web helper for your platform\r\n     Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/4.0.59/webhelper-1.6.2-x86_64-linux.tar.gz: Resolving timed out after 4520 milliseconds\r\n     Trying next mirror...\r\n     Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/4.0.59/webhelper-1.6.2-x86_64-linux.tar.gz: Resolving timed out after 4522 milliseconds\r\n     No binary is available for your platform. Will compile it from source.\r\n\r\nChecking for required software...\r\n\r\n * Checking for C compiler...\r\n      Found: yes\r\n      Location: /usr/bin/cc\r\n * Checking for C++ compiler...\r\n      Found: yes\r\n      Location: /usr/bin/c++\r\n * Checking for GNU make...\r\n      Found: yes\r\n      Location: /usr/bin/make\r\n * Checking for OpenSSL support for Ruby...\r\n      Found: yes\r\n * Checking for RubyGems...\r\n      Found: yes\r\n * Checking for Rake (associated with /usr/local/rvm/gems/ruby-2.2.0@passenger/wrappers/ruby)...\r\n      Found: yes\r\n      Location: /usr/local/rvm/gems/ruby-2.2.0@passenger/wrappers/rake\r\n * Checking for rack...\r\n      Found: yes\r\n * Checking for Curl development headers with SSL support...\r\n      Found: yes\r\n      curl-config location: /usr/bin/curl-config\r\n      Header location: /usr/include/curl/curl.h\r\n      Version: libcurl 7.37.1\r\n      Usable: yes\r\n      Supports SSL: yes\r\n * Checking for OpenSSL development headers...\r\n      Found: yes\r\n      Location: /usr/include/openssl/ssl.h\r\n * Checking for Zlib development headers...\r\n      Found: yes\r\n      Location: /usr/include/zlib.h\r\n * Checking for PCRE development headers...\r\n      Found: yes\r\n      Location: /usr/include/pcre.h\r\n * Checking for daemon_controller >= 1.1.0...\r\n      Found: yes\r\n      Installed version: 1.2.0\r\n\r\nInstalling Phusion Passenger Standalone...\r\nDownloading web helper source code...\r\n*** Could not download http://nginx.org/download/nginx-1.6.2.tar.gz: Resolving timed out after 4523 milliseconds\r\n\r\n\r\n--------------------------------------------\r\n\r\nUnable to download or extract Nginx source tarball\r\n\r\nPossible reasons:\r\n\r\n * You are not connected to the Internet.\r\n   If this is the case, then please connect to the Internet and try again.\r\n\r\n * The URL that Passenger Standalone tried to download from no longer exists.\r\n   Please file a bug report if this is the case:\r\n   http://code.google.com/p/phusion-passenger/issues/list\r\n\r\n * The download was corrupted.\r\n   Please re-run Phusion Passenger Standalone; it will re-download Nginx.\r\n\r\n * Phusion Passenger Standalone is not able to write to /tmp.\r\n   Please fix the permissions for this directory, or run Phusion Passenger\r\n   Standalone as root.\r\n\r\nvagrant@akan:/web/otakuseek.com/var$ sudo /usr/local/rvm/wrappers/passenger/passenger version\r\nPhusion Passenger version 4.0.59\r\n\r\n\"Phusion Passenger\" is a trademark of Hongli Lai & Ninh Bui.\r\nvagrant@akan:/web/otakuseek.com/var$ wget http://nginx.org/download/nginx-1.6.2.tar.gz\r\n--2015-03-02 02:39:03--  http://nginx.org/download/nginx-1.6.2.tar.gz\r\nResolving nginx.org (nginx.org)... ^C\r\nvagrant@akan:/web/otakuseek.com/var$ cd /tmp/\r\nvagrant@akan:/tmp$ curl -O http://nginx.org/download/nginx-1.6.2.tar.gz\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100  785k  100  785k    0     0   121k      0  0:00:06  0:00:06 --:--:--  199k\r\nvagrant@akan:/tmp$ ls\r\nnginx-1.6.2.tar.gz\r\nvagrant@akan:/tmp$ tar -xzf nginx-1.6.2.tar.gz \r\nvagrant@akan:/tmp$ ls\r\nnginx-1.6.2  nginx-1.6.2.tar.gz\r\nvagrant@akan:/tmp$ ls nginx-1.6.2\r\nauto  CHANGES  CHANGES.ru  conf  configure  contrib  html  LICENSE  man  README  src\r\nvagrant@akan:/tmp$ \r\n```"},"comment":{"url":"https://api.github.com/repos/phusion/passenger/issues/comments/76808705","html_url":"https://github.com/phusion/passenger/issues/1394#issuecomment-76808705","issue_url":"https://api.github.com/repos/phusion/passenger/issues/1394","id":76808705,"user":{"login":"dantman","id":53399,"avatar_url":"https://avatars.githubusercontent.com/u/53399?v=3","gravatar_id":"","url":"https://api.github.com/users/dantman","html_url":"https://github.com/dantman","followers_url":"https://api.github.com/users/dantman/followers","following_url":"https://api.github.com/users/dantman/following{/other_user}","gists_url":"https://api.github.com/users/dantman/gists{/gist_id}","starred_url":"https://api.github.com/users/dantman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantman/subscriptions","organizations_url":"https://api.github.com/users/dantman/orgs","repos_url":"https://api.github.com/users/dantman/repos","events_url":"https://api.github.com/users/dantman/events{/privacy}","received_events_url":"https://api.github.com/users/dantman/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T20:23:03Z","updated_at":"2015-03-02T20:23:03Z","body":"Another curious bit, when the agent is installed by `passenger start` it fails to download binaries and compiles things on its own. However if I run the `build-native-support`, `install-agent`, and `install-standalone-runtime` commands directly through `passenger-config` they all manage to download binaries and install without doing any compilation.\r\n\r\nSo I would say that there is some bug in passenger causing the `curl` calls used to implicitly install the passenger binaries to fail when run implicitly through `passenger start`.\r\n\r\n```console\r\nvagrant@akan:/web/otakuseek.com/var$ sudo /usr/local/rvm/wrappers/ruby-2.2.0@passenger5/passenger-config build-native-support\r\n --> Compiling passenger_native_support.so for the current Ruby interpreter...\r\n     (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)\r\n     Compilation succesful. The logs are here:\r\n     /tmp/passenger_native_support-1dipken.log\r\n --> passenger_native_support.so successfully loaded.\r\nvagrant@akan:/web/otakuseek.com/var$ sudo /usr/local/rvm/wrappers/ruby-2.2.0@passenger5/passenger-config install-agent\r\nDownloading a Phusion Passenger agent binary for your platform\r\n\r\nInvoking: curl -f -L -o /tmp/passenger-install.n7fidv/agent-x86_64-linux.tar.gz -s -S --cacert /usr/local/rvm/gems/ruby-2.2.0@passenger5/gems/passenger-5.0.0.rc2/resources/oss-binaries.phusionpassenger.com.crt --connect-timeout 30 --speed-time 30 --speed-limit 1 https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.0.rc2/agent-x86_64-linux.tar.gz\r\nDownload OK!\r\nExtracting precompiled agent binary to /usr/local/rvm/gems/ruby-2.2.0@passenger5/gems/passenger-5.0.0.rc2/buildout/support-binaries...\r\nChecking whether the downloaded binary is usable...\r\nThe downloaded binary is usable.\r\nAgent binary successfully download and installed.\r\nvagrant@akan:/web/otakuseek.com/var$ sudo /usr/local/rvm/wrappers/ruby-2.2.0@passenger5/passenger-config install-standalone-runtime\r\nThe Phusion Passenger agent is already installed.\r\nIf you want to redownload it, re-run this program with the --force parameter.\r\n\r\nDownloading an Nginx 1.6.2 engine for your platform\r\n\r\nInvoking: curl -f -L -o /tmp/passenger-install.1y1ya69/nginx-1.6.2-x86_64-linux.tar.gz -\\# --cacert /usr/local/rvm/gems/ruby-2.2.0@passenger5/gems/passenger-5.0.0.rc2/resources/oss-binaries.phusionpassenger.com.crt --connect-timeout 30 --speed-time 30 --speed-limit 1 https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.0.rc2/nginx-1.6.2-x86_64-linux.tar.gz\r\n######################################################################## 100.0%\r\nDownload OK!\r\nExtracting precompiled Nginx 1.6.2 engine to /usr/local/rvm/gems/ruby-2.2.0@passenger5/gems/passenger-5.0.0.rc2/buildout/support-binaries\r\nChecking whether the downloaded engine is usable...\r\nThe downloaded engine is usable.\r\nNginx 1.6.2 engine successfully download and installed.\r\n```"}}