Error: System: Firmware > Updates

Started by Mbl, October 14, 2023, 12:03:47 PM

Previous topic - Next topic
Hello

Since view months I receive the following error once I try to update to newer version. Usually the error disappears if I try to upgrade a second or third time.



***GOT REQUEST TO UPDATE***
Currently running OPNsense 23.4.2_1 at Sat Oct 14 11:53:05 CEST 2023
Updating OPNsense repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: .......... done
pkg-static: sqlite error while executing CREATE TABLE IF NOT EXISTS repo_update (n INT); in file pkgdb.c:2333: attempt to write a readonly database
Processing entries:
pkg-static: sqlite error while executing INSERT OR REPLACE INTO packages (origin, name, version, comment, desc, arch, maintainer, www, prefix, pkgsize, flatsize, licenselogic, cksum, path, manifestdigest, olddigest, vital)VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, ?14, ?15, ?16, ?17) in file update.c:165: attempt to write a readonly database
Processing entries... done
pkg-static: sqlite error while executing CREATE INDEX packages_origin ON packages(origin COLLATE NOCASE);CREATE INDEX packages_name ON packages(name COLLATE NOCASE);CREATE INDEX packages_uid_nocase ON packages(name COLLATE NOCASE, origin COLLATE NOCASE);CREATE INDEX packages_version_nocase ON packages(name COLLATE NOCASE, version);CREATE INDEX packages_uid ON packages(name, origin);CREATE INDEX packages_version ON packages(name, version);CREATE UNIQUE INDEX packages_digest ON packages(manifestdigest); in file pkgdb.c:2333: attempt to write a readonly database
Unable to update repository OPNsense
Updating SunnyValley repository catalogue...
SunnyValley repository is up to date.
Error updating repositories!
Starting web GUI...done.
Generating RRD graphs...done.
***DONE***



Sometime a similar sqlite error appears once I check for new updates. Also this error disappears after the second or third time.

The unit is on 23.4.2_1 Business and running on a DEC3860.

Any advice whats wrong?

Addendum:

If I run a connectivity audit I receive the following error:


***GOT REQUEST TO AUDIT CONNECTIVITY***
Currently running OPNsense 23.4.2_1 at Sat Oct 14 12:09:26 CEST 2023
Checking connectivity for host: opnsense-update.deciso.com -> 89.149.211.205
PING 89.149.211.205 (89.149.211.205): 1500 data bytes
1508 bytes from 89.149.211.205: icmp_seq=0 ttl=49 time=17.991 ms
1508 bytes from 89.149.211.205: icmp_seq=1 ttl=49 time=17.968 ms
1508 bytes from 89.149.211.205: icmp_seq=2 ttl=49 time=17.980 ms
1508 bytes from 89.149.211.205: icmp_seq=3 ttl=49 time=17.947 ms

--- 89.149.211.205 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 17.947/17.972/17.991/0.016 ms
Checking connectivity for repository (IPv4): https://opnsense-update.deciso.com/${SUBSCRIPTION}/FreeBSD:13:amd64/23.4
Updating OPNsense repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: .......... done
Processing entries: .......... done
OPNsense repository update completed. 845 packages processed.
Updating SunnyValley repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: .. done
Processing entries: .... done
SunnyValley repository update completed. 31 packages processed.
All repositories are up to date.
Checking connectivity for host: opnsense-update.deciso.com -> 2001:1af8:4f00:a005:5::
ping: UDP connect: No route to host
Checking connectivity for repository (IPv6): https://opnsense-update.deciso.com/${SUBSCRIPTION}/FreeBSD:13:amd64/23.4
Updating OPNsense repository catalogue...
pkg: https://opnsense-update.deciso.com/${SUBSCRIPTION}/FreeBSD:13:amd64/23.4/latest/meta.txz: Non-recoverable resolver failure
repository OPNsense has no meta file, using default settings
pkg: https://opnsense-update.deciso.com/${SUBSCRIPTION}/FreeBSD:13:amd64/23.4/latest/packagesite.pkg: Non-recoverable resolver failure
pkg: https://opnsense-update.deciso.com/${SUBSCRIPTION}/FreeBSD:13:amd64/23.4/latest/packagesite.txz: Non-recoverable resolver failure
Unable to update repository OPNsense
Updating SunnyValley repository catalogue...
pkg: https://updates.sunnyvalley.io/opnsense/FreeBSD:13:amd64/23.1/OpenSSL/latest/meta.txz: Non-recoverable resolver failure
repository SunnyValley has no meta file, using default settings
pkg: https://updates.sunnyvalley.io/opnsense/FreeBSD:13:amd64/23.1/OpenSSL/latest/packagesite.pkg: Non-recoverable resolver failure
pkg: https://updates.sunnyvalley.io/opnsense/FreeBSD:13:amd64/23.1/OpenSSL/latest/packagesite.txz: Non-recoverable resolver failure
Unable to update repository SunnyValley
Error updating repositories!
***DONE***



Health audit seams to be ok:


***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 23.4.2_1 at Sat Oct 14 12:07:02 CEST 2023
>>> Check installed kernel version
Version 23.1.11 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 23.1.11 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check installed repositories
OPNsense
SunnyValley
>>> Check installed plugins
os-OPNBEcore 1.1_2
os-acme-client 3.17
os-etpro-telemetry 1.6_1
os-net-snmp 1.5_2
os-nut 1.8.1_2
os-sensei 1.15.1
os-sensei-updater 1.15
os-sunnyvalley 1.2_3
>>> Check locked packages
No locks found.
>>> Check for missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: .....
os-sensei-1.15.1: missing file /usr/local/zenarmor/output/archive/.placeholder
Checking all packages........ done
>>> Check for core packages consistency
Core package "opnsense-business" has 68 dependencies to check.
Checking packages: ..................................................................... done
***DONE***

If possible, the cleanest way to resolve this would be to export the configuration, reinstall and import the config flle .

It's best to wait for Franco to chime in on this though, he might have a better solution for dealing with a corrupt db.


Non-recoverable resolver failure

You might have a misconfiguration/issue with DNS as well, but that should be secondary to the sqlite db one.

DNS should not be the problem in this case....

Checked for new firmware today and got the following:


***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 23.10 at Wed Nov  1 22:16:50 CET 2023
Fetching subscription information, please wait... done
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. 861 packages processed.
Updating SunnyValley repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: ... done
Processing entries: ....... done
SunnyValley repository update completed. 64 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
Checking for upgrades (0 candidates): . done
Processing candidates (0 candidates): . done
Checking integrity... done (0 conflicting)
Your packages are up to date.
***DONE***

This is probably specific to package manager operation.

I'd recommend doing

# killall pkg
# killall pkg-static

And trying again.

Some people reported the console update works better since pkg doesn't get in the way of itself (the GUI needs to query a number of things due to wanting to display them for the user to see).


Cheers,
Franco

Hi Franco

Thanks for your replay. Looks like there where no interfering processes:


root@firewall:~ # killall pkg
No matching processes were found
root@firewall:~ # killall pkg-static
No matching processes were found



November 12, 2023, 04:04:47 PM #6 Last Edit: November 12, 2023, 04:19:54 PM by DEC670airp414user
this has been happening to me for months:

I got the same message as the OP a few posts above from the console commands

if I run check for updates again.    I get a green its up today (business edition)

***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 23.10_2 at Sun Nov 12 10:01:09 EST 2023
Fetching subscription information, please wait... done
Fetching changelog information, please wait... done
Updating OPNsense repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: .......... done
pkg: sqlite error while executing CREATE TABLE packages (id INTEGER PRIMARY KEY,origin TEXT,name TEXT NOT NULL,version TEXT NOT NULL,comment TEXT NOT NULL,desc TEXT NOT NULL,osversion TEXT,arch TEXT NOT NULL,maintainer TEXT NOT NULL,www TEXT,prefix TEXT NOT NULL,pkgsize INTEGER NOT NULL,flatsize INTEGER NOT NULL,licenselogic INTEGER NOT NULL,cksum TEXT NOT NULL,path TEXT NOT NULL,pkg_format_version INTEGER,manifestdigest TEXT NULL,olddigest TEXT NULL,dep_formula TEXT NULL,vital INTEGER NOT NULL DEFAULT 0);CREATE TABLE deps (origin TEXT,name TEXT,version TEXT,package_id INTEGER REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,UNIQUE(package_id, name));CREATE TABLE categories (id INTEGER PRIMARY KEY, name TEXT NOT NULL UNIQUE );CREATE TABLE pkg_categories (package_id INTEGER REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,category_id INTEGER REFERENCES categories(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, category_id));CREATE TABLE licenses (id INTEGER PRIMARY KEY,name TEXT NOT NULL UNIQUE);CREATE TABLE pkg_licenses (package_id INTEGER REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,license_id INTEGER REFERENCES licenses(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, license_id));CREATE TABLE option (option_id INTEGER PRIMARY KEY,option TEXT NOT NULL UNIQUE);CREATE TABLE option_desc (option_desc_id INTEGER PRIMARY KEY,option_desc TEXT NOT NULL UNIQUE);CREATE TABLE pkg_option (package_id INTEGER NOT NULL REFERENCES packages(id) ON DELETE CASCADE ON UPDATE CASCADE,option_id INTEGER NOT NULL REFERENCES option(option_id) ON DELETE RESTRICT ON UPDATE CASCADE,value TEXT NOT NULL,PRIMARY KEY(package_id, option_id));CREATE TABLE pkg_option_desc (package_id INTEGER NOT NULL REFERENCES packages(id) ON DELETE CASCADE ON UPDATE CASCADE,option_id INTEGER NOT NULL REFERENCES option(option_id) ON DELETE RESTRICT ON UPDATE CASCADE,option_desc_id INTEGER NOT NULL REFERENCES option_desc(option_desc_id) ON DELETE RESTRICT ON UPDATE CASCADE,PRIMARY KEY(package_id, option_id));CREATE TABLE pkg_option_default (package_id INTEGER NOT NULL REFERENCES packages(id) ON DELETE CASCADE ON UPDATE CASCADE,option_id INTEGER NOT NULL REFERENCES option(option_id) ON DELETE RESTRICT ON UPDATE CASCADE,default_value TEXT NOT NULL,PRIMARY KEY(package_id, option_id));CREATE TABLE shlibs (id INTEGER PRIMARY KEY,name TEXT NOT NULL UNIQUE );CREATE TABLE pkg_shlibs_required (package_id INTEGER NOT NULL REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,shlib_id INTEGER NOT NULL REFERENCES shlibs(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, shlib_id));CREATE TABLE pkg_shlibs_provided (package_id INTEGER NOT NULL REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,shlib_id INTEGER NOT NULL REFERENCES shlibs(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, shlib_id));CREATE TABLE annotation (annotation_id INTEGER PRIMARY KEY,annotation TEXT NOT NULL UNIQUE);CREATE TABLE pkg_annotation (package_id INTEGER REFERENCES packages(id) ON DELETE CASCADE ON UPDATE RESTRICT,tag_id INTEGER NOT NULL REFERENCES annotation(annotation_id) ON DELETE CASCADE ON UPDATE RESTRICT,value_id INTEGER NOT NULL REFERENCES annotation(annotation_id) ON DELETE CASCADE ON UPDATE RESTRICT,UNIQUE (package_id, tag_id));CREATE TABLE pkg_conflicts (package_id INTEGER NOT NULL REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,conflict_id INTEGER NOT NULL,UNIQUE(package_id, conflict_id));CREATE TABLE provides(    id INTEGER PRIMARY KEY,    provide TEXT NOT NULL);CREATE TABLE pkg_provides (package_id INTEGER NOT NULL REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,provide_id INTEGER NOT NULL REFERENCES provides(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, provide_id));CREATE TABLE requires(    id INTEGER PRIMARY KEY,    require TEXT NOT NULL);CREATE TABLE pkg_requires (package_id INTEGER NOT NULL REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,require_id INTEGER NOT NULL REFERENCES requires(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, require_id));PRAGMA user_version=2014; in file pkgdb.c:2333: attempt to write a readonly database
Unable to create repository OPNsense
Unable to update repository OPNsense
Error updating repositories!
pkg: Repository OPNsense cannot be opened. 'pkg update' required
Checking integrity... done (0 conflicting)
Your packages are up to date.
***DONE***

I downloaded a fresh copy of business.
redid as serial as previously suggested.

imported my backup configuration.  and it still does this on the commercial server.  I'm guessing it's something on the server?

i decided to convert to non business edition. last night

the error messages went away.   so i think my previous statement is correct. the issue resides on the commercial update server.

anytime i wanted to update business edition, i would have to click update, let it error out.  then click check for updates again and it would work

Still having the same issue with 23.10.1


***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 23.10.1 at Fri Dec 29 11:03:47 CET 2023
Fetching subscription information, please wait... done
Fetching changelog information, please wait... done
Updating OPNsense repository catalogue...
pkg: sqlite error while executing SELECT count(name) FROM sqlite_master WHERE type='table' AND name='repodata'; in file pkgdb.c:2358: database is locked
pkg: Repository OPNsense contains no repodata table, need to re-create database
Fetching meta.conf: . done
Fetching packagesite.pkg: .......... done
pkg: sqlite error while executing CREATE TABLE packages (id INTEGER PRIMARY KEY,origin TEXT,name TEXT NOT NULL,version TEXT NOT NULL,comment TEXT NOT NULL,desc TEXT NOT NULL,osversion TEXT,arch TEXT NOT NULL,maintainer TEXT NOT NULL,www TEXT,prefix TEXT NOT NULL,pkgsize INTEGER NOT NULL,flatsize INTEGER NOT NULL,licenselogic INTEGER NOT NULL,cksum TEXT NOT NULL,path TEXT NOT NULL,pkg_format_version INTEGER,manifestdigest TEXT NULL,olddigest TEXT NULL,dep_formula TEXT NULL,vital INTEGER NOT NULL DEFAULT 0);CREATE TABLE deps (origin TEXT,name TEXT,version TEXT,package_id INTEGER REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,UNIQUE(package_id, name));CREATE TABLE categories (id INTEGER PRIMARY KEY, name TEXT NOT NULL UNIQUE );CREATE TABLE pkg_categories (package_id INTEGER REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,category_id INTEGER REFERENCES categories(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, category_id));CREATE TABLE licenses (id INTEGER PRIMARY KEY,name TEXT NOT NULL UNIQUE);CREATE TABLE pkg_licenses (package_id INTEGER REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,license_id INTEGER REFERENCES licenses(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, license_id));CREATE TABLE option (option_id INTEGER PRIMARY KEY,option TEXT NOT NULL UNIQUE);CREATE TABLE option_desc (option_desc_id INTEGER PRIMARY KEY,option_desc TEXT NOT NULL UNIQUE);CREATE TABLE pkg_option (package_id INTEGER NOT NULL REFERENCES packages(id) ON DELETE CASCADE ON UPDATE CASCADE,option_id INTEGER NOT NULL REFERENCES option(option_id) ON DELETE RESTRICT ON UPDATE CASCADE,value TEXT NOT NULL,PRIMARY KEY(package_id, option_id));CREATE TABLE pkg_option_desc (package_id INTEGER NOT NULL REFERENCES packages(id) ON DELETE CASCADE ON UPDATE CASCADE,option_id INTEGER NOT NULL REFERENCES option(option_id) ON DELETE RESTRICT ON UPDATE CASCADE,option_desc_id INTEGER NOT NULL REFERENCES option_desc(option_desc_id) ON DELETE RESTRICT ON UPDATE CASCADE,PRIMARY KEY(package_id, option_id));CREATE TABLE pkg_option_default (package_id INTEGER NOT NULL REFERENCES packages(id) ON DELETE CASCADE ON UPDATE CASCADE,option_id INTEGER NOT NULL REFERENCES option(option_id) ON DELETE RESTRICT ON UPDATE CASCADE,default_value TEXT NOT NULL,PRIMARY KEY(package_id, option_id));CREATE TABLE shlibs (id INTEGER PRIMARY KEY,name TEXT NOT NULL UNIQUE );CREATE TABLE pkg_shlibs_required (package_id INTEGER NOT NULL REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,shlib_id INTEGER NOT NULL REFERENCES shlibs(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, shlib_id));CREATE TABLE pkg_shlibs_provided (package_id INTEGER NOT NULL REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,shlib_id INTEGER NOT NULL REFERENCES shlibs(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, shlib_id));CREATE TABLE annotation (annotation_id INTEGER PRIMARY KEY,annotation TEXT NOT NULL UNIQUE);CREATE TABLE pkg_annotation (package_id INTEGER REFERENCES packages(id) ON DELETE CASCADE ON UPDATE RESTRICT,tag_id INTEGER NOT NULL REFERENCES annotation(annotation_id) ON DELETE CASCADE ON UPDATE RESTRICT,value_id INTEGER NOT NULL REFERENCES annotation(annotation_id) ON DELETE CASCADE ON UPDATE RESTRICT,UNIQUE (package_id, tag_id));CREATE TABLE pkg_conflicts (package_id INTEGER NOT NULL REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,conflict_id INTEGER NOT NULL,UNIQUE(package_id, conflict_id));CREATE TABLE provides(    id INTEGER PRIMARY KEY,    provide TEXT NOT NULL);CREATE TABLE pkg_provides (package_id INTEGER NOT NULL REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,provide_id INTEGER NOT NULL REFERENCES provides(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, provide_id));CREATE TABLE requires(    id INTEGER PRIMARY KEY,    require TEXT NOT NULL);CREATE TABLE pkg_requires (package_id INTEGER NOT NULL REFERENCES packages(id)  ON DELETE CASCADE ON UPDATE CASCADE,require_id INTEGER NOT NULL REFERENCES requires(id)  ON DELETE RESTRICT ON UPDATE RESTRICT,UNIQUE(package_id, require_id));PRAGMA user_version=2014; in file pkgdb.c:2333: disk I/O error
Unable to create repository OPNsense
Unable to update repository OPNsense
Updating SunnyValley repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: ... done
Processing entries: ....... done
SunnyValley repository update completed. 64 packages processed.
Error updating repositories!
pkg: sqlite error while executing SELECT count(name) FROM sqlite_master WHERE type='table' AND name='repodata'; in file pkgdb.c:2358: database is locked
pkg: Repository OPNsense contains no repodata table, need to re-create database
pkg: Repository OPNsense cannot be opened. 'pkg update' required
Checking integrity... done (0 conflicting)
Your packages are up to date.
***DONE***


Just updated today to 23.10.1_2


***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 23.10.1_2 at Wed Jan  3 14:57:42 CET 2024
Fetching subscription information, please wait... done
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. 870 packages processed.
Updating SunnyValley repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: ... done
Processing entries: ....... done
SunnyValley repository update completed. 64 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
Checking for upgrades (6 candidates): .
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
Checking for upgrades (6 candidates)...
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
Checking for upgrades (6 candidates)....
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
Checking for upgrades (6 candidates).... done
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: attempt to write a readonly database
Processing candidates (6 candidates): . done
Checking integrity... done (0 conflicting)
Your packages are up to date.
***DONE***