Project

General

Profile

Actions

Bug #14094

closed

HAProxy "Write to Disk" files not being saved

Added by Ryan V about 1 year ago. Updated about 1 year ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
haproxy
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
2.6.0
Affected Plus Version:
Affected Architecture:
All

Description

pfSense v2.6.0, HAProxy package v0.61_7.

I am trying to save a map file via the Files tab in the HAProxy GUI. I add a new file, call it "subdomains.map", select the "Write to disk" type, and add the file contents. The file is less than 300 bytes. I click save on the bottom of the page, then I click "Apply Changes" at the top of the page.

Once that's done, the file is nowhere to be found. I tried searching in /var/etc/haproxy, but it's not there. In the Command Prompt, I tried running find / -name '*subdomains*' , but there was no output. It seems that the file is not being saved.

I am also having the same issue with Errorfiles, but Lua files are saved to /var/etc/haproxy and added to /var/etc/haproxy/haproxy.cfg.

The assumption would be that any file saved with the "Write to disk" type would be written to /var/etc/haproxy.

Actions #1

Updated by Ryan V about 1 year ago

Replying to add that nothing helpful is showing in the logs found in Status > System Logs:

Mar 11 13:32:24     php-fpm     27335     /haproxy/haproxy_files.php: Configuration Change:
Mar 11 13:32:24     check_reload_status     404     Syncing firewall
Mar 11 13:32:24     php-fpm     27335     /haproxy/haproxy_files.php: Beginning configuration backup to https://acb.netgate.com/save
Mar 11 13:32:25     php-fpm     58130     haproxy: reload old pid:19606
Mar 11 13:32:25     php-fpm     58130     haproxy: started new pid:70332 
Actions #2

Updated by Christopher Cope about 1 year ago

  • Status changed from New to Not a Bug

Ryan V wrote:

pfSense v2.6.0, HAProxy package v0.61_7.

I am trying to save a map file via the Files tab in the HAProxy GUI. I add a new file, call it "subdomains.map", select the "Write to disk" type, and add the file contents. The file is less than 300 bytes. I click save on the bottom of the page, then I click "Apply Changes" at the top of the page.

Once that's done, the file is nowhere to be found. I tried searching in /var/etc/haproxy, but it's not there. In the Command Prompt, I tried running find / -name '*subdomains*' , but there was no output. It seems that the file is not being saved.

I am also having the same issue with Errorfiles, but Lua files are saved to /var/etc/haproxy and added to /var/etc/haproxy/haproxy.cfg.

The assumption would be that any file saved with the "Write to disk" type would be written to /var/etc/haproxy.

The files are not wrote unless HAProxy is enabled, and the backend / frontend are using them. I have tested locally and can confirm they are created as expected when these conditions are met. If you are still having issues please post on our forums for more assistance troubleshooting your configuration.

Actions #3

Updated by Ryan V about 1 year ago

Christopher Cope wrote in #note-2:

The files are not wrote unless HAProxy is enabled, and the backend / frontend are using them. I have tested locally and can confirm they are created as expected when these conditions are met. If you are still having issues please post on our forums for more assistance troubleshooting your configuration.

Thank you. I updated a post I made yesterday on the Netgate forums in response to your message here: https://forum.netgate.com/topic/178653/haproxy-adding-map-file-via-gui

Actions

Also available in: Atom PDF