Can't update to 24.7. I get the following error...

Started by DampQuiche, February 04, 2025, 12:28:44 PM

Previous topic - Next topic
February 04, 2025, 12:28:44 PM Last Edit: February 04, 2025, 01:03:56 PM by DampQuiche
***GOT REQUEST TO UPGRADE***
Currently running OPNsense 24.1.10_8 at Tue Feb  4 11:24:03 GMT 2025
Fetching packages-24.7-amd64.tar: .......... done
Fetching base-24.7-amd64.txz: .... done
Fetching kernel-24.7-amd64.txz: ... done
Extracting packages-24.7-amd64.tar... done
Extracting base-24.7-amd64.txz... done
Extracting kernel-24.7-amd64.txz... done
/usr/local/sbin/opnsense-update: rm: Argument list too long
***DONE***

I have no idea how to fix it and attempting to run the upgrade through the shell does not work either. You get the same error.

To add... Yes it has been rebooted. I have been trying to do the update for a couple of months. I am to the point of i just might re-install from USB to 25.1. But i'd like to fix this if at all possible. I don't think i have ever done anything non-standard to the system, so there's no reason it shouldn't work.

Is it this dir?

# ls /var/cache/opnsense-update/* > /dev/null

That would be a lot of failed update attempts...



Cheers,
Franco

root@OPNsense:~ #  ls /var/cache/opnsense-update/* > /dev/null
/bin/ls: Argument list too long.

If that's it, that its a load of failed update attempts, then how do you think i should fix it?

It was working fine and then i tried to update months ago and that error happened. I have tried repeatedly since then though.

Ok, that's the one apparently.

# rm -r /var/cache/opnsense-update

That should fix it.  I'll try to fix this in opnsense-update for 25.1.1.


Thanks,
Franco

rm -r /var/cache/opnsense-update

FIXED IT!!!

You legend! Thank you!!!!!! Excessive exclamations i know, but that has been driving me nuts! My wife too, as i haven't shut up about it since i started to make a concerted effort to fix it 3 days ago.

February 04, 2025, 02:40:41 PM #5 Last Edit: February 04, 2025, 02:42:14 PM by franco
And the permanent fix for later:

https://github.com/opnsense/update/commit/e42db7642

Thanks again for bringing it up. Had one other user report it on Reddit but we were not able to pinpoint it last time.


Cheers,
Franco

That was me.

I have updated the reddit post with your fix!