From owner-freebsd-ports@FreeBSD.ORG Mon Oct 28 11:21:28 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 820A77FA for ; Mon, 28 Oct 2013 11:21:28 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from eu1sys200aog106.obsmtp.com (eu1sys200aog106.obsmtp.com [207.126.144.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B169826CB for ; Mon, 28 Oct 2013 11:21:27 +0000 (UTC) Received: from mail-wg0-f52.google.com ([74.125.82.52]) (using TLSv1) by eu1sys200aob106.postini.com ([207.126.147.11]) with SMTP ID DSNKUm5IoddLsSn9OAnxp5EX2Qdmd8aC11WZ@postini.com; Mon, 28 Oct 2013 11:21:27 UTC Received: by mail-wg0-f52.google.com with SMTP id k14so1607770wgh.19 for ; Mon, 28 Oct 2013 04:21:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:message-id:to:subject:cc :reply-to:in-reply-to; bh=vxZpxjk8VDPBSqXEdr5UG05jqS54wYL7AxADfnjZXM4=; b=ICpmCAoXXrjSUzpba2sBWWAa7Sdcni4H5uvHrbcJe8PuhCBU92gjk2NiZAVm7EC3BJ tzY5ey4vZJlBAVlOS7GY7Olybg0wu0aDItn99AgkYsSEvGY+rolf3TKHbBYCHLFzd1uR UIoqVY11gNolgoi9ceFzrpmVtHydvrR9W/8CVB5hfAUmydo73hGqIQky9/KnjN8CCE6c XILQ6JBYYbOu0bp7wX2R5pzALkCinHzuxicdrn7TpFp7/DVYHF7DksaPPCAJXnXkc0C/ UD87Eix8aVIAqJAYbY0g+Po91zDbsZ0ZdB7NfyocJYvcrijepWfeiYavPRfW0A/2cZ4p Y+Xg== X-Gm-Message-State: ALoCoQliHYS5A4wvyWyhML3R2zovUMSNwHcENyc3IIQ0uNVT8ecuRTT7bn9Tz4RCnOyA/dPZR/48VE83HMagu9cRZnKBdHcH6F65Smx1N4iHGuLb6i4fJBxyH7UOJCvt8ykV+mAHg5bgng1s64trEYy6Z5pahNbeRxGTf39SGVVymM12eVn6JRk= X-Received: by 10.180.102.234 with SMTP id fr10mr8555872wib.54.1382959265175; Mon, 28 Oct 2013 04:21:05 -0700 (PDT) X-Received: by 10.180.102.234 with SMTP id fr10mr8555864wib.54.1382959265044; Mon, 28 Oct 2013 04:21:05 -0700 (PDT) Received: from mech-cluster241.men.bris.ac.uk (mech-cluster241.men.bris.ac.uk. [137.222.187.241]) by mx.google.com with ESMTPSA id mw9sm23660733wib.0.2013.10.28.04.21.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2013 04:21:04 -0700 (PDT) Sender: Anton Shterenlikht Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.7/8.14.6) with ESMTP id r9SBL1Yq015357 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 28 Oct 2013 11:21:01 GMT (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.7/8.14.6/Submit) id r9SBL0uS015356; Mon, 28 Oct 2013 11:21:00 GMT (envelope-from mexas) Date: Mon, 28 Oct 2013 04:21:04 -0700 (PDT) From: Anton Shterenlikht Message-Id: <201310281121.r9SBL0uS015356@mech-cluster241.men.bris.ac.uk> To: bsam@passap.ru, mexas@bris.ac.uk Subject: poudriere bug [WAS: Re: poudriere zfs setup help ] In-Reply-To: <526A46EA.9080202@passap.ru> Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bris.ac.uk List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2013 11:21:28 -0000 >From bsam@passap.ru Fri Oct 25 11:47:07 2013 >>>>>> I'm getting this error: >>>>>> => SHA256 Checksum OK for pkg-1.1.4.tar.xz. >>>>>> mkdir: /usr/ports/ports-mgmt/pkg/work: Read-only file system >>>>>> *** Error code 1 >>>>>> >>>>>> So something is wrong with my setup? >>>>>> Does this look all right: >>>>>> >>>>>> # poudriere jails -l >>>>>> JAILNAME VERSION ARCH METHOD PATH >>>>>> ia64 10.0-ALPHA5 r256218 ia64 svn+https /pdr/jails/ia64 >>>>>> # poudriere ports -l >>>>>> PORTSTREE METHOD PATH >>>>>> default svn+https /pdr/ports/default >>>>>> # df >>>>>> Filesystem 1K-blocks Used Avail Capacity Mounted on >>>>>> /dev/da0p2 60931274 49946430 6110344 89% / >>>>>> devfs 1 1 0 100% /dev >>>>>> /dev/da0p1 409504 1184 408320 0% /efi >>>>>> tank/poudriere/data 31736572 1290 31735281 0% /pdr/data >>>>>> tank/poudriere/jails/ia64 33931466 2196185 31735281 6% /pdr/jails/ia64 >>>>>> tank/poudriere/ports/default 32633749 898468 31735281 3% /pdr/ports/default >>>>>> tank 31735313 32 31735281 0% /tank >>>>>> tank/poudriere 31735314 33 31735281 0% /tank/poudriere >>>>>> tank/poudriere/jails 31735312 31 31735281 0% /tank/poudriere/jails >>>>>> tank/poudriere/ports 31735312 31 31735281 0% /tank/poudriere/ports >>>>>> # >>>>>> >>>>>> # grep "^[A-Z]" /usr/local/etc/poudriere.conf >>>>>> ZPOOL=tank >>>>>> FREEBSD_HOST=https://svn0.eu.freebsd.org >>>>>> RESOLV_CONF=/etc/resolv.conf >>>>>> BASEFS=/pdr >>>>>> USE_PORTLINT=yes >>>>>> USE_TMPFS=yes >>>>>> DISTFILES_CACHE=/usr/ports/distfiles >>>>>> SVN_HOST=svn0.eu.FreeBSD.org >>>>>> CHECK_CHANGED_OPTIONS=verbose >>>>>> CHECK_CHANGED_DEPS=yes >>>>>> PKG_REPO_SIGNING_KEY=/root/pkg.key >>>>>> CCACHE_DIR=/var/cache/ccache >>>>>> SAVE_WRKDIR=yes >>>>>> # >>>>>> >>>>>> What am I missing? >>>>>> >>>>>> On another box I set up poudriere with no zfs >>>>>> and it works all right. So I think I messed up >>>>>> the zfs setup. >>>>> >>>>> You may try to use "poudriere testport -i ...". Then poudriere will >>>>> not umount jail (it will be umounted when you exit the jail command >>>>> propmt) and you may explore the system (i.e. mount, jls, etc.) to >>>>> find out what's going on. >>>> >>>> ok, so after a failure, still in a jail: >>>> >>>> root@ia64-default:~ # df >>>> Filesystem 1K-blocks Used Avail Capacity Mounted on >>>> tank/poudriere/jails/ia64-default-ref 33930819 2198542 31732277 6% / >>>> root@ia64-default:~ # ls -al /usr/ports/ports-mgmt/pkg >>>> total 15 >>>> drwxr-xr-x 3 root wheel 8 Oct 9 13:23 . >>>> drwxr-xr-x 85 root wheel 86 Oct 9 13:23 .. >>>> -rw-r--r-- 1 root wheel 2544 Oct 9 13:23 Makefile >>>> -rw-r--r-- 1 root wheel 127 Oct 9 13:23 distinfo >>>> drwxr-xr-x 2 root wheel 13 Oct 9 13:23 files >>>> -rw-r--r-- 1 root wheel 87 Oct 9 13:23 pkg-descr >>>> -rw-r--r-- 1 root wheel 73 Oct 9 13:23 pkg-message >>>> -rw-r--r-- 1 root wheel 1420 Oct 9 13:23 pkg-plist >>>> root@ia64-default:~ # whoami >>>> root >>>> root@ia64-default:~ # mkdir /usr/ports/ports-mgmt/pkg/work >>>> mkdir: /usr/ports/ports-mgmt/pkg/work: Read-only file system >>>> root@ia64-default:~ # >>>> >>>> On ufs this would mean something is seriously wrong. >>>> But on zfs, I'm not so sure. >>>> Perhaps I'm not understanding it right. >>> >>> Actually I meant to investigate host, not jail. Jail ment to just >>> exist. Sorry to be not clear. (I usually use sysutils/tmux to have >>> one seccion and several terminals at a host.) So look at commands >>> (at the host, not in the jail): mount, jls. Does somtethig looks >>> suspicious? >> >> Still no luck. Now I cannot even get 'poudriere testport -i' >> to leave the jail intact. I get: >> >> # poudriere testport -i -o ports-mgmt/pkg -j ia64 >> ====>> Creating the reference jail... done >> *skip* >> => SHA256 Checksum OK for pkg-1.1.4.tar.xz. >> mkdir: /usr/ports/ports-mgmt/pkg/work: Read-only file system >> *** Error code 1 >> >> Stop. >> make[1]: stopped in /usr/ports/ports-mgmt/pkg >> *** Error code 1 >> >> Stop. >> make: stopped in /usr/ports/ports-mgmt/pkg >> ====>> Cleaning up >> ====>> Umounting file systems >> # >> >> I also tried "-I" option - still the same - the jail >> is unmounted after the failure. >> >> This is poudriere-3.0.11. >> >> What else can I try? > >Investigate your system as I had described earlier. The root cause of this seems to be that the poudriere ports tree is nullfs mounted read-only. I don't know why, but this seems to be a bug. I updated this ticket, which seems to report a similar issue: https://fossil.etoilebsd.net/poudriere/tktview?name=15bf9880c4 Thanks Anton