OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: sammy on January 25, 2025, 05:21:35 PM

Title: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: sammy on January 25, 2025, 05:21:35 PM
The Overview tab of Unbound reporting is not displaying any statistics after the upgrade.

Title: Re: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: newsense on January 26, 2025, 02:11:45 AM
Cannot confirm, everything looks good here on RC2, both Overview and Details tabs, logarithmic or not.

Is unbound running ? Did you try rebooting post RC2 ?

If everything appears to work correctly go to Reporting-Settings and reset DNS data
Title: Re: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: sammy on January 26, 2025, 04:34:08 PM
I've tried your suggestions, but it's still not working. Just to clarify, only the Overview tab is not working for me—everything in the Details tab is fine
Title: Re: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: newsense on January 26, 2025, 09:25:13 PM
Are you using the official themes ? Any errors in the browser console ? Tried different browsers ? Any extension that may be causing this ?
Title: Re: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: julsssark on January 27, 2025, 02:04:21 AM
I upgraded my home install to RC2 from 24.7.12. I am seeing similar behavior to OP, though the totals on top and the top domains eventually fill in if I stay on the page long enough. Details page shows plenty of lookups in the last hour, so the summary graphs should populate. Unbound is upstream from AdGuard Home.

I am using the default theme and I see the same behavior in Chrome and Safari (both on Mac). I am seeing the errors below in the browser console:

[Error] Failed to load resource: the server responded with a status of 404 () (chartjs-plugin-colorschemes.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (chartjs-plugin-streaming.min.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (chart.min.js, line 0)
[Error] Refused to execute https://opn.XXXXX.com/ui/js/chart.min.js?v=8dd00b38b7b41ad5 as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.
[Error] Refused to execute https://opn.XXXXX.com/ui/js/chartjs-plugin-streaming.min.js?v=8dd00b38b7b41ad5 as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.
[Error] Refused to execute https://opn.XXXXX.com/ui/js/chartjs-plugin-colorschemes.js?v=8dd00b38b7b41ad5 as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.
[Error] Failed to load resource: the server responded with a status of 404 () (chartjs-adapter-moment.js, line 0)
[Error] Refused to execute https://opn.XXXXX.com/ui/js/chartjs-adapter-moment.js?v=8dd00b38b7b41ad5 as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.
[Error] ReferenceError: Can't find variable: Chart
create_chart (overview:1543)
(anonymous function) (overview:1891)
complete (opnsense.js:298)
c (jquery-3.5.1.min.js:2:28300)
fireWith (jquery-3.5.1.min.js:2:29041)
l (jquery-3.5.1.min.js:2:79937)
(anonymous function) (jquery-3.5.1.min.js:2:82256)
[Error] ReferenceError: Can't find variable: Chart
formatClientData (overview:1728)
(anonymous function) (overview:1767)
complete (opnsense.js:298)
c (jquery-3.5.1.min.js:2:28300)
fireWith (jquery-3.5.1.min.js:2:29041)
l (jquery-3.5.1.min.js:2:79937)
(anonymous function) (jquery-3.5.1.min.js:2:82256)
[Error] TypeError: null is not an object (evaluating 'g_queryChart.config')
(anonymous function) (overview:1747)
complete (opnsense.js:298)
c (jquery-3.5.1.min.js:2:28300)
fireWith (jquery-3.5.1.min.js:2:29041)
l (jquery-3.5.1.min.js:2:79937)
(anonymous function) (jquery-3.5.1.min.js:2:82256)
[Error] Failed to load resource: the server responded with a status of 404 () (bootstrap-dialog.css.map, line 0)



Title: Re: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: sammy on January 27, 2025, 02:23:25 AM
I'm using the official OpenSense-Dark theme and have tested it on Chrome, Brave, and Safari, all with the same result. There were no issues before the RC2 upgrade.
Title: Re: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: franco on January 27, 2025, 11:26:03 AM
Note this is not RC2, this is the development version of RC2 ;)

# opnsense-patch https://github.com/opnsense/core/commit/c9a3a841275

Thanks for the report!


Cheers,
Franco
Title: Re: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: julsssark on January 27, 2025, 04:40:22 PM
Thanks Franco! The patch fixed it and the Unbound graphs are being generated correctly.

Yes, development version of RC2. I will keep that straight next time.
Title: Re: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: sammy on January 27, 2025, 06:11:24 PM
Thank you both for the update!
Title: Re: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: none on January 27, 2025, 07:43:44 PM
Quote from: franco on January 27, 2025, 11:26:03 AMNote this is not RC2, this is the development version of RC2 ;)

# opnsense-patch https://github.com/opnsense/core/commit/c9a3a841275

Thanks for the report!


Cheers,
Franco

Hi Franco, I built for arm64, does this command works for me?

I also noticed mine shows 25.1.r1_2X (not at home, can't remember if _20 or _22) and I checked out git for 25.1.r2 :)

thanks,

none
Title: Re: Unbound DNS reporting is not functioning after the 25.1-RC2 upgrade.
Post by: franco on January 28, 2025, 10:20:41 AM
opnsense-patch works almost always... we only patch script files