Skip to main content
Participating Frequently
May 24, 2011
Question

adding new swf file in SWFs folder and still "SWF verification failed"

  • May 24, 2011
  • 1 reply
  • 964 views

Hi all,

I have two servers running FMS 4 (exacyly the same version).

On one server, when i add a swf in the folder application/vod/SWFs, the swf is "added" 5 minutes later as authorized swf, according to the UpdateInterval config value. On the other i have to restart the server.

I checked every config file of both server, they are exactly the same (except few values depending on the servers themselves, of course, like IP, host, etc...).

Anyone has an idea on what could be the problem on the first server?

This is very annoying since a restart disconnects all my customers!

Thanx for your help.

    This topic has been closed for replies.

    1 reply

    Nikhil_Kalyan
    Participating Frequently
    May 25, 2011

    Hi,

    Thanks for trying FMS 4.

    I presume you are changing the SWF verification settings under the application.xml on both the servers. Is that correct ?

    As you mentioned, if there is exactly the same settings, there is no way we can expect different behaviors. Either it fails at both places or it works. So please once again check your SWFVerification settings on both the servers. Are these windows machines ?

    The problem for the troubled machine is that after five minutes, the SWF is not being authorized and you can connect to the application with any SWF. Is that correct ?

    Can you please check the logs and let us know if you find anything related to SWF verification failures etc ?

    Thank you !

    samZasAuthor
    Participating Frequently
    May 25, 2011

    Hi,

    Thanx for your answer.

    The machines are running linux debian.

    The problem is that the SWF is NOT authorized after 5 minutes (nor 10 hours or more...) if i put it in the SWFs folder. In the logs you can find

    "SWF verification failed ... disconnecting .. etc..." when trying to connect with the new swf file.

    On the other machine it works perfectly well.

    I checked every xml file (and the fms.ini) under the fms directory on both machines, and, if i didn't make no mistakes, there is no difference between them except when dealing with IP, Hosts, etc...

    Im using the standard "vod" application. in what file should i look into for this SWFverification configuration?

    Thx for your help.

    Just for your information, here's some of my config files :

    fms/conf/Server.xml file :

    <SWFVerification>
                <SWFFolder></SWFFolder>
                <DirLevelSWFScan>1</DirLevelSWFScan>
                <MaxInitDelay>5</MaxInitDelay>
                <Cache>
                    <TTL>1440</TTL>
                    <UpdateInterval>5</UpdateInterval>
                </Cache>
    </SWFVerification>

    In my fms/applications/vod/Application.xml there is nothing about SWFVerification.

    In my fms/conf/_defaultRoot_/_defaultVHost_/Application.xml, you can find this :

    <SWFVerification enabled="true">
      <SWFFolder></SWFFolder>
      <MinGoodVersion></MinGoodVersion>
      <DirLevelSWFScan>1</DirLevelSWFScan>
      <MaxInitDelay>5</MaxInitDelay>
      <FirstHashTimeout>5</FirstHashTimeout>
      <FinalHashTimeout>60</FinalHashTimeout>
      <UserAgentExceptions>
       <Exception from="" to=""/>
      </UserAgentExceptions>
      <Cache>
       <TTL>1440</TTL>
       <UpdateInterval>5</UpdateInterval>
      </Cache>
      <ConnectionBlocking enabled="false"/>
    </SWFVerification>

    Nikhil_Kalyan
    Participating Frequently
    May 25, 2011

    Hi,

    Thanks for the details.
    Let me have the steps cleared.

    Troubled machine :

    1. You installed FMS and enabled SWFVerificaiton.

    2. I hope you restarted the server at least once after making this change to SWF Verificaiton in applicaiton.xml

    3. Once the server is started, you kept the SWF files under the SWFs folder for authorization.

    4. Even after the 5 min update interval, the SWF Verification fails and restart is the only option.

    but,

    5. What happens after restart ? Did the SWF Verificaiton now ok ? Are you putting more and more SWFs agian ?

    why i asked this is because i am doubting that you might not have restarted the fms at all after making changes to the config files.