OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: meyergru on March 20, 2024, 11:56:28 PM

Title: Upgrade to 24.1.4 needs two steps
Post by: meyergru on March 20, 2024, 11:56:28 PM
I upgraded from 24.1.3_1 to 24.1.4 and found that on all of my machines, I needed to upgrade twice.

There was an error message during the first update and the upgrade did not catch all upgradeable packages:

pkg-static: Fail to rename /usr/local/etc/rc.d/.pkgtemp.squid.ddRLvpFwCL9y -> /usr/local/etc/rc.d/squid:No such file or directory

On the second try after that, those packages were only then upgraded:


cpu-microcode-intel 20231114 20240312 upgrade OPNsense
ruby31-gems 3.4.20 3.5.6 upgrade OPNsense
squid 6.7 6.8 upgrade OPNsense
squid-langpack 7.0.0.20231227 7.0.0.20240307 upgrade OPNsense

Title: Re: Upgrade to 24.1.4 needs two steps
Post by: senseuser on March 21, 2024, 02:20:12 PM
I confirm. There was the same thing
Title: Re: Upgrade to 24.1.4 needs two steps
Post by: tiermutter on March 21, 2024, 02:26:45 PM
Not for me... Coming from 24.1.3_1 there were no errors, update took 34 seconds, no reboot.
Everything fine...
Title: Re: Upgrade to 24.1.4 needs two steps
Post by: tiermutter on March 21, 2024, 02:28:41 PM
Ah, it is related to squid and I no longer (since about 2 years :o) have this plugin installed
Title: Re: Upgrade to 24.1.4 needs two steps
Post by: Greg_E on March 21, 2024, 03:36:15 PM
Not sure if it was just a timing issue, but Crowdsec did not get updated the first time I tried. About an hour between these two events, so it might not be related.
Title: Re: Upgrade to 24.1.4 needs two steps
Post by: franco on March 21, 2024, 04:04:17 PM
Sometimes pkg trips over its own temporary files when trying to update a package. The post-update routine mops this up nowadays but it can still happen.

https://github.com/opnsense/core/blob/f25e1214dc138a2e54d57a65c5ee435bac2e2df8/src/etc/rc.syshook.d/update/10-refresh#L10_L18


Cheers,
Franco
Title: Re: Upgrade to 24.1.4 needs two steps
Post by: jkellerer on March 21, 2024, 05:31:16 PM
Had it as well, used the following as a quick fix (reinstall would probably also fix it, haven't tried):


curl -sL 'https://raw.githubusercontent.com/opnsense/ports/master/www/squid/files/squid.in' \
  | sed 's|%%PREFIX%%|/usr/local|g' \
  > /usr/local/etc/rc.d/squid \
  && chmod +x /usr/local/etc/rc.d/squid