From owner-freebsd-jail@freebsd.org Mon Oct 30 07:50:28 2017 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB846E56A28 for ; Mon, 30 Oct 2017 07:50:28 +0000 (UTC) (envelope-from luke@solentwholesale.com) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9CCAF7C57E for ; Mon, 30 Oct 2017 07:50:28 +0000 (UTC) (envelope-from luke@solentwholesale.com) Received: by mail-io0-x236.google.com with SMTP id b186so25124070iof.8 for ; Mon, 30 Oct 2017 00:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solentwholesale.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nQerMpXgpu5ctbsBJlILmO06bcEv4y4gdw6puOpkn3o=; b=dPMiZEIFNBL0Mx0qBaJozvmG2qAPWQCOBoUkv7ASVxykeCiJ6GVGf24mWbIdt0m1sh Hwt8BIUsA0pynWC5Q4Rxo8Wu381LhU8YirQkXGxtAXTEMYgtlw8GJOYsZzCwTf0QCBPM BX5NwwMvzn1rtEXobiJUucta82AS3Aaj8kTXo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nQerMpXgpu5ctbsBJlILmO06bcEv4y4gdw6puOpkn3o=; b=dDdx3nBhzK9jceHYkFNsDRe4Ir30UoH8c+m8ubvASZfN0WiUYM8vK6/mCL0ZF9sYbJ CrjqJenL9A62K02sUkmxAgjDPWHY+ApQQmuvdU7qNEpI/Q97XhmghXqNjslP7TTUTFil +8UdffILCRBGX/vYP2ZsJ7LivVxUIQFSeBsicFkcrEWmzqPe8573sw6uzdCtz0Ds4DlJ 3buTKx9LGci1yvmjKRCZufHveFSexHUNP6IPdrX/qn2rZkDCKvZ147xCFHhKrmw6mc54 LLlK/4qOtU7RnxSH3HBOmPTrdlSDrj72BoHzxy0PJhComQssL8KgyAxdTMx5YHYUPDgL 9GHQ== X-Gm-Message-State: AMCzsaVrnCeWWUbrotxyMtC+LaZ1YZNxT23gFcQR4EEjkg9U8TvYs8Qh Z8qOUb0jAU0shuB1Fhr1hsOok/lTrlnfldE18Bl6h1gv X-Google-Smtp-Source: ABhQp+Rb+Hl6qw9R7KBw6FbHy030M3YyVNyu4rqWtj2LDIbp8YSaTrZumraNWshAI0crN8MMr9l7UAyPnjz9DyCEhYs= X-Received: by 10.107.150.20 with SMTP id y20mr10001659iod.212.1509349827667; Mon, 30 Oct 2017 00:50:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.37.146 with HTTP; Mon, 30 Oct 2017 00:50:27 -0700 (PDT) In-Reply-To: <515c9089dfd25ba38df586f1274ff97f@posteo.net> References: <515c9089dfd25ba38df586f1274ff97f@posteo.net> From: Luke Crooks Date: Mon, 30 Oct 2017 07:50:27 +0000 Message-ID: Subject: Re: Updating jails base binaries To: freebsd@posteo.co Cc: freebsd-jail@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2017 07:50:28 -0000 Rami, https://www.freebsd.org/doc/handbook/jails-ezjail.html See section 14.6.4 It works very well, it will take a while to rebuild the base system. Once rebuilt you can then update all jail(s) you have, very painless process. Regards, -- Luke Crooks Solent Wholesale Carpets www.solentwholesale.com On Sun, Oct 29, 2017 at 12:15 AM, Rami wrote: > > > Hi everyone, > I have an issue which I got aware of by accident couple of days ago > while I was upgrading a port in the jail. > I have a jail created using ezjail and running Gitea port in it. > Recently Gitea got updated so after upgrading the installed port in the > jail, the service started complaining as below > > _~ # SERVICE GITEA START _ > > daemon: illegal option -- S > usage: daemon [-cfr] [-p child_pidfile] [-P supervisor_pidfile] > [-t title] [-u user] command arguments ... > > After a bit of investigating we figured out that the binaries in the > jail are behind the host (and the jail kernel release). please check > below > > The jail where the gitea is running > > # freebsd-version > 11.1-RELEASE-p2# uname -a > > #uname -a > FreeBSD git.jail 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 #0: Wed Aug 9 > 11:55:48 UTC 2017 > _ROOT@AMD64-BUILDER.DAEMONOLOGY.NET_:/usr/obj/usr/src/sys/GENERIC amd64 > > # sha256 /usr/sbin/daemon > SHA256 (/usr/sbin/daemon) = > 2f1d9b434cae89c67aefa9798b87fd97bcde2f70b2ba0140b7052ae6536aaf8a > > # /USR/SBIN/DAEMON > _USAGE: DAEMON [-CFR] [-P CHILD_PIDFILE] [-P SUPERVISOR_PIDFILE]_ [-T > TITLE] [-U USER] > COMMAND ARGUMENTS ... > > The host > > ~ % freebsd-version > 11.1-RELEASE-p2~ > > % UNAME -A > _FREEBSD SERVER-LINODE-1-GIT 11.1-RELEASE-P1 FREEBSD 11.1-RELEASE-P1 #0: > WED AUG 9 11:55:48 UTC 2017 > __ROOT@AMD64-BUILDER.DAEMONOLOGY.NET__:/USR/OBJ/USR/SRC/SYS/GENERIC > AMD64_~ > > % sha256 /usr/sbin/daemon > SHA256 (/usr/sbin/daemon) = > 2b029a5c274c6292870caf35470041c2553b768346bb001c97d447877bc9caf5~ > > % /USR/SBIN/DAEMON > _USAGE: DAEMON [-CFRS] [-P CHILD_PIDFILE] [-P SUPERVISOR_PIDFILE]__ [-U > USER] [-O OUTPUT_FILE] [-T TITLE]__ [-L SYSLOG_FACILITY] [-S > SYSLOG_PRIORITY]_ [-T SYSLOG_TAG] [-M OUTPUT_MASK] > _COMMAND ARGUMENTS ..._ > > I will always update the jails using > # EZJAIL-ADMIN UPDATE -U > > and the ports > _# EZJAIL-ADMIN UPDATE -P_ > so it seems the kernel been updated yet not the binaries.... can anyone > please advise me to what is the best way to keep the whole system > kernel, base, and ports up to date in the jail (and keep the base > binaries and kernel match the same release) > > Thanks so much > Rami > > > _______________________________________________ > freebsd-jail@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" >