Hello OPNsense team,
We noticed that every firmware update check results in an invalid `/usr/local/opnsense/changelog/index.json` on multiple OPNsense systems.
The file contains the following unexpected lines:
Use of uninitialized value $date in concatenation (.) or string at /Users/franco/Documents/opnsense/changelog/Scripts/webify.pl line 128.
{"series":"26.7","version":"26.7.","date":""}
,
Validation fails with:
python3 -m json.tool /usr/local/opnsense/changelog/index.json
Expecting value: line 120 column 1 (char 3781)
After manually removing these three lines, JSON validation succeeds. However, **every subsequent firmware update check reproduces the issue**, even after repairing the file.
We have reproduced this on several independent OPNsense installations.
Could you please check whether the published changelog index is being generated incorrectly?
Thank you and best regards!
Hi,
You're not talking about the file on the mirror when you refer to a Perl error in the changelog webify script?
It looks like we're missing context.
FWIW, the file downloaded from the mirror:
# cat /usr/local/opnsense/changelog/index.json | jq -e > /dev/null && echo good
good
Cheers,
Franco
I see the problem as well, Franco:
root@OPNsense:~ # cat /usr/local/opnsense/changelog/index.json | jq -e > /dev/null && echo good
jq: parse error: Invalid numeric literal at line 120, column 4
The part that is buggy is this:
Quote{"series":"26.7","version":"26.7.9","date":"November 11, 2026"}
,
{"series":"26.7","version":"26.7.7","date":"October 13, 2026"}
,
{"series":"26.7","version":"26.7.1","date":"July 21, 2026"}
,
{"series":"26.7","version":"26.7.6","date":"October 08, 2026"}
,
{"series":"26.7","version":"26.7.8","date":"October 30, 2026"}
,
Use of uninitialized value $date in concatenation (.) or string at /Users/franco/Documents/opnsense/changelog/Scripts/webify.pl line 128.
{"series":"26.7","version":"26.7.","date":""}
,
{"series":"26.7","version":"26.7.r1","date":"July 07, 2026"}
,
{"series":"26.7","version":"26.7.3","date":"August 27, 2026"}
,
{"series":"26.7","version":"26.7.4","date":"September 15, 2026"}
,
{"series":"26.7","version":"26.7.5","date":"September 30, 2026"}
,
{"series":"26.7","version":"26.7.2","date":"August 12, 2026"}
,
Ah, sorry, I committed a faulty file. Removed here
https://github.com/opnsense/changelog/commit/666361ffd1
and new changelogs.txz updated pushed to mirror.
Cheers,
Franco