Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
HAproxy plugin not working & giving "unknown directive"
« previous
next »
Print
Pages: [
1
]
Author
Topic: HAproxy plugin not working & giving "unknown directive" (Read 688 times)
coatmaker618
Newbie
Posts: 11
Karma: 0
HAproxy plugin not working & giving "unknown directive"
«
on:
April 29, 2023, 03:36:32 am »
I am trying to use HAProxy as a reverse proxy in OPNSense. This SHOULD be straightforward (no?) but I'm getting some errors that are out of my depth....the current error is that HAProxy is refusing to start (immediately stops when start button is pushed).
I tried using the GUI to create the reverse proxy components and I believe they are all correct (test button says no issues). However when I try to press start--it immediately stops. I don't see anything in any logs but I'm happy to look around more if anyone knows some useful places to look.
Much troubleshooting & googling has gotten me to running the command below and seeing the following error:
"unknown directive '.'" from running
Code:
[Select]
haproxy -c -f /usr/local/etc/rc.d/haproxy
I know that
Code:
[Select]
. filename
allows bash to source the file name, but I don't know whether that's standard in BSD or what would be required or missing for that to work. It's also the first line in my file so it may be a red herring? As I said, I'm out of my depth here! Any help is appreciated.
Also, no idea WHY I'm getting this problem. If anyone could point me towards a default version of this file (and possible other files or tell me the best way to restore a default version of this file--I would happily try that too.
Thanks in advance!
«
Last Edit: April 29, 2023, 05:00:40 pm by coatmaker618
»
Logged
coatmaker618
Newbie
Posts: 11
Karma: 0
Re: HAproxy plugin not working & giving "unknown directive"
«
Reply #1 on:
May 06, 2023, 05:11:19 am »
Whelp, after MANY hours spent wondering what could possibly be wrong it turns out that it was actually Prometheus Node Exporter. I fat fingered the address when I put it in. I understand this means I'm an idiot, but some sort of notification about this would be nice. Or even stop the metrics but start HAProxy? At least that would help me narrow down debugging.
For anyone else who has this problem, is there a log that would show you this? I knew to doublecheck check HAProxy's listening IP & port, but I didn't think to check the metrics.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
HAproxy plugin not working & giving "unknown directive"