Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id C95BC22418B for <~alpine/users@lists.alpinelinux.org>; Sun, 2 Feb 2025 15:16:10 +0000 (UTC) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-436203f1203so5051965e9.2 for <~alpine/users@lists.alpinelinux.org>; Sun, 02 Feb 2025 07:16:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738509368; x=1739114168; darn=lists.alpinelinux.org; h=content-transfer-encoding:mime-version:references:in-reply-to :organization:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=nM0kR65LiHzaaEmatfQUDTr6IQvlpULfQnnlVV7w+60=; b=U7MQo2JqN8JEvFfg0Y8JAGRShAAMPbo9AvD/S9LvPb57hXnqblA2SjFqzW/bWUfU9V kyu6s+L396jOnUEAb/aViu+m8rKaxYcxtK06lalMisUm/xmPoy6iyn9RIzKNbc9C1Vcx x/X2yRcmcZJlOFzKe0o1DCOz3MQtFVUAvMBmp+fTNA3G3Io23CDZuWgivpWoot+HUp48 K9arA81FbTrwwef2r0nKcIjMpsbJXsuaoyrHJ8c/BXuroZ0+6sm0WA+YsqXPX7q1W/EH 2RbxV9csvCuI4AGyj1Idgz2D5BZpe3+Kj2rPRlukvvzZT3JcAFZMOqFpT7SCWaO4bHRW VNmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738509368; x=1739114168; h=content-transfer-encoding:mime-version:references:in-reply-to :organization:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=nM0kR65LiHzaaEmatfQUDTr6IQvlpULfQnnlVV7w+60=; b=JGZMU+CY9S3OnaitQxYHk9eYGInqepVbRGXUmVN5qjub6C+oQRq6yiIlop4woAg4GY v8dDimecHLbMx9hDzt22x9biriZm+q4InVBW1qtfOCh3PjAEfZhZsfzxHC370Th7UuiC VoFVsJnXe97gZJ6cVbO/hHMk/Y8B5bIUXhonbhr40ua6NVrQ5q7zOB5Fpsv5azIft3jE I9JmfMxB1vvT3FQVbfW/UvLDZFWdq1czwae39Am+MkI4FJIS7pDwx96iIcyfyJQPmuwP lvbPP//SaWqonPmB+K1bMMPRxhiNDHZXXGZYvG/0VP199W39h3px2EKZKOTeHdpJte94 tQdg== X-Gm-Message-State: AOJu0YybMkeEdrGzo9kq+LBunVewZrG4AqBQxEPUQUsHI7rNStXQXglv TFpbVbdBxSbcIcE1Y3BVaFhkKORn9aaJGb68LRWZVc5dzB0Y7UQ/JmjtKg== X-Gm-Gg: ASbGncv7KMxWhx9wIdh4lszeSiG4yWnjLAvN/NBM56UE1kQnuyCIcwnq3fOM8ZVEdDt UzmAwfKyAnmKGegIDSXpEo48rYRwXYAGXfgOqjvck9tbr6Wl9vOadkoRZ/rkiiH9scYib08zsTU jWtG/PhcrduasZo2TkxNPQhfIbCBbhlxpiUCRd4W5Mnh/GNFH5l//UpDHfWz/FxoOG3JUAO53HJ x6fjWAXLMxBvbjZ+ZrBT55VL0Iy0EZ++uQzvaMKYwg1bEBH2iEONT9uXDTTYPbuCs2pjqrvacSa YaZ4DnvC X-Google-Smtp-Source: AGHT+IGPMBM7SjJP2sV9h0bYcQGY5xezZ/PMKSiFoDmj32aokXeb79sDPVCNHJLyDASzdK1aQpALqA== X-Received: by 2002:a05:600c:4f8e:b0:436:fb10:d595 with SMTP id 5b1f17b1804b1-438e17dad66mr51273215e9.1.1738509367919; Sun, 02 Feb 2025 07:16:07 -0800 (PST) Received: from cloud.fritzweb.at (cloud.fritzweb.at. [2a00:63c1:e:50::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438dcc2e3a6sm163804495e9.20.2025.02.02.07.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Feb 2025 07:16:07 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by cloud.fritzweb.at (Postfix) with ESMTP id 90FCB800A65; Sun, 2 Feb 2025 16:16:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cloud.fritzweb.at Received: from cloud.fritzweb.at ([127.0.0.1]) by localhost (cloud.fritzweb.at [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6L8e5zQobHtS; Sun, 2 Feb 2025 16:16:04 +0100 (CET) Received: from ntb-norbert.localnet (unknown [62.93.118.77]) by cloud.fritzweb.at (Postfix) with ESMTPSA id 271F3800B1A; Sun, 2 Feb 2025 16:16:04 +0100 (CET) From: MBB To: ~alpine/users@lists.alpinelinux.org, Sertonix Subject: Re: Diskless systems do not boot with latest apk versions from cache Date: Sun, 02 Feb 2025 16:16:03 +0100 Message-ID: <2408933.iZASKD2KPV@ntb-norbert> Organization: Private In-Reply-To: <2324387.irdbgypaU6@ntb-norbert> References: <9410103.CDJkKcVGEf@ntb-norbert> <2700244.k3LOHGUjKi@ntb-norbert> <2324387.irdbgypaU6@ntb-norbert> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Am Sonntag, 2. Februar 2025, 09:11:22 Mitteleurop=C3=A4ische Normalzeit sch= rieb MBB: > Am Samstag, 1. Februar 2025, 14:39:34 Mitteleurop=C3=A4ische Normalzeit s= chrieb MBB: > > Am Samstag, 1. Februar 2025, 13:12:29 Mitteleurop=C3=A4ische Normalzeit= schrieb Sertonix: > > > On Sat Feb 1, 2025 at 9:24 AM CET, MBB wrote: > > > > Hi all! > > > > > > > > I have 3 Raspberry Pis, different PI versions and different Alpine = versions (3.18.9, 3.19.1, 3.19.4). > > > > > > > > All have the same issue.=20 > > > > > > > > I'm doing:=20 > > > > apk update; apk upgrade > > > > > > > > Checking the version of an upgraded binary before reboot, e.g. name= d, looks ok. > > > > > > > > After reboot, it loads an old version even though a newer package i= s available in cache. > > > > > > > > gate [/etc/apk]$ ls -al cache > > > > lrwxrwxrwx 1 root root 22 Feb 1 08:50 cache -> /= media/mmcblk0p1/cache > > > > > > > > gate [/etc/apk/cache]$ ls -altr bind-9* > > > > -rwxr-xr-x 1 root root 207297 Mar 15 2024 bind-9.18.= 24-r1.5aca84cc.apk > > > > -rwxr-xr-x 1 root root 208996 Dec 17 16:37 bind-9.18.= 32-r0.1254446d.apk > > > > -rwxr-xr-x 1 root root 209078 Jan 29 19:44 bind-9.18.= 33-r0.b6697cb2.apk > > > > > > > > gate [/etc/apk/cache]$ named -V > > > > BIND 9.18.32 (Extended Support Version) > > > > running on Linux armv7l 6.6.14-0-rpi #1-Alpine SMP Fri Jan 26 13:40= :47 UTC 2024 > > > > > > > > Is there something I'm doing wrong? > > >=20 > > > It looks correct what you are doing. Could you try if running this > > > commands returns any error? > > >=20 > > > $ apk --simulate add bind=3D9.18.33-r0 --no-network > >=20 > > No errors with this command. > >=20 > > *gate [*~*]$ *doas apk --simulate add bind=3D9.18.33-r0 --no-network=20 > > doas (norbert@gate) password: =20 > > (1/5) Upgrading bind-libs (9.18.32-r0 -> 9.18.33-r0)=20 > > (2/5) Upgrading bind-tools (9.18.32-r0 -> 9.18.33-r0)=20 > > (3/5) Upgrading bind-dnssec-root (9.18.32-r0 -> 9.18.33-r0)=20 > > (4/5) Upgrading bind (9.18.32-r0 -> 9.18.33-r0)=20 > > (5/5) Upgrading bind-openrc (9.18.32-r0 -> 9.18.33-r0)=20 > > OK: 157 MiB in 215 packages >=20 > I removed all outdated bind packages from the cache with the result, that= bind is no longer available after reboot. > After moving the bind*9.18.32-r0*.apk files back into the cache directory= , the service gets restored and starts up without issues after reboot. >=20 > It seems that something's pointing to a specific version. >=20 `apk cache sync` breaks the entire system.=20 This cleans the cache from outdated APKINDEX* and *.apk files.=20 But after reboot nothing is loaded and the boot process ends with a `(none)= local:` prompt. Restoring the old cache directory, brings the system to life again. Same issue when I manually delete only the APKINDEX* files, and update the = local DB with `apk update` to download fresh APKINDEX. Restoring the old APKINDEX* files from a backup fixes this. > > >=20 > > > > BR > > > > Norbert > > >=20 > > >=20 > >=20 > >=20 >=20