agh1467 / plugins

OPNsense plugin collection
https://opnsense.org/
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Logs pages no longer show log entries #4

Closed agh1467 closed 3 years ago

agh1467 commented 3 years ago

Important notices Before you add a new report, we ask you kindly to acknowledge the following:

[X] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md

[X] I have searched the existing issues and I'm convinced that mine is new.

[X] The title contains the plugin to which this issue belongs

Describe the bug All of the log pages show no entries.

To Reproduce Steps to reproduce the behavior:

  1. View the log pages.

Expected behavior Log entries are displayed.

Additional context Was working before, it's not working now.

Environment

OPNsense 21.1.7_1-amd64 FreeBSD 12.1-RELEASE-p18-HBSD OpenSSL 1.1.1k 25 Mar 2021

agh1467 commented 3 years ago

This is due to some recent API changes. It's unclear to me exactly what the problem is, but at the moment, it looks like the solution will be to redirect logs into a specifically named directory to match what the API is expecting the directory to be called. The logs in /var/log/dnscrypt-proxy will no longer be reachable by the Diagnostics/Logs API.

agh1467 commented 3 years ago

This appears to be related to the migration to Phalcon4 templating engine. It seems to be eating the dash in the path name. So, to work around the issue, the log directory is being moved to a directory without a dash since the issue is within the diagnostics API within core itself, it's not fixable from this plugin.

b614c21b0ef2d456f139a14815897fb4bbd10d79 addresses this issue.