HAProxy failed to complete install upgrade 2.1.4 to 2.1.5
-
Performed an upgrade from 2.1.4 to 2.1.5
Only packages previously installed (working) where haproxy-devel vsn 1.5.3 pkg v 0.10 and pfBlockerAfter reboot, web showed…
Packages are currently being reinstalled in the background.
Do not make changes in the GUI until this is complete.- HAProxy dashboard app disappeared
- no Services menu for HAProxy
system log showed both pfBlocker and haproxy-devel installed during upgrade, no errors logged
Waited an hour, rebooted
Rebooted fine, still no Services/HAProxy menu
- Clicked re-install pkg
Installing haproxy-devel and its dependencies.
Loading package instructions...
Custom commands...
Executing custom_php_install_command()...HAProxy, running haproxy_custom_php_install_command()
HAProxy, conf_mount_rw
HAProxy, create '/usr/local/etc/rc.d/haproxy.sh'
HAProxy, update configuration
Still not on Services menu
Added Dashboard HAProxy app
Can manually get to setup page haproxy_listeners.phpsystem log shows...
php: rc.start_packages: XML error: Invalid document end at line 150 in /usr/local/pkg/haproxy_xmlrpcsyncclient.incThe above file matches exactly the running config on production firewall box running 2.1.4 - same datestamp too.
Not sure if HAProxy is usable in current state or not ?
-
If you de-install and re-install the package do you get to the same point.?
Is it possible to share the <haproxy>section in <installedpackages>from your pfsense configfile(backup their off).? Send it to me in a pm if you like.</installedpackages></haproxy>
-
-
did complete removal of haproxy-devel
Package deleted.
Removing package…
Starting package deletion for haproxy-devel-1.5.3-amd64...done.
Removing haproxy-devel components...
Menu items... done.
Services... done.
Loading package instructions...
Deinstall commands... HAProxy, running haproxy_custom_php_deinstall_command()
HAProxy, deleting haproxy webgui
HAProxy, installing cron job if needed
HAProxy, running haproxy_custom_php_deinstall_command() DONE
done.
Removing package instructions...done.
Auxiliary files... done.
Package XML... done.
Configuration... done.
done.
Package deleted. -
fresh install
Installing haproxy-devel and its dependencies.
...
Loading package instructions...
Custom commands...
Executing custom_php_install_command()...HAProxy, running haproxy_custom_php_install_command()
HAProxy, conf_mount_rw
HAProxy, create '/usr/local/etc/rc.d/haproxy.sh'
HAProxy, update configuration -
package installer hangs here
-
opened separate tab - package shows installed
-
still no Service/HAProxy menu option
-
system log shows...
php: /pkg_mgr_install.php: Beginning package installation for haproxy-devel . -
but never shows completed
-
It's still 'hung' in same spot now.
-
-
Here is the config.xml after full deinstall & install…
<package><name>haproxy-devel</name>
<pkginfolink>https://doc.pfsense.org/index.php/haproxy_package</pkginfolink>
<descr> This package implements TCP, HTTP and HTTPS balance features from Haproxy.<br />
Supports acl's for smart backend switching.]]></descr>
<website>http://haproxy.1wt.eu/</website>
<category>Services</category>
<version>1.5.3 pkg v 0.10</version>
<status>Release</status>
<required_version>2.1</required_version>
<config_file>https://packages.pfsense.org/packages/config/haproxy-devel/haproxy.xml</config_file>
<configurationfile>haproxy.xml</configurationfile>
<depends_on_package_base_url>https://files.pfsense.org/packages/amd64/8/All/</depends_on_package_base_url>
<depends_on_package>haproxy-1.4.22.tbz</depends_on_package>
<depends_on_package_pbi>haproxy-devel-1.5.3-amd64.pbi</depends_on_package_pbi>
<build_port_path>/usr/ports/net/haproxy-devel</build_port_path>
<build_pbi><ports_before>security/openssl</ports_before>
<custom_name>haproxy-devel</custom_name>
<port>/usr/ports/net/haproxy-devel</port></build_pbi>
<build_options>WITH_OPENSSL_PORT=yes;OPTIONS_UNSET_FORCE=PCRE DPCRE;OPTIONS_SET=OPENSSL SPCRE</build_options></package> -
Ok it still hangs. At least it is 'reproducible' not sure if that is a good thing, but does help for diagnosing the issue..
As for the xml part, what you posted is ok, but i was asking for another part which looks like what i post below starting and ending with <haproxy></haproxy> , as the configuration itself is probably somehow not upgrading the proper way.. There could be some information in there that you do not want 'visible' for everyone to read though..:
<haproxy><logfacility>local0</logfacility> <loglevel>warning</loglevel> <maxconn>600</maxconn> <ha_backends>..also include this info..</ha_backends> <ha_pools>..also include this info..</ha_pools> <nbproc>1</nbproc> <remotesyslog>192.168.0.40</remotesyslog> <localstats_refreshtime>5</localstats_refreshtime> <localstats_sticktable_refreshtime>2</localstats_sticktable_refreshtime> <localstatsport>2200</localstatsport> <enable><ssldefaultdhparam>2048</ssldefaultdhparam> <log-send-hostname></log-send-hostname></enable></haproxy>