Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/haproxy: Log File doesn't work (missing diag_logs_template.inc) #1764

Closed
githubcek opened this issue Apr 4, 2020 · 5 comments
Closed
Assignees
Labels
support Community support

Comments

@githubcek
Copy link

Describe the bug
HAProxy plugin:
when I click on "Log File" I got:

Warning: require_once(diag_logs_template.inc): failed to open stream: No such file or directory in /usr/local/www/diag_logs_haproxy.php on line 6 Fatal error: require_once(): Failed opening required 'diag_logs_template.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/www/diag_logs_haproxy.php on line 6

Additional context
https://forum.opnsense.org/index.php?topic=16611.0

Environment
Opnsense 2.1.3

In 20.1.2 release is line: system: drop unused services.inc and diag_logs_template.inc

@fichtner fichtner added the support Community support label Apr 5, 2020
@fichtner
Copy link
Member

fichtner commented Apr 5, 2020

This was fixed in os-haproxy 2.20 for 20.1 as far as I know, current is 2.21. The info was not included in your report? Also things like os-cache can interfere.

@fraenki fraenki self-assigned this Apr 6, 2020
@fraenki
Copy link
Member

fraenki commented Apr 6, 2020

Works for me on 20.1.3 with os-haproxy 2.20.

@githubcek
Copy link
Author

Strange. I have same version 20.1.3 and haproxy 2.20.
Maybe one of upgrades didn't go as planed. I will wait for next upgrade.

I have fixed my problem with old diag_logs_template.inc and I had to comment line:
require_once("services.inc"); otherwise if I added also this file I got error function (don't remember name) already declared or something like this.

@githubcek
Copy link
Author

I have just upgraded to 20.1.4 (available today) and now HAporoxy Logs are working :)
HAproxy is now 2.21.

@fraenki
Copy link
Member

fraenki commented Apr 8, 2020

@githubcek Thanks for reporting back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Community support
Development

No branches or pull requests

3 participants