OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: DAFLetourneau on February 04, 2025, 02:32:12 AM

Title: Failed upgrade from 24.7.12_4 to 25.1 Error in upgrade script '90-cleanup.sh'
Post by: DAFLetourneau on February 04, 2025, 02:32:12 AM
I have been trying to upgrade to the latest version 25.1 from 24.7.12_4 but I get the following error output:

   ***GOT REQUEST TO UPGRADE***
   Currently running OPNsense 24.7.12_4 (amd64) at Mon Feb  3 20:05:47 EST 2025
   Fetching packages-25.1-amd64.tar: .......................................... done
   Fetching base-25.1-amd64.txz: .......... done
   Fetching kernel-25.1-amd64.txz: ..... done
   Extracting packages-25.1-amd64.tar... done
   Extracting base-25.1-amd64.txz... done
   Extracting kernel-25.1-amd64.txz... done
   Please reboot.
   >>> Invoking upgrade script 'sanity.sh'
   Passed all upgrade tests.
   >>> Invoking upgrade script 'cleanup.sh'
   find: /usr/local/datastore/elasticsearch/nodes/0/indices/2iG-on-OTtOdFSsUYj6b0g/0/index: Input/output error
   >>> Error in upgrade script '90-cleanup.sh'
   ***DONE***

While the folder "/usr/local/datastore/elasticsearch/nodes/0/indices/2iG-on-OTtOdFSsUYj6b0g/0/index" exists, there are no files in it! I cannot find the 90-cleanup.sh script and can't inspect it.

Please advise how to corrector get pass this issue to continue the upgrade.
Title: Re: Failed upgrade from 24.7.12_4 to 25.1 Error in upgrade script '90-cleanup.sh'
Post by: franco on February 04, 2025, 08:20:23 AM
Your file system is damaged and needs to be repaired first with "fsck" in order to continue with the upgrade in a safe manner.


Cheers,
Franco
Title: Re: Failed upgrade from 24.7.12_4 to 25.1 Error in upgrade script '90-cleanup.sh'
Post by: DAFLetourneau on February 13, 2025, 05:31:19 AM
Thank you very much.  After finding how to "fsck" the root filesystem, I did the fsck five times as suggested on the web.  It corrected the filesystem and I was then able to upgrade to 25.1 without any problem.  Thanks again.
Title: Re: Failed upgrade from 24.7.12_4 to 25.1 Error in upgrade script '90-cleanup.sh'
Post by: franco on February 13, 2025, 10:00:04 AM
Nice to hear :)