From owner-freebsd-ports@freebsd.org Sat Feb 17 13:03:37 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E13B0F0B726 for ; Sat, 17 Feb 2018 13:03:36 +0000 (UTC) (envelope-from karli@inparadise.se) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5DDBA7CD39 for ; Sat, 17 Feb 2018 13:03:36 +0000 (UTC) (envelope-from karli@inparadise.se) Received: by mailman.ysv.freebsd.org (Postfix) id 1D21FF0B722; Sat, 17 Feb 2018 13:03:36 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EEFA7F0B721 for ; Sat, 17 Feb 2018 13:03:35 +0000 (UTC) (envelope-from karli@inparadise.se) Received: from mail.inparadise.se (h-246-50.A444.priv.bahnhof.se [155.4.246.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 70F657CD37 for ; Sat, 17 Feb 2018 13:03:34 +0000 (UTC) (envelope-from karli@inparadise.se) Received: from localhost (localhost [127.0.0.1]) by mail.inparadise.se (Postfix) with ESMTP id 74B33417BC for ; Sat, 17 Feb 2018 13:58:05 +0100 (CET) Received: from mail.inparadise.se ([127.0.0.1]) by localhost (mail.inparadise.se [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id kr2iSMVqq4Qe for ; Sat, 17 Feb 2018 13:58:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.inparadise.se (Postfix) with ESMTP id AF6AD417BF for ; Sat, 17 Feb 2018 13:58:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.inparadise.se AF6AD417BF X-Virus-Scanned: amavisd-new at inparadise.se Received: from mail.inparadise.se ([127.0.0.1]) by localhost (mail.inparadise.se [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id M6PTH3CZqd5U for ; Sat, 17 Feb 2018 13:58:04 +0100 (CET) Received: from gametop-wl.inparadise.se (gametop-wl.inparadise.se [172.16.1.131]) by mail.inparadise.se (Postfix) with ESMTPSA id 7B256417BC for ; Sat, 17 Feb 2018 13:58:04 +0100 (CET) Message-ID: <1518872283.2423.18.camel@inparadise.se> Subject: Cannot require library for passenger in ruby From: Karli =?ISO-8859-1?Q?Sj=F6berg?= Reply-To: karli@inparadise.se To: ports@freebsd.org Date: Sat, 17 Feb 2018 13:58:03 +0100 Organization: InParadise Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Feb 2018 13:03:37 -0000 Hey all! My hope for this email is that someone will give me a smack in the right direction, like 'You=C2=B4re holding it wrong!' =C2=A0and that=C2=B4= 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=C2=B4v= e written to the devs and they say it=C2=B4s wrong, it shouldn=C2=B4t be do= ing that, it=C2=B4s 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=C2=B4s not a cure, just a workaround, but it=C2=B4s going to give some breathing room for diagnosin= g the root cause in the mean time. Problem is, I can=C2=B4t get it running! /usr/local/lib/ruby/gems/2.4/gems/foreman_maintain-0.1.3/bin/passenger-re= cycler:10: warning: already initialized constant CONFIG /usr/local/lib/ruby/gems/2.4/gems/foreman_maintain-0.1.3/bin/passenger-re= cycler: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 (L= oadError) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:135:in `rescue in requi= re' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:39:in `require' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= gems/2.4/gems/passenger-5.2.0/src/ruby_supportlib/phusion_passenger.rb:24= 0:in `require_passenger_lib' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= gems/2.4/gems/passenger-5.2.0/src/ruby_supportlib/phusion_passenger/platf= orm_info.rb:26:in `' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:70:in `require' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:70:in `require' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= gems/2.4/gems/foreman_maintain-0.1.3/bin/passenger-recycler:44:in `' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/bin/passe= nger-recycler:23:in `load' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/bin/passe= nger-recycler:23:in `
' It tries to load standard passenger library in 'phusion_passenger/platform_info.rb' and fails, so it stopped. The line looks like this: PhusionPassenger.require_passenger_lib 'utils/tmpio' The thing is, I can=C2=B4t 'require' any modules that way, at all: irb(main):001:0> require 'phusion_passenger' =3D> true irb(main):003:0> PhusionPassenger.require_passenger_lib 'utils/json' LoadError: cannot load such file -- /phusion_passenger/utils/json =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:135:in `require' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:135:in `rescue in requi= re' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:39:in `require' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= gems/2.4/gems/passenger-5.2.0/src/ruby_supportlib/phusion_passenger.rb:24= 0:in `require_passenger_lib' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from (irb):3 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/bin/irb:1= 1:in `
' irb(main):011:0* PhusionPassenger.require_passenger_lib 'utils/lock' LoadError: cannot load such file -- /phusion_passenger/utils/lock =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:135:in `require' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:135:in `rescue in requi= re' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:39:in `require' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= gems/2.4/gems/passenger-5.2.0/src/ruby_supportlib/phusion_passenger.rb:24= 0:in `require_passenger_lib' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from (irb):11 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/bin/irb:1= 1:in `
' irb(main):012:0> PhusionPassenger.require_passenger_lib 'utils/tmpio' LoadError: cannot load such file -- /phusion_passenger/utils/tmpio =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:135:in `require' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:135:in `rescue in requi= re' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= site_ruby/2.4/rubygems/core_ext/kernel_require.rb:39:in `require' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/lib/ruby/= gems/2.4/gems/passenger-5.2.0/src/ruby_supportlib/phusion_passenger.rb:24= 0:in `require_passenger_lib' =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from (irb):12 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/local/bin/irb:1= 1:in `
' Although just requiring it isn=C2=B4t a problem: irb(main):014:0> require 'phusion_passenger/utils/tmpio' =3D> true I am at a complete loss as how to diagnose this further, hoping someone can help me solve this problem. Thanks in advance! /K