Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    haproxy not starting

    Scheduled Pinned Locked Moved pfSense Packages
    9 Posts 3 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fernandoipsec
      last edited by

      haproxy-devel net 0.59_13

      I'm unable to start haproxy after upgrade to pfsense 2.4.4.
      I get this error:

      Oct 26 00:38:55 php-cgi haproxy: startup error output!: Lua init: table index is nil.
      Oct 26 00:38:55 php-cgi haproxy: started new pid:none
      Oct 26 00:38:55 php-cgi haproxy: starting old pid:none

      How to fix this?

      P 1 Reply Last reply Reply Quote 0
      • P
        PiBa @fernandoipsec
        last edited by

        @fernandoipsec
        Have you added any lua scripts that might contain issues?

        1 Reply Last reply Reply Quote 0
        • F
          fernandoipsec
          last edited by

          No custom lua script added.
          Default package with basic configuration.
          This has occur after upgrade to pfsense 2.4.4. It's was working in the 2.4.3.

          P 1 Reply Last reply Reply Quote 0
          • P
            PiBa @fernandoipsec
            last edited by

            @fernandoipsec
            Can you check if haproxy.cfg contains anything that looks like 'lua' something?

            1 Reply Last reply Reply Quote 0
            • F
              fernandoipsec
              last edited by

              My haproxy.cfg
              No lua scripts.

              cat /var/etc/haproxy/haproxy.cfg
              # Automaticaly generated, dont edit manually.
              # Generated on: 2018-10-26 00:38
              global
              	maxconn			5
              	stats socket /tmp/haproxy.socket level admin
              	uid			80
              	gid			80
              	nbproc			1
              	hard-stop-after		15m
              	chroot				/tmp/haproxy_chroot
              	daemon
              	tune.ssl.default-dh-param	2048
              	server-state-file /tmp/haproxy_server_state
              
              listen HAProxyLocalStats
              	bind 127.0.0.1:2200 name localstats
              	mode http
              	stats enable
              	stats refresh 5
              	stats admin if TRUE
              	stats show-legends
              	stats uri /haproxy/haproxy_stats.php?haproxystats=1
              	timeout client 5000
              	timeout connect 5000
              	timeout server 5000
              
              P 1 Reply Last reply Reply Quote 0
              • P
                PiBa @fernandoipsec
                last edited by

                @fernandoipsec said in haproxy not starting:

                cat /var/etc/haproxy/haproxy.cfg

                can you check the _test config thats used for validating the configuration?
                /var/etc/haproxy_test/haproxy.cfg

                can you run 'haproxy -vv' ?

                1 Reply Last reply Reply Quote 0
                • F
                  fernandoipsec
                  last edited by

                  cat /var/etc/haproxy_test/haproxy.cfg
                  # Automaticaly generated, dont edit manually.
                  # Generated on: 2018-10-26 14:46
                  global
                  	maxconn			5
                  	stats socket /tmp/haproxy.socket level admin
                  	uid			80
                  	gid			80
                  	nbproc			1
                  	hard-stop-after		15m
                  	chroot				/tmp/haproxy_chroot
                  	daemon
                  	tune.ssl.default-dh-param	2048
                  	server-state-file /tmp/haproxy_server_state
                  
                  listen HAProxyLocalStats
                  	bind 127.0.0.1:2200 name localstats
                  	mode http
                  	stats enable
                  	stats refresh 5
                  	stats admin if TRUE
                  	stats show-legends
                  	stats uri /haproxy/haproxy_stats.php?haproxystats=1
                  	timeout client 5000
                  	timeout connect 5000
                  	timeout server 5000
                  
                  [2.4.4-RELEASE][admin@fw.mydomain.com]/root: haproxy -vv
                  Lua init: table index is nil.
                  [2.4.4-RELEASE][admin@fw.mydomain.com]/root:
                  
                  P 1 Reply Last reply Reply Quote 0
                  • P
                    PiBa @fernandoipsec
                    last edited by

                    @fernandoipsec said in haproxy not starting:

                    [2.4.4-RELEASE][admin@fw.mydomain.com]/root: haproxy -vv
                    Lua init: table index is nil.

                    I've not seen that happen before..

                    Can you try and re-install both haproxy and lua?
                    pkg delete lua53
                    pkg delete haproxy

                    Then install it again?

                    1 Reply Last reply Reply Quote 0
                    • S
                      sgw
                      last edited by sgw

                      same behavior for me, 2.4.4 on SG-1000.
                      Although I have one lua-file in HAproxy, for doing the LetsEncrypt-Challenge.

                      EDIT: solved by uninstalling and reinstalling the 2 packages, and re-adding the lua-script.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.