FreeBSD

16 views
Skip to first unread message

Andrew Moschou

unread,
Oct 4, 2016, 8:09:05 AM10/4/16
to Phusion Passenger Discussions
Hello,

I seem to have Passenger almost ready on a FreeBSD site. I have:

$ passenger-config validate-install

What would you like to validate?

Use <space> to select.

If the menu doesn't display correctly, press '!'


 ‣ ⬢  Passenger itself

   ⬡  Apache


-------------------------------------------------------------------------


 * Checking whether this Passenger install is in PATH...

 * Checking whether there are no other Passenger installations...


Everything looks good. :-)


I would like to have it running standalone. When I do passenger start, I get:


$ passenger start

 --> Downloading a Phusion Passenger agent binary for your platform

     Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.30/agent-x86_64-freebsd.tar.gz: The requested URL returned error: 404 

     Trying next mirror...

     Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.30/agent-x86_64-freebsd.tar.gz: The requested URL returned error: 403 Forbidden

     ------------------------------------------

     Sorry, no precompiled agent binary is available for your platform.

/usr/local/lib/ruby/2.3/fileutils.rb:717:in `remove_entry_secure': parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: "/home/tmp/passenger-install.1yo6k18" (parent directory mode 40777) (ArgumentError)

from /home/private/opt/passenger/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/utils/tmpio.rb:72:in `ensure in mktmpdir'

from /home/private/opt/passenger/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/utils/tmpio.rb:72:in `mktmpdir'

from /home/private/opt/passenger/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/config/install_standalone_runtime_command.rb:58:in `run'

from /home/private/opt/passenger/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb:264:in `install_runtime'

from /home/private/opt/passenger/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb:222:in `lookup_runtime_and_ensure_installed'

from /home/private/opt/passenger/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb:55:in `run'

from /home/private/opt/passenger/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/standalone/main.rb:51:in `run!'

from /home/private/opt/passenger/passenger-5.0.30/bin/passenger:45:in `<main>'


The same happens whether I install from tarball or from RubyGem. I don't mind compiling, but I don't know how to go about doing this and how to use the newly created binaries.

It seems odd that by following the docs, I can't get past "passenger start". Is it worth putting an issue on Github?

Thanks,
Andrew

Daniel Knoppel

unread,
Oct 4, 2016, 9:13:06 AM10/4/16
to Phusion Passenger Discussions
According to the error message there's something wrong with the temp folder you appear to be using: "parent directory is world writable, FileUtils#remove_entry_secure does not work"

It looks like you've customized it to /home/temp but not with the correct access rights?

- Daniel

Andrew Moschou

unread,
Oct 4, 2016, 8:44:58 PM10/4/16
to Phusion Passenger Discussions
Thanks for that clue. In my environment, I'm unable to do anything about /home/tmp, but I set $TMPDIR to something else.
Reply all
Reply to author
Forward
0 new messages