OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: BlueHatDinuX on August 05, 2021, 12:16:26 PM

Title: Blank page on Unbound DNS Statistic
Post by: BlueHatDinuX on August 05, 2021, 12:16:26 PM
Hi, I was trying a fresh install of 21.7 on a Virtualbox, before proceed to live system.
Installation went smooth and everything seems working fine.

But there are nothing shown when browse into Unbound DNS statistic page, as attached.

Same issue with a number of tries of fresh installation, updated to 21.7.1 doesn't help either...


Is anyone having the same issue?


Edit: no problem on the statistic page when upgrading from 21.1.9 > 21.7 > 21.7.1.
Title: Re: Blank page on Unbound DNS Statistic
Post by: cookiemonster on August 05, 2021, 12:41:20 PM
They are working for me on 21.7 as a fresh install on zfs and importing config.
Title: Re: Blank page on Unbound DNS Statistic
Post by: BlueHatDinuX on August 05, 2021, 12:54:24 PM
Thanks for your replied.
Believe you are installed it in APU4D4.

Weird it happened on my VBox, restore config doesn't help either.
Title: Re: Blank page on Unbound DNS Statistic
Post by: cookiemonster on August 05, 2021, 01:00:24 PM
That is correct, mine is not a VM.
And you are sure the VM is serving the DNS requests? Could it possibly be the clients are sending the traffic to another DNS resolver?
Title: Re: Blank page on Unbound DNS Statistic
Post by: BlueHatDinuX on August 05, 2021, 01:14:20 PM
Quote from: cookiemonster on August 05, 2021, 01:00:24 PM
That is correct, mine is not a VM.
And you are sure the VM is serving the DNS requests? Could it possibly be the clients are sending the traffic to another DNS resolver?

Yes, the VM is handling DNS DOT request which shown in unbound logs.
Title: Re: Blank page on Unbound DNS Statistic
Post by: cookiemonster on August 06, 2021, 10:37:46 AM
Sorry, I don't have any suggestions.
Title: Re: Blank page on Unbound DNS Statistic
Post by: Fright on August 06, 2021, 09:43:01 PM
@BlueHatDinuX
hi
any errors in browser dev console?
Title: Re: Blank page on Unbound DNS Statistic
Post by: BlueHatDinuX on August 07, 2021, 02:31:56 AM
Quote from: Fright on August 06, 2021, 09:43:01 PM
@BlueHatDinuX
hi
any errors in browser dev console?

Yes, there were errors on Chrome and Firefox as well.

This page uses the non standard property "zoom". Consider using calc() in the relevant property values, or using "transform" along with "transform-origin: 0 0". stats
Uncaught TypeError: can't convert undefined to object
    updateStats https://10.0.0.1/ui/unbound/stats:1198
    complete https://10.0.0.1/ui/js/opnsense.js?v=3e683bdcd9ca1a86:242
    jQuery 6
    ajaxGet https://10.0.0.1/ui/js/opnsense.js?v=3e683bdcd9ca1a86:234
    updateStats https://10.0.0.1/ui/unbound/stats:1190
    <anonymous> https://10.0.0.1/ui/unbound/stats:1252
    jQuery 13
stats:1198:43
    updateStats https://10.0.0.1/ui/unbound/stats:1198
    complete https://10.0.0.1/ui/js/opnsense.js?v=3e683bdcd9ca1a86:242
    jQuery 6
    ajaxGet https://10.0.0.1/ui/js/opnsense.js?v=3e683bdcd9ca1a86:234
    updateStats https://10.0.0.1/ui/unbound/stats:1190
    <anonymous> https://10.0.0.1/ui/unbound/stats:1252
    jQuery 13

Title: Re: Blank page on Unbound DNS Statistic
Post by: Fright on August 07, 2021, 07:13:57 AM
can you run
configctl unbound stats
in shell and share results?
Title: Re: Blank page on Unbound DNS Statistic
Post by: BlueHatDinuX on August 07, 2021, 09:21:51 AM
Quote from: Fright on August 07, 2021, 07:13:57 AM
can you run
configctl unbound stats
in shell and share results?

The result was "Execute Error".
Title: Re: Blank page on Unbound DNS Statistic
Post by: Fright on August 07, 2021, 10:00:06 AM
thanks
and if you run
/usr/local/sbin/unbound-control -c /var/unbound/unbound.conf stats_noreset
?
Title: Re: Blank page on Unbound DNS Statistic
Post by: BlueHatDinuX on August 07, 2021, 11:01:38 AM
@Fright, thanks for your help.

It seems the problem was due to time-sync issue, which happened in Virtualbox.
The page shown correctly now with a proper ntp sync, tested with several reboots.

Thanks again.
Title: Re: Blank page on Unbound DNS Statistic
Post by: Fright on August 07, 2021, 11:31:21 AM
that's good  :)