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

Varnish 3: Can't create director

Scheduled Pinned Locked Moved pfSense Packages
4 Posts 2 Posters 1.3k 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.
  • R
    rmm
    last edited by Nov 29, 2013, 7:11 PM

    I have a new pfSense 2.1 setup.  I added the varnish 3 package and created 6 backends, all identical except for the IP and name.  Works fine if I don't define a director, although everything gets sent to the first backend.

    So I go to the LB Directors tab, click "add a new item" and try creating a director.  I give it a name, and then select the backends (I've tried anything from a single backend to all 6).  It won't "stick".

    The general system log shows this error:

    php: /pkg_edit.php: XML error: Attribute without value at line 2525 in /conf/config.xml
    

    And it reverts to a backup config.  Looking at /conf/config.xml.bad on line 2525 I see this:

    The entire varnish config section looks like this:

                    <varnishlbdirectors><config><director settings=""><directorname>cluster</directorname>
                                    <fieldtype>==</fieldtype>
                                    <directorurl><directorurl2><rewritehost><rewriteurl><grace><customapping><backendlist><directortype>round-robin</directortype>
                                    <row><backendname>blade1</backendname>
                                            <weight>10</weight></row> 
                                    <failoversettings><failover></failover></failoversettings></backendlist></customapping></grace></rewriteurl></rewritehost></directorurl2></directorurl></director></config></varnishlbdirectors> 
    

    Any ideas?

    1 Reply Last reply Reply Quote 0
    • M
      marcelloc
      last edited by Nov 30, 2013, 1:54 AM

      Did you selected the other options on lb director?

      Host equal to yourwebsite.com.

      Did you filled weight option besides backend field?

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • R
        rmm
        last edited by Nov 30, 2013, 6:56 AM

        Thanks for the reply.

        Yes, I've tried putting in the hostname and other values, a weight, etc.  Same problem.

        1 Reply Last reply Reply Quote 0
        • M
          marcelloc
          last edited by Dec 9, 2013, 8:15 PM Dec 9, 2013, 8:01 PM

          Sorry for the late reply. I've found the bug.
          It's fixed on 0.2.1

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            [[user:consent.lead]]
            [[user:consent.not_received]]