Announcement

Collapse
No announcement yet.

Unpredictable Licensing caused by write-access of slaves

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unpredictable Licensing caused by write-access of slaves

    Here is an FYI and a potential feature request.

    We use an Environment Variable to define where the vrlclient.xml lives. The problem is apparently installers can overwrite this file and will overwrite this file based on the environment variable path.

    So what we had happening was that every time a slave detected it was out-of-date and updated it would run a vray or phoenix installer whose XML defined the chaos group license information. As soon as another installer would execute which had the correct settings it too would then load the vrlclient.xml and overwrite it again.

    What we were seeing was that the licenses were spontaneously succeeding and then failing and then succeeding at random times on our farm with no obvious cause even on the same machine. Checking the xml would result in it being correct, but it would be random when it would be right and when it would be wrong so troubleshooting missed the temporal nature of the file constantly changing.

    I recommend changing the installer logic if possible to *not* write to an xml file if it's not-local or the path is defined by an environment variable. We solved the issue for "good" by setting the file properties to read-only. Hopefully that will prevent it from happening to us again but if you are getting super random -7 server denied access errors... make sure you don't have installers triggering on the farm which include license settings.
    Gavin Greenwalt
    im.thatoneguy[at]gmail.com || Gavin[at]SFStudios.com
    Straightface Studios

  • #2
    You can remove the part of the config.xml that changes the vrlclient.xml. e.g.

    Code:
    <DefValues>
     <Value Name="TELEMETRY" DataType="value">1</Value>
     <Value Name="OPEN_CHANGELOG" DataType="value">0</Value>
     <Value Name="REMOTE_LICENSE" DataType="value">1</Value>
     <Value Name="INSTALL_SKETCHUP_2015" DataType="value">0</Value>
     <Value Name="INSTALL_SKETCHUP_2016" DataType="value">1</Value>
     <Value Name="INSTALL_SKETCHUP_2017" DataType="value">1</Value>
     <Value Name="INSTALL_SKETCHUP_2018" DataType="value">1</Value>
     <Value Name="INSTALL_LICENSE_SERVER" DataType="value">0</Value>
     <Value Name="INSTALL_SWARM" DataType="value">0</Value>
    [COLOR=#FF0000] <LicServer>
      <Host>127.0.0.1</Host>
      <Port>30304</Port>
      <Host1></Host1>
      <Port1>30304</Port1>
      <Host2></Host2>
      <Port2>30304</Port2>
      <User></User>
     </LicServer>[/COLOR]
    </DefValues>
    Without it:

    Code:
    <DefValues>
    [COLOR=#0000CD] <Value Name="TELEMETRY" DataType="value">1</Value>
     <Value Name="OPEN_CHANGELOG" DataType="value">0</Value>
     <Value Name="REMOTE_LICENSE" DataType="value">1</Value>
     <Value Name="INSTALL_SKETCHUP_2015" DataType="value">0</Value>
     <Value Name="INSTALL_SKETCHUP_2016" DataType="value">1</Value>
     <Value Name="INSTALL_SKETCHUP_2017" DataType="value">1</Value>
     <Value Name="INSTALL_SKETCHUP_2018" DataType="value">1</Value>
     <Value Name="INSTALL_LICENSE_SERVER" DataType="value">0</Value>
     <Value Name="INSTALL_SWARM" DataType="value">0</Value>[/COLOR]
    </DefValues>
    Ivan Slavchev

    SysOps

    Chaos Group

    Comment

    Working...
    X