Cannot require library for passenger in ruby
saper at saper.info
Sun Feb 18 22:49:04 UTC 2018
On Sat, 17 Feb 2018, Karli Sjöberg via freebsd-ports wrote:
> Hey all!
> My hope for this email is that someone will give me a smack in the
> right direction, like 'You´re holding it wrong!' and that´ll be that,
> but you never know...
> So the background story of it all is that I have a Foreman server that
> is eating all of my RAM, basically no matter how much I give it. I´ve
> written to the devs and they say it´s wrong, it shouldn´t be doing
> that, it´s not a feature :) So they gave me a ruby script that fires
> from cron every 5 mins that checks if there are any passenger processes
> that are going bananas and kills them. It´s not a cure, just a
> workaround, but it´s going to give some breathing room for diagnosing
> the root cause in the mean time. Problem is, I can´t get it running!
> /usr/local/lib/ruby/gems/2.4/gems/foreman_maintain-0.1.3/bin/passenger-recycler:10: warning: already initialized constant CONFIG
> /usr/local/lib/ruby/gems/2.4/gems/foreman_maintain-0.1.3/bin/passenger-recycler:8: warning: previous definition of CONFIG was here
> /usr/local/lib/ruby/site_ruby/2.4/rubygems/core_ext/kernel_require.rb:135:in `require': cannot load such file -- /phusion_passenger/utils/tmpio (LoadError)
> from /usr/local/lib/ruby/site_ruby/2.4/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
> from /usr/local/lib/ruby/site_ruby/2.4/rubygems/core_ext/kernel_require.rb:39:in `require'
> from /usr/local/lib/ruby/gems/2.4/gems/passenger-5.2.0/src/ruby_supportlib/phusion_passenger.rb:240:in `require_passenger_lib'
> from /usr/local/lib/ruby/gems/2.4/gems/passenger-5.2.0/src/ruby_supportlib/phusion_passenger/platform_info.rb:26:in `<top (required)>'
Where did you get passenger 5.2.0?
Can you try to install passenger 5.1.12 from ports and see if it works better?
It looks to my that there is some trouble to figure out the location of Ruby libraries...
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3663 bytes
Desc: S/MIME Cryptographic Signature
More information about the freebsd-ports