Upgrade to 24.1.4 needs two steps

Started by meyergru, March 20, 2024, 11:56:28 PM

Previous topic - Next topic
March 20, 2024, 11:56:28 PM Last Edit: March 20, 2024, 11:58:26 PM by meyergru
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

Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+


Not for me... Coming from 24.1.3_1 there were no errors, update took 34 seconds, no reboot.
Everything fine...
i am not an expert... just trying to help...

Ah, it is related to squid and I no longer (since about 2 years :o) have this plugin installed
i am not an expert... just trying to help...

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.

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

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