Installing through apt-get on ubuntu 16.04 (LTS) fails with HTTP code 403

333 views
Skip to first unread message

Tom Lord

unread,
Nov 11, 2016, 7:01:33 AM11/11/16
to Phusion Passenger Discussions
Hi all,

I have followed the instructions here: https://www.phusionpassenger.com/library/install/nginx/install/oss/xenial/

However, when running `sudo apt-get update`, I get the following error message:

W: The repository 'https://oss-binaries.phusionpassenger.com/apt/passenger xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://oss-binaries.phusionpassenger.com/apt/passenger/dists/xenial/main/binary-amd64/Packages  Received HTTP code 403 from proxy after CONNECT
E: Some index files failed to download. They have been ignored, or old ones used instead.

As a result of this, I am left with the standard /etc/nginx/nginx.conf file, without any Passenger additions.

Is there an issue with the repository, is that installation guide outdated, or could I have done something wrong?

Thanks,
Tom.

Daniel Knoppel

unread,
Nov 11, 2016, 7:36:19 AM11/11/16
to Phusion Passenger Discussions
Repo issues are usually on the client side; the guide is up-to-date.

> Received HTTP code 403 from proxy after CONNECT

Proxy issue?

- Daniel

Tom Lord

unread,
Nov 11, 2016, 8:19:25 AM11/11/16
to Phusion Passenger Discussions
Hi Daniel,

Thanks for the reply.

Could you please elaborate slightly? I'm very much in the dark here about what might be wrong, or how to begin debugging this...

There doesn't seem to be any proxy configuration on the VM; e.g. `env | grep -i proxy` returns nothing. Also, basic web requests like `curl http://www.google.com` work fine.

Thanks,

Daniel Knoppel

unread,
Nov 11, 2016, 11:38:08 AM11/11/16
to Phusion Passenger Discussions
The Passenger forum isn't really the place to get help with generic sysadmin things like apt & proxy config. You can try googling, e.g. I got https://www.unixmen.com/45713-2/

You said you followed the install steps, but maybe it's good to check again by sharing the output you get from installation step 1?

- Daniel

Nick DeSteffen

unread,
Nov 18, 2016, 11:34:10 AM11/18/16
to Phusion Passenger Discussions
I am also having trouble installing Passenger (using https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/aws/nginx/oss/rubygems_rvm/install_passenger.html).  I am receiving 404s and 403s when installing under JRuby.  I tried installing via a standalone install of JRuby and had no luck, so I decided to install RVM to see if that would resolve it without any luck.  

I looked at the URL and none of the files requested by the installer are present:
https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/

Here is the console output:

rvmsudo gem install passenger --no-rdoc --no-ri

speed 9600 baud; line = 0;

eol = M-^?; eol2 = M-^?;

-brkint ixany

-echok

Building native extensions.  This could take a while...

x86_64

Attempting to download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/rubyext-jruby-2.3.1-java-linux.tar.gz into /usr/local/rvm/gems/jruby-9.1.6.0/gems/passenger-5.0.30/download_cache

curl: (22) The requested URL returned error: 404 Not Found

*** Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/rubyext-jruby-2.3.1-java-linux.tar.gz

Attempting to download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.30/rubyext-jruby-2.3.1-java-linux.tar.gz into /usr/local/rvm/gems/jruby-9.1.6.0/gems/passenger-5.0.30/download_cache

curl: (22) The requested URL returned error: 403 Forbidden

*** Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.30/rubyext-jruby-2.3.1-java-linux.tar.gz

Attempting to download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/nginx-1.10.1--linux.tar.gz into /usr/local/rvm/gems/jruby-9.1.6.0/gems/passenger-5.0.30/download_cache

curl: (22) The requested URL returned error: 404 Not Found

*** Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/nginx-1.10.1--linux.tar.gz

Attempting to download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.30/nginx-1.10.1--linux.tar.gz into /usr/local/rvm/gems/jruby-9.1.6.0/gems/passenger-5.0.30/download_cache

curl: (22) The requested URL returned error: 403 Forbidden

*** Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.30/nginx-1.10.1--linux.tar.gz

Attempting to download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/agent--linux.tar.gz into /usr/local/rvm/gems/jruby-9.1.6.0/gems/passenger-5.0.30/download_cache

curl: (22) The requested URL returned error: 404 Not Found

*** Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/agent--linux.tar.gz

Attempting to download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.30/agent--linux.tar.gz into /usr/local/rvm/gems/jruby-9.1.6.0/gems/passenger-5.0.30/download_cache

curl: (22) The requested URL returned error: 403 Forbidden

*** Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.30/agent--linux.tar.gz

sh: 1: make: not found

sh: 1: make: not found

ERROR:  Error installing passenger:

ERROR: Failed to build gem native extension.


    current directory: /usr/local/rvm/gems/jruby-9.1.6.0/gems/passenger-5.0.30/src/helper-scripts/download_binaries

/usr/local/rvm/rubies/jruby-9.1.6.0/bin/jruby -r ./siteconf20161118-25596-196wmnp.rb extconf.rb


current directory: /usr/local/rvm/gems/jruby-9.1.6.0/gems/passenger-5.0.30/src/helper-scripts/download_binaries

make "DESTDIR=" clean


current directory: /usr/local/rvm/gems/jruby-9.1.6.0/gems/passenger-5.0.30/src/helper-scripts/download_binaries

make "DESTDIR="


make failed, exit code 127


Gem files will remain installed in /usr/local/rvm/gems/jruby-9.1.6.0/gems/passenger-5.0.30 for inspection.

Results logged to /usr/local/rvm/gems/jruby-9.1.6.0/extensions/universal-java-9/2.3.0/passenger-5.0.30/gem_make.out

Hongli Lai

unread,
Nov 18, 2016, 11:37:47 AM11/18/16
to phusion-passenger
That precompiled files are not available for download is not really a
problem. The actual problem here is the "sh: make: not found". You
need to have Make installed.
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/phusion-passenger.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phusion-passenger/b0e654d0-9d00-4e46-b648-06f767a2b0cc%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Phusion B.V. | Web Application deployment, scaling, and monitoring solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 63501007 (The Netherlands)

Nick DeSteffen

unread,
Nov 18, 2016, 12:03:08 PM11/18/16
to Phusion Passenger Discussions, hon...@phusion.nl
Awesome, thanks for your help.  That took care of installing the gem, however I am now unable to install Nginx.  OS is Ubuntu 16.04.  Any ideas on why the installer can't find the headers for libcurl?

export VERBOSE=1 && rvmsudo passenger-install-nginx-module


```

-L/usr/lib/x86_64-linux-gnu -lcurl

      Found: yes, but there was an error

      Error: libcurl was found, but it isn't usable. Set VERBOSE=1 to see why.

      curl-config location: /usr/bin/curl-config

      Header location: somewhere, not sure where

      Version: 

      Usable: no

```

Daniel Knoppel

unread,
Nov 21, 2016, 8:41:24 AM11/21/16
to Phusion Passenger Discussions, hon...@phusion.nl
Can you provide the entire verbose output, not a cutoff version?

- Daniel

Nick DeSteffen

unread,
Nov 21, 2016, 9:41:59 PM11/21/16
to Phusion Passenger Discussions, hon...@phusion.nl
Sorry, I just ended up switching to Centos 7 instead of Ubunto 16.04, the problem didn't exist with it.

Thanks,
Nick
Reply all
Reply to author
Forward
0 new messages