Troubles with 2.3.1 from flash patch tutorial

For some reason I can get version 2.0.7.2_hotfix working with flash, but 2.3.1 LTS linked above still acts like my .mms file is broken. What am I doing wrong?

Here is what I have in my MMS files

AutoUpdateDisable=1
EOLUninstallDisable=1
EnableAllowList=1
AllowListPreview=0
AllowListRootMovieOnly=1
AllowListUrlPattern=file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/
AllowListUrlPattern=file:///F:/CasparCG/CasparCGServer-2_0_7_2-fl/Server/templates/

The relevent portion of the log.

[2021-10-12 20:45:07.782] [info]    Received message from 127.0.0.1: CG 1-20 ADD 1 "CASPAR_TEXT" 1 "<templateData></templateData>"\r\n
[2021-10-12 20:45:07.782] [debug]   Executing command: CG ADD
[2021-10-12 20:45:07.783] [info]    flash[file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/|0] Initialized
[2021-10-12 20:45:07.783] [debug]   flash[file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/|0] Invoking add-command: <invoke name="Add" returntype="xml"><arguments><number>1</number><string>file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/CASPAR_TEXT.ft</string><true/><string></string><string><![CDATA[<templateData></templateData>]]></string></arguments></invoke>
[2021-10-12 20:45:07.824] [info]    flash-player[.|1920x1080] Initialized.
[2021-10-12 20:45:07.824] [debug]   flash-player[.|1920x1080] Call: <invoke name="Add" returntype="xml"><arguments><number>1</number><string>file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/CASPAR_TEXT.ft</string><true/><string></string><string><![CDATA[<templateData></templateData>]]></string></arguments></invoke>
[2021-10-12 20:45:07.824] [warning] flash-player[.|1920x1080] Flash call failed:<invoke name="Add" returntype="xml"><arguments><number>1</number><string>file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/CASPAR_TEXT.ft</string><true/><string></string><string><![CDATA[<templateData></templateData>]]></string></arguments></invoke>
[2021-10-12 20:45:07.866] [debug]   Executed command (0.083s): CG ADD
[2021-10-12 20:45:07.866] [info]    Sent message to 127.0.0.1:202 CG OK\r\n

Here is the full log file for 2.3.1.

[2021-10-12 20:44:54.917] [info]    ############################################################################
[2021-10-12 20:44:54.918] [info]    CasparCG Server is distributed by the Swedish Broadcasting Corporation (SVT)
[2021-10-12 20:44:54.918] [info]    under the GNU General Public License GPLv3 or higher.
[2021-10-12 20:44:54.918] [info]    Please see LICENSE.TXT for details.
[2021-10-12 20:44:54.918] [info]    http://www.casparcg.com/
[2021-10-12 20:44:54.918] [info]    ############################################################################
[2021-10-12 20:44:54.918] [info]    Starting CasparCG Video and Graphics Playout Server 2.3.1 e767c1dda Release
[2021-10-12 20:44:55.275] [info]    Initializing OpenGL Device.
[2021-10-12 20:44:55.276] [info]    Initialized OpenGL 4.5.0 NVIDIA 461.92 NVIDIA Corporation
[2021-10-12 20:44:55.279] [info]    Initialized ffmpeg module.
[2021-10-12 20:44:55.279] [info]    Initialized oal module.
[2021-10-12 20:44:55.279] [info]    Initialized decklink module.
[2021-10-12 20:44:55.279] [info]    Initialized screen module.
[2021-10-12 20:44:55.279] [info]    Initialized newtek module.
[2021-10-12 20:44:55.410] [info]    Initialized html module.
[2021-10-12 20:44:55.410] [warning] Flash is no longer a recommended way of creating dynamic templates. Adobe have declared flash end-of-life at the end of 2020, and we cannot guarantee it will continue to work in any version after that time.
[2021-10-12 20:44:55.410] [warning] All support for flash templates will be removed in a future release of CasparCG
[2021-10-12 20:44:55.919] [info]    Initialized flash module.
[2021-10-12 20:44:55.921] [info]    Initialized bluefish module.
[2021-10-12 20:44:55.921] [info]    Initialized image module.
[2021-10-12 20:44:55.921] [info]    "F:/CasparCG\CasparCGv2_3_1-LTS-stable\Server\casparcg.config":
[2021-10-12 20:44:55.921] [info]    -----------------------------------------
[2021-10-12 20:44:55.921] [info]    <?xml version="1.0" encoding="utf-8"?>
[2021-10-12 20:44:55.921] [info]    <configuration>
[2021-10-12 20:44:55.921] [info]       <paths>
[2021-10-12 20:44:55.921] [info]          <media-path>media/</media-path>
[2021-10-12 20:44:55.921] [info]          <log-path>log/</log-path>
[2021-10-12 20:44:55.921] [info]          <data-path>data/</data-path>
[2021-10-12 20:44:55.921] [info]          <template-path>templates/</template-path>
[2021-10-12 20:44:55.921] [info]          <thumbnails-path>thumbnails/</thumbnails-path>
[2021-10-12 20:44:55.921] [info]       </paths>
[2021-10-12 20:44:55.921] [info]       <log-level>debug</log-level>
[2021-10-12 20:44:55.921] [info]       <template-hosts>
[2021-10-12 20:44:55.921] [info]          <template-host>
[2021-10-12 20:44:55.921] [info]             <video-mode/>
[2021-10-12 20:44:55.921] [info]             <filename/>
[2021-10-12 20:44:55.921] [info]             <width/>
[2021-10-12 20:44:55.921] [info]             <height/>
[2021-10-12 20:44:55.921] [info]          </template-host>
[2021-10-12 20:44:55.921] [info]       </template-hosts>
[2021-10-12 20:44:55.921] [info]       <flash>
[2021-10-12 20:44:55.921] [info]          <enabled>true</enabled>
[2021-10-12 20:44:55.921] [info]          <buffer-depth>auto</buffer-depth>
[2021-10-12 20:44:55.921] [info]       </flash>
[2021-10-12 20:44:55.921] [info]       <thumbnails>
[2021-10-12 20:44:55.921] [info]          <generate-thumbnails>false</generate-thumbnails>
[2021-10-12 20:44:55.921] [info]       </thumbnails>
[2021-10-12 20:44:55.921] [info]       <lock-clear-phrase>secret</lock-clear-phrase>
[2021-10-12 20:44:55.921] [info]       <channels>
[2021-10-12 20:44:55.921] [info]          <channel>
[2021-10-12 20:44:55.921] [info]             <video-mode>1080i5994</video-mode>
[2021-10-12 20:44:55.921] [info]             <consumers>
[2021-10-12 20:44:55.921] [info]                <screen/>
[2021-10-12 20:44:55.921] [info]                <system-audio/>
[2021-10-12 20:44:55.921] [info]             </consumers>
[2021-10-12 20:44:55.921] [info]          </channel>
[2021-10-12 20:44:55.921] [info]       </channels>
[2021-10-12 20:44:55.921] [info]       <controllers>
[2021-10-12 20:44:55.921] [info]          <tcp>
[2021-10-12 20:44:55.921] [info]             <port>5250</port>
[2021-10-12 20:44:55.921] [info]             <protocol>AMCP</protocol>
[2021-10-12 20:44:55.921] [info]          </tcp>
[2021-10-12 20:44:55.921] [info]       </controllers>
[2021-10-12 20:44:55.921] [info]       <amcp>
[2021-10-12 20:44:55.921] [info]          <media-server>
[2021-10-12 20:44:55.921] [info]             <host>localhost</host>
[2021-10-12 20:44:55.921] [info]             <port>8000</port>
[2021-10-12 20:44:55.921] [info]          </media-server>
[2021-10-12 20:44:55.921] [info]       </amcp>
[2021-10-12 20:44:55.921] [info]    </configuration>
[2021-10-12 20:44:55.921] [info]    -----------------------------------------
[2021-10-12 20:44:55.927] [info]    Initialized OpenGL Accelerated GPU Image Mixer for channel 1
[2021-10-12 20:44:55.927] [info]    video_channel[1|1080i5994] Successfully Initialized.
[2021-10-12 20:44:55.928] [info]    Screen consumer [1|1080i5994] Initialized.
[2021-10-12 20:44:56.018] [info]    oal[1|1080i5994] Initialized.
[2021-10-12 20:44:56.018] [info]    Initialized channels.
[2021-10-12 20:44:56.019] [info]    Initialized controllers.
[2021-10-12 20:44:56.019] [info]    Initialized osc.
[2021-10-12 20:44:56.405] [info]    async_event_server[:5250] Accepted connection from 127.0.0.1 (1 connections).
[2021-10-12 20:44:56.804] [info]    async_event_server[:5250] Client 127.0.0.1 disconnected (0 connections).
[2021-10-12 20:44:56.804] [debug]   async_event_server[:5250] connection destroyed.
[2021-10-12 20:44:56.804] [info]    async_event_server[:5250] Accepted connection from 127.0.0.1 (1 connections).
[2021-10-12 20:44:56.814] [info]    Received message from 127.0.0.1: VERSION SERVER\r\n
[2021-10-12 20:44:56.814] [debug]   Executing command: VERSION
[2021-10-12 20:44:56.814] [debug]   Executed command (0.001s): VERSION
[2021-10-12 20:44:56.814] [info]    Sent message to 127.0.0.1:201 VERSION OK\r\n2.3.1 e767c1dda Release\r\n
[2021-10-12 20:44:56.815] [info]    Received message from 127.0.0.1: INFO\r\n
[2021-10-12 20:44:56.815] [debug]   Executing command: INFO
[2021-10-12 20:44:56.815] [debug]   Executed command (0s): INFO
[2021-10-12 20:44:56.815] [info]    Sent message to 127.0.0.1:200 INFO OK\r\n1 1080i5994 PLAYING\r\n\r\n
[2021-10-12 20:44:56.815] [info]    Received message from 127.0.0.1: CLS\r\n
[2021-10-12 20:44:56.815] [debug]   Executing command: CLS
[2021-10-12 20:44:56.815] [info]    Received message from 127.0.0.1: TLS\r\n
[2021-10-12 20:44:56.816] [info]    Received message from 127.0.0.1: DATA LIST\r\n
[2021-10-12 20:44:56.816] [info]    Received message from 127.0.0.1: THUMBNAIL LIST\r\n
[2021-10-12 20:44:56.829] [debug]   Executed command (0.014s): CLS
[2021-10-12 20:44:56.829] [info]    Sent message to 127.0.0.1:200 CLS OK\r\n\r\n
[2021-10-12 20:44:56.829] [debug]   Executing command: TLS
[2021-10-12 20:44:56.836] [debug]   Executed command (0.007s): TLS
[2021-10-12 20:44:56.836] [info]    Sent message to 127.0.0.1:200 TLS OK\r\nCASPAR_TEXT\r\nNTSC-TEST-60\r\nFRAME\r\nNEW BUG TEMPLATE\r\nNTSC-TEST-30\r\nNUVO GRAPHIC TEMPLATE\r\nPHONE\r\nTEMPLATE\r\nCASPARCG_FLASH_TEMPLATES_EXAMPLE_PACK_1/ADVANCEDTEMPLATE1\r\nCASPARCG_FLASH_TEMPLATES_EXAMPLE_PACK_1/ADVANCEDTEMPLATE2\r\nCASPARCG_FLASH_TEMPLATES_EXAMPLE_PACK_1/SIMPLETEMPLATE1\r\nCASPARCG_FLASH_TEMPLATES_EXAMPLE_PACK_1/SIMPLETEMPLATE2\r\n\r\n
[2021-10-12 20:44:56.836] [debug]   Executing command: DATA LIST
[2021-10-12 20:44:56.836] [debug]   Executed command (0s): DATA LIST
[2021-10-12 20:44:56.836] [info]    Sent message to 127.0.0.1:200 DATA LIST OK\r\n\r\n
[2021-10-12 20:44:56.836] [debug]   Executing command: THUMBNAIL LIST
[2021-10-12 20:44:56.843] [debug]   Executed command (0.008s): THUMBNAIL LIST
[2021-10-12 20:44:56.843] [info]    Sent message to 127.0.0.1:200 THUMBNAIL LIST OK\r\n\r\n
[2021-10-12 20:45:07.782] [info]    Received message from 127.0.0.1: CG 1-20 ADD 1 "CASPAR_TEXT" 1 "<templateData></templateData>"\r\n
[2021-10-12 20:45:07.782] [debug]   Executing command: CG ADD
[2021-10-12 20:45:07.783] [info]    flash[file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/|0] Initialized
[2021-10-12 20:45:07.783] [debug]   flash[file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/|0] Invoking add-command: <invoke name="Add" returntype="xml"><arguments><number>1</number><string>file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/CASPAR_TEXT.ft</string><true/><string></string><string><![CDATA[<templateData></templateData>]]></string></arguments></invoke>
[2021-10-12 20:45:07.824] [info]    flash-player[.|1920x1080] Initialized.
[2021-10-12 20:45:07.824] [debug]   flash-player[.|1920x1080] Call: <invoke name="Add" returntype="xml"><arguments><number>1</number><string>file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/CASPAR_TEXT.ft</string><true/><string></string><string><![CDATA[<templateData></templateData>]]></string></arguments></invoke>
[2021-10-12 20:45:07.824] [warning] flash-player[.|1920x1080] Flash call failed:<invoke name="Add" returntype="xml"><arguments><number>1</number><string>file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/CASPAR_TEXT.ft</string><true/><string></string><string><![CDATA[<templateData></templateData>]]></string></arguments></invoke>
[2021-10-12 20:45:07.866] [debug]   Executed command (0.083s): CG ADD
[2021-10-12 20:45:07.866] [info]    Sent message to 127.0.0.1:202 CG OK\r\n
[2021-10-12 20:45:19.238] [info]    Received message from 127.0.0.1: CG 1-20 STOP 1\r\n
[2021-10-12 20:45:19.238] [debug]   Executing command: CG STOP
[2021-10-12 20:45:19.238] [debug]   flash[file:///F:/CasparCG/CasparCGv2_3_1-LTS-stable/Server/templates/|0] Invoking stop-command: <invoke name="Stop" returntype="xml"><arguments><array><property id="0"><number>1</number></property></array><number>0</number></arguments></invoke>
[2021-10-12 20:45:19.238] [debug]   Executed command (0s): CG STOP
[2021-10-12 20:45:19.238] [debug]   flash-player[.|1920x1080] Call: <invoke name="Stop" returntype="xml"><arguments><array><property id="0"><number>1</number></property></array><number>0</number></arguments></invoke>
[2021-10-12 20:45:19.238] [info]    Sent message to 127.0.0.1:202 CG OK\r\n
[2021-10-12 20:45:19.238] [warning] flash-player[.|1920x1080] Flash call failed:<invoke name="Stop" returntype="xml"><arguments><array><property id="0"><number>1</number></property></array><number>0</number></arguments></invoke>
[2021-10-12 20:45:24.597] [info]    Received message from Console: q\r\n
[2021-10-12 20:45:24.598] [info]    async_event_server[:5250] Client 127.0.0.1 disconnected (0 connections).
[2021-10-12 20:45:24.598] [debug]   async_event_server[:5250] connection destroyed.
[2021-10-12 20:45:24.599] [info]    [asio] Shutting down global io_service.
[2021-10-12 20:45:24.599] [info]    [asio] Global io_service uninitialized.
[2021-10-12 20:45:24.706] [info]    video_channel[1|1080i5994] Uninitializing.
[2021-10-12 20:45:25.054] [info]    flash-player[.|1920x1080] Uninitialized.
[2021-10-12 20:45:25.056] [debug]   Screen consumer [1|1080i5994] Uninitializing.
[2021-10-12 20:45:25.066] [info]    Screen consumer [1|1080i5994] Uninitialized.
[2021-10-12 20:45:25.066] [debug]   oal[1|1080i5994] Uninitializing.
[2021-10-12 20:45:25.114] [info]    oal[1|1080i5994] Uninitialized.
[2021-10-12 20:45:25.114] [info]    Successfully shutdown CasparCG Server.

Solved! I needed to remove the following code from the config file. I’m not sure what it does, but it broke flash player. This should probably be changed in the copy of casparcg.config distributed as a hotfix.

    <lock-clear-phrase>secret</lock-clear-phrase>

That is weird! I just double checked: In my config the line is there and Flash templates do work. But good that it works for you now, bad that we don’t know why…