From owner-freebsd-ports@FreeBSD.ORG Fri May 31 20:57:56 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 867CD656; Fri, 31 May 2013 20:57:56 +0000 (UTC) (envelope-from bw.mail.lists@gmail.com) Received: from mail-ea0-x230.google.com (mail-ea0-x230.google.com [IPv6:2a00:1450:4013:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id E9F47C40; Fri, 31 May 2013 20:57:55 +0000 (UTC) Received: by mail-ea0-f176.google.com with SMTP id k11so2073947eaj.7 for ; Fri, 31 May 2013 13:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=ZKjwQrqol1DT36eTtiBNGvs1WN4cAjNeJkc/jzQV4zQ=; b=chEStXAwPLTnbLkowCoH85ZKiknAbRWmYVYUsRA7pysS5ByJ8NJoKYeUP4gXR31L7Z AW7HgSeAiKQDwCQhIhsC9/pnbIvW3sJK/EwnKbpEm9MkuOvJAc/MSoptI7OiGN8oYOLK LblJCJDYuk52dPgUN6g/7SsMT1E61HdLWl4zoGjp7iXBookNGt95988ggwnHo9SaEjTi OhzcQmJwZ1wwfvrx03JGrUktY9h3gstTJM/XNsCo8x/xKfAbigya7S8jUOwN2MBx++FQ eGRYaPSs7HjS4iUFjecFwVGOxzjnBf30/wDHGzXFSNuGIMoBXlPVBojFLOuinJ0q5zOT LdjQ== X-Received: by 10.15.93.193 with SMTP id w41mr14862374eez.22.1370033874989; Fri, 31 May 2013 13:57:54 -0700 (PDT) Received: from [127.0.0.1] (dhcp-089-099-136-227.chello.nl. [89.99.136.227]) by mx.google.com with ESMTPSA id s43sm69343063eem.13.2013.05.31.13.57.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 13:57:52 -0700 (PDT) Message-ID: <51A90EBC.9020309@gmail.com> Date: Fri, 31 May 2013 22:57:32 +0200 From: "bw.mail.lists" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Steve Wills Subject: Re: ruby 1.9 upgrade and puppet References: <51A88F42.5010503@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 May 2013 20:57:56 -0000 >> When updating with portmaster, at install time it says 'could not load >> facter; cannot install' and exits. I had to manually run 'gem install >> facter', then puppet installed. > > It's better to install via the port so that the package management knows > it's there. This could be causing the later problems. > You're right. I guess I stupidly assumed that there isn't a separate port because: http://pastebin.com/5zPcqi35 (it's rather... wide and I'm not sure what the list policy on attachments is) There is no facter in the list of packages to be installed. So I'm guessing a dependency is wrong somewhere? I suppose that would explain why puppet is reporting facter as missing at install time, the wrong version is installed. Forcing a facter reinstall/recompile would fix it. >> However, 'service puppetmaster status' >> was reporting puppet as not running even though it was, so I had to kill >> the running process before 'service puppetmaster start'. I assume this >> is related to $command_interpreter in the rc script being changed from >> ruby18 to ruby19? Although, /usr/local/bin/ruby and >> /usr/local/bin/ruby19 are identical, can't the script use plain ruby >> instead of ruby19? >> > > It would probably be best to kill puppet before the upgrade. Not a problem, but maybe UPDATING should be updated? > >> For poudriere, puppet failed, still facter: >> >> =======================>> ============================ >> ===> Installing for puppet-3.1.1_2 >> ===> Generating temporary packing list >> ===> Checking if sysutils/puppet already installed >> ===> Creating users and/or groups. >> Creating group `puppet' with gid `814'. >> Creating user `puppet' with uid `814'. >> ftools not found. Using FileUtils instead.. >> Could not load facter; cannot install >> *** [do-install] Error code 255 >> >> Stop in /usr/ports/sysutils/puppet. >> ===> Cleaning for puppet-3.1.1_2 >> build of /usr/ports/sysutils/puppet ended at Fri May 31 11:37:10 CEST 2013 >> >> Rebuilding everything with 'poudriere bulk -c' worked fine. I'm aware >> that rebuilding everything isn't needed, but it didn't take that long. > > I'm unable to reproduce any build issues. Well, it's not a problem anymore, now that everything has been rebuilt. This happened once before IIRC. Poudriere is running every night, rebuilding updated packages. I remember seeing puppet fail at some point, but I didn't have time to look at it that day. Next night poudriere decided to rebuild everything for some reason and it got fixed, so I didn't bother taking a second look. I think this was the last puppet update. > >> But then, when upgrading with pkg, again I had to 'gem install facter' >> manually and kill the running script before puppet would restart. > > Could you send me a list of installed system packages and the output of > "gem list"? > Sure: ================================== # pkg info | awk '{print $1}' arping-2.09_2 augeas-1.0.0 bash-4.2.42 dmidecode-2.11 emacs-nox11-24.3_8,3 gettext-0.18.1.1_1 libevent-1.4.14b_2 libexecinfo-1.1_3 libffi-3.0.13 libiconv-1.14_1 libnet11-1.1.6_1,1 libxml2-2.8.0_2 libyaml-0.1.4_2 lsof-4.88.d,8 nginx-1.4.1,1 ngrep-1.45 openssl-1.0.1_8 pcre-8.32 pkg-1.0.12_1 pkgconf-0.9.2_1 puppet-3.1.1_2 ruby-1.9.3.429,1 ruby19-gems-1.8.25 ruby19-iconv-1.9.3.429,1 rubygem-bzip2-0.2.7 rubygem-facter-1.6.18_1 rubygem-hiera-1.1.2 rubygem-json_pure-1.7.7 rubygem-ruby-augeas-0.5.0 sudo-1.8.6.p8 tmux-1.8 vim-lite-7.3.669_2 # gem list *** LOCAL GEMS *** bzip2-ruby (0.2.7) facter (1.7.1) hiera (1.1.2) json_pure (1.7.7) ruby-augeas (0.5.0) ================================== There's a difference in version between the facter that pkg knows it's installed and the one ruby knows about, that's because this is one of the systems where I installed facter manually. I still have systems that aren't updated if you need some info from those, but none that are to be updated with portmaster. Puppet is the only reason why ruby is installed at all, everything there is puppet related.