Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
Upgrade from 23.7.6 to 23.7.7 failing
« previous
next »
Print
Pages: [
1
]
Author
Topic: Upgrade from 23.7.6 to 23.7.7 failing (Read 1794 times)
Rogero
Newbie
Posts: 14
Karma: 1
Upgrade from 23.7.6 to 23.7.7 failing
«
on:
October 31, 2023, 07:36:32 pm »
Tried to upgrade when the release came out and am receiving the following error:
***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 23.7.6 at Tue Oct 31 11:26:52 PDT 2023
Fetching changelog information, please wait... done
Updating OPNsense repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: .......... done
Processing entries: .......... done
OPNsense repository update completed. 851 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
Checking for upgrades (10 candidates): .......... done
Processing candidates (10 candidates): .......... done
Checking integrity...Assertion failed: (strcmp(uid, p->uid) != 0), function pkg_conflicts_check_local_path, file pkg_jobs_conflicts.c, line 315.
Child process pid=79470 terminated abnormally: Abort trap
***DONE***
The health audit is 4115 lines long and too large to attach. Lot's of missing files and checksum mismatches.
Additionally, cannot get ssh to start. Likely related but not sure.
Any help would be appreciated. Let me know what additional info you would like.
«
Last Edit: October 31, 2023, 07:42:26 pm by Rogero
»
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Upgrade from 23.7.6 to 23.7.7 failing
«
Reply #1 on:
October 31, 2023, 09:42:47 pm »
symptoms of hard disk failures
Logged
Rogero
Newbie
Posts: 14
Karma: 1
Re: Upgrade from 23.7.6 to 23.7.7 failing
«
Reply #2 on:
November 01, 2023, 02:06:34 am »
Tried to load smart tools on the box and it needs 23.7.7 which I don't have.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Upgrade from 23.7.6 to 23.7.7 failing
«
Reply #3 on:
November 01, 2023, 08:19:09 am »
Could just be a broken database.
I'd recommend a full bootstrap, but if you can make a snapshot and/or back up your configuration.
# opnsense-bootstrap
Your data will not be harmed, but everything will be reinstalled cleanly. Sometimes this operation is very heavy on the disk and if the disk is already showing signs of decay it could push it over the edge... hence the precaution.
Cheers,
Franco
Logged
Rogero
Newbie
Posts: 14
Karma: 1
Re: Upgrade from 23.7.6 to 23.7.7 failing
«
Reply #4 on:
November 02, 2023, 07:18:11 pm »
Tried running the opnsense-bootstrap command and it fails with a message:
"pkg: sqllite error while executing DELETE FROM packages WHERE id +3222 in file pkgdb.c:2296: database disk image is malformed"
Any solution to this other that a fresh install?
Thanks,
Roger
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Upgrade from 23.7.6 to 23.7.7 failing
«
Reply #5 on:
November 02, 2023, 09:12:26 pm »
Hi Roger,
Ok, the databases live here:
# ls /var/db/pkg/*.sqlite
Maybe move to a backup location and bootstrap will be more successful?
Cheers,
Franco
Logged
Rogero
Newbie
Posts: 14
Karma: 1
Re: Upgrade from 23.7.6 to 23.7.7 failing
«
Reply #6 on:
November 03, 2023, 12:32:57 am »
Thanks but too late. Bootstrap nuked my credentials before it failed so I couldn't log in any more. It was still passing traffic at least so I could download a new iso file and rebuild the device. Restored xml backup and it is mostly back to it's original setup.
«
Last Edit: November 03, 2023, 12:40:48 am by Rogero
»
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Upgrade from 23.7.6 to 23.7.7 failing
«
Reply #7 on:
November 03, 2023, 02:01:35 pm »
Bummer that the database had such a crucial role and that part failed because it got damaged.
Not having seen the health audit I'm unsure if you have UFS or ZFS and if more file integrity errors were on the disk. If it's a physical disk with UFS power outages could have disrupted the file system or if it's ZFS the disk or main memory may not be very healthy. Just as an extra point of caution.
Cheers,
Franco
Logged
Rogero
Newbie
Posts: 14
Karma: 1
Re: Upgrade from 23.7.6 to 23.7.7 failing
«
Reply #8 on:
November 04, 2023, 11:11:13 pm »
Hi Franco,
I had a power outage a week or so ago which might have been the cause of the db corruption. Since rebuilding I have installed the smart utilities and the SSD is clean. The worst part is that opnsense-bootstrap process deletes the user accounts before it gets to the db so once it failed, it was DOA. My only remaining issue is restoring the config, did not restore my firewall rules and I cannot remember what I had set up for zerotier.
Thanks for your assistance,
Roger
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
Upgrade from 23.7.6 to 23.7.7 failing