diladele / dnssafety

DNS Safety is simple and fast DNS filtering server for your local network
https://www.diladele.com/dnssafety/
29 stars 8 forks source link

Access log '/opt/dnssafety/var/log/access.log' does not exist, please ensure the dsdnsd daemon is up and running! #430

Closed craigusus closed 4 years ago

craigusus commented 4 years ago

Hi, Running fresh install on Raspberry Pi. The access.log file is not being created.

Traceback (most recent call last):
  File "/opt/dnssafety-ui/var/console/traffic/views/summary.py", line 55, in get_context_data
    period, prefix = self.get_period()
  File "/opt/dnssafety-ui/var/console/traffic/views/mixins.py", line 98, in get_period
    regenerate_now()
  File "/opt/dnssafety-ui/var/console/traffic/views/mixins.py", line 69, in regenerate_now
    c.collect()
  File "/opt/dnssafety-ui/var/console/_domain/traffic/collect/collector_now.py", line 36, in collect
    entries = self.read_entries(where, lines_limit)
  File "/opt/dnssafety-ui/var/console/_domain/traffic/collect/collector_now.py", line 70, in read_entries
    raise Exception("Access log '%s' does not exist, please ensure the dsdnsd daemon is up and running!" % self.access_log)
Exception: Access log '/opt/dnssafety/var/log/access.log' does not exist, please ensure the dsdnsd daemon is up and running!

Screenshot 2020-01-03 at 10 52 01 Screenshot 2020-01-03 at 10 39 13 Screenshot 2020-01-03 at 10 39 36

/opt/dnssafety-ui/var/log/cron_report.log is not being created either...

Screenshot 2020-01-03 at 10 40 35

dsdnsd is running...

pi@dns:~ $ systemctl status dsdnsd.service
● dsdnsd.service - DNS Safety Filter
   Loaded: loaded (/etc/systemd/system/dsdnsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-01-03 10:31:13 GMT; 3min 13s ago
     Docs: https://www.dnssafety.io
 Main PID: 456 (dsdnsd)
    Tasks: 11 (limit: 4915)
   Memory: 279.3M
   CGroup: /system.slice/dsdnsd.service
           └─456 /opt/dnssafety/bin/dsdnsd
ra-at-diladele-com commented 4 years ago

Hello Craig,

Try running one dns lookup over that server..

Best regards, Rafael Akchurin

Op 3 jan. 2020 om 11:56 heeft Craig notifications@github.com het volgende geschreven:



Hi, Running fresh install on Raspberry Pi. The access.log file is not being created.

Traceback (most recent call last): File "/opt/dnssafety-ui/var/console/traffic/views/summary.py", line 55, in get_context_data period, prefix = self.get_period() File "/opt/dnssafety-ui/var/console/traffic/views/mixins.py", line 98, in get_period regenerate_now() File "/opt/dnssafety-ui/var/console/traffic/views/mixins.py", line 69, in regenerate_now c.collect() File "/opt/dnssafety-ui/var/console/_domain/traffic/collect/collector_now.py", line 36, in collect entries = self.read_entries(where, lines_limit) File "/opt/dnssafety-ui/var/console/_domain/traffic/collect/collector_now.py", line 70, in read_entries raise Exception("Access log '%s' does not exist, please ensure the dsdnsd daemon is up and running!" % self.access_log) Exception: Access log '/opt/dnssafety/var/log/access.log' does not exist, please ensure the dsdnsd daemon is up and running!

[Screenshot 2020-01-03 at 10 52 01]https://user-images.githubusercontent.com/6324863/71719716-1afaf000-2e17-11ea-84e4-e4ba2aa86c61.png [Screenshot 2020-01-03 at 10 39 13]https://user-images.githubusercontent.com/6324863/71719209-85129580-2e15-11ea-9bb1-7791413ef6da.png [Screenshot 2020-01-03 at 10 39 36]https://user-images.githubusercontent.com/6324863/71719215-8ba10d00-2e15-11ea-81f1-bc4f5bf82e1f.png

/opt/dnssafety-ui/var/log/cron_report.log is not being created either...

[Screenshot 2020-01-03 at 10 40 35]https://user-images.githubusercontent.com/6324863/71719243-a4112780-2e15-11ea-8f34-5b95126385f7.png

dsdnsd is running...

pi@dns:~ $ systemctl status dsdnsd.service ● dsdnsd.service - DNS Safety Filter Loaded: loaded (/etc/systemd/system/dsdnsd.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2020-01-03 10:31:13 GMT; 3min 13s ago Docs: https://www.dnssafety.io Main PID: 456 (dsdnsd) Tasks: 11 (limit: 4915) Memory: 279.3M CGroup: /system.slice/dsdnsd.service └─456 /opt/dnssafety/bin/dsdnsd

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/diladele/dnssafety/issues/430?email_source=notifications&email_token=AATNHVWMIGN6KVKEIIGCUBDQ34KV7A5CNFSM4KCMFKE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ID3G72Q, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AATNHVXCQTCFSDB3JN6VWPDQ34KV7ANCNFSM4KCMFKEQ.

ra-at-diladele-com commented 4 years ago

Also the reporting will run once per day thus cron_report.log will appear only tomorrow.

From: Craig notifications@github.com Sent: Friday, 3 January 2020 11:57 To: diladele/dnssafety dnssafety@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [diladele/dnssafety] Access log '/opt/dnssafety/var/log/access.log' does not exist, please ensure the dsdnsd daemon is up and running! (#430)

Hi, Running fresh install on Raspberry Pi. The access.log file is not being created.

Traceback (most recent call last):

File "/opt/dnssafety-ui/var/console/traffic/views/summary.py", line 55, in get_context_data

period, prefix = self.get_period()

File "/opt/dnssafety-ui/var/console/traffic/views/mixins.py", line 98, in get_period

regenerate_now()

File "/opt/dnssafety-ui/var/console/traffic/views/mixins.py", line 69, in regenerate_now

c.collect()

File "/opt/dnssafety-ui/var/console/_domain/traffic/collect/collector_now.py", line 36, in collect

entries = self.read_entries(where, lines_limit)

File "/opt/dnssafety-ui/var/console/_domain/traffic/collect/collector_now.py", line 70, in read_entries

raise Exception("Access log '%s' does not exist, please ensure the dsdnsd daemon is up and running!" % self.access_log)

Exception: Access log '/opt/dnssafety/var/log/access.log' does not exist, please ensure the dsdnsd daemon is up and running!

[Screenshot 2020-01-03 at 10 52 01]https://user-images.githubusercontent.com/6324863/71719716-1afaf000-2e17-11ea-84e4-e4ba2aa86c61.png [Screenshot 2020-01-03 at 10 39 13]https://user-images.githubusercontent.com/6324863/71719209-85129580-2e15-11ea-9bb1-7791413ef6da.png [Screenshot 2020-01-03 at 10 39 36]https://user-images.githubusercontent.com/6324863/71719215-8ba10d00-2e15-11ea-81f1-bc4f5bf82e1f.png

/opt/dnssafety-ui/var/log/cron_report.log is not being created either...

[Screenshot 2020-01-03 at 10 40 35]https://user-images.githubusercontent.com/6324863/71719243-a4112780-2e15-11ea-8f34-5b95126385f7.png

dsdnsd is running...

pi@dns:~ $ systemctl status dsdnsd.service

● dsdnsd.service - DNS Safety Filter

Loaded: loaded (/etc/systemd/system/dsdnsd.service; enabled; vendor preset: enabled)

Active: active (running) since Fri 2020-01-03 10:31:13 GMT; 3min 13s ago

 Docs: https://www.dnssafety.io

Main PID: 456 (dsdnsd)

Tasks: 11 (limit: 4915)

Memory: 279.3M

CGroup: /system.slice/dsdnsd.service

       └─456 /opt/dnssafety/bin/dsdnsd

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/diladele/dnssafety/issues/430?email_source=notifications&email_token=AATNHVWMIGN6KVKEIIGCUBDQ34KV7A5CNFSM4KCMFKE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ID3G72Q, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AATNHVXCQTCFSDB3JN6VWPDQ34KV7ANCNFSM4KCMFKEQ.

craigusus commented 4 years ago

Ah yes! All working, sorry. Thanks for the quick response!