Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Aug 2020 16:42:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 248502] Running multiple concurrent instances of freebsd-update(8) cause weird errors
Message-ID:  <bug-248502-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248502

            Bug ID: 248502
           Summary: Running multiple concurrent instances of
                    freebsd-update(8) cause weird errors
           Product: Base System
           Version: 12.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: moviuro+freebsd@gmail.com

I tried using freebsd-update(8) at once to update both my system (on /) and=
 my
basejail. It did not end well.

=C2=A0 # freebsd-update fetch
=C2=A0 # freebsd-update -b /usr/jails/basejails/12.1_amd64 fetch # at the s=
ame time

This will cause lots of weird errors (but it didn't actually break anything,
which is a relief):

* Checksum mismatch
* Missing files (patchlist, files.wanted, filelist)
* Patch count errors (was that 21 patches? or 278?)
* etc.

Expected behavior:

* Either fail "another instance of freebsd-update(8) is running in workdir:
[...] Remove the lockfile (/path) if you're sure about it."
* Or gracefully handle multiple concurrent freebsd-update(8) by using a
specific subdirectory in workdir (e.g. /var/db/freebsd-update/Lw=3D=3D and
L3Vzci9qYWlscy9iYXNlamFpbHMvMTIuMV9hbWQ2NA=3D=3D, respectively - just a bas=
e64
encode of the basedir)

https://github.com/freebsd/freebsd/blob/6b0fd688d5fee8dfd4e0a28ae52741be85d=
c80ea/usr.sbin/freebsd-update/freebsd-update.sh#L137-L143

https://github.com/freebsd/freebsd/blob/6b0fd688d5fee8dfd4e0a28ae52741be85d=
c80ea/usr.sbin/freebsd-update/freebsd-update.sh#L1139-L1142

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248502-227>