Unknown action: connect

Hi, I send request:

http://XX.XX.XX.XX:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/tst1.stream/actions/connect?connectAppName=Live1&appInstance=_definst_&mediaCasterType=rtp

tst1.stream - is present

Live1 - is name of my application

defaultServer and defaultVHost - OK

Manually this application connect to this stream successfully

But remotely my program receive:

<wmsResponse>
<success>false</success>
<message>Unknown action: connect</message>
</wmsResponse>

What is my mistake? Thanks.

Hello there, try this same call but remove the .stream from the file name.

Regards,

Salvadore

I renamed stream file name from tst1.stream to tst1

send request without extension “.stream”

http://XX.XX.XX.XX:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/tst1/actions/connect?connectAppName=Live1&appInstance=_definst_&mediaCasterType=rtp

and receive answer

false

Unknown action: connect

Log message:

REST API: Unknown action: connect

c-client-id: 1129735649,c-ip: 127.0.0.1,cs-bytes: 7056692,sc-bytes: 0,x-duration: 2491514.131

Hello,

First I want to make sure you are following the example form this article:

https://www.wowza.com/docs/stream-management-query-examples

I do see that you have posted what appears to be the end section of this call:

curl -X PUT --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/metallica/actions/connect?connectAppName=testlive&appInstance=_definst_&mediaCasterType=rtp"

Can you confirm that the opening section of this call matches the call you are making?

Have you been able to make other successful REST API requests to this server?

Regards,

Jason Hatchett

Hi @Anders Hammer and all the community. When upgrading to 4.8.0 in Windows systems, you may need to install some additional C++ libraries in order for SRT ingestion to keep working as expected. This is further described in the notes here: https://www.wowza.com/docs/ingest-and-publish-an-srt-stream-with-wowza-streaming-engine

If the above doesn’t solve it, we recommend opening a support ticket providing your server /conf and /logs folders for further inspection

Regards,

Alberto Cabaleiro

Wowza Support Engineer

Hi @Alberto Cabaleiro,

Thank you, installing the latest C++ redistributable solved the issue on all servers!

Regards,

Anders

I have just updated our Wowza farm from 4.7.7 to 4.8.0 and now I’m getting this error on 4 out of 10 servers (all Windows). None of the servers reported error during upgrade. I have tried restarting one of the servers but it still returns this error.

I’ll demonstrate all the REST API calls below.

Get stream files:

http://hostname:8087
/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles

Returns:

{
    "serverName": "_defaultServer_",
    "streamFiles": [
        {
            "id": "myStream",
            "href": "/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles/myStream"
        }
    ]
}

Get stream file:

[http://hostname:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles/myStream](http://hostname:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles/myStream)

Returns:

{
    "version": "1591450261539",
    "serverName": "_defaultServer_",
    "name": "myStream",
    "uri": "srt://0.0.0.0:10000"
}

Connect stream file:

http://hostname:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles/myStream/actions/connect?connectAppName=live&appInstance=_definst_&mediaCasterType=srt 

Returns:

<strong>{
    "success": false,
    "message": "Unknown action: connect",
    "data": null
}</strong>

Trying to connect it in the GUI results in the same message:

The error log confirms it:

ERROR    server    comment    2020-06-06    21:47:50    -    -    -    -    -    74865.239    -    -    -    -    -    -    -    -    REST API: Unknown action: connect

In the access log there is a Java error right before the “Unknown action: connect” message:

2020-06-06    20:36:59    CST    comment    server    INFO    200    -    SRTSessionNative.loadLibrary: Native load error: D:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.6.0/lib-native/win64/srt/srt.dll: java.lang.UnsatisfiedLinkError: D:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.6.0\lib-native\win64\srt\srt.dll: Can't find dependent libraries|at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Method)|at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)|at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)|at java.base/java.lang.Runtime.load0(Unknown Source)|at java.base/java.lang.System.load(Unknown Source)|    -    -    -    70614.305    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -
2020-06-06    20:36:59    CST    comment    server    INFO    200    -    SRTSessionNative.loadLibrary: Native load error: D:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.6.0/lib-native/win64/srt/wms-srt.dll: java.lang.UnsatisfiedLinkError: D:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.6.0\lib-native\win64\srt\wms-srt.dll: Can't find dependent libraries|at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Method)|at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)|at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)|at java.base/java.lang.Runtime.load0(Unknown Source)|at java.base/java.lang.System.load(Unknown Source)|    -    -    -    70614.325    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -
2020-06-06    20:37:00    CST    comment    server    ERROR    500    -    REST API: Unknown action: connect    -    -    -    70614.391    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -    -

Edit: I started Wowza in console mode and retried the same operation. It logged the following:

INFO server comment - LiveMediaSRTReceiver.create
INFO server comment - SRTSessionNative.loadLibrary: Native load error: C:/Progra
m Files (x86)/Wowza Media Systems/Wowza Streaming Engine/lib-native/win64/srt/sr
t.dll: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Wowza Media System
s\Wowza Streaming Engine\lib-native\win64\srt\srt.dll: Can't find dependent libr
aries|at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Method)|at ja
va.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)|at java.base/java.lan
g.ClassLoader.loadLibrary(Unknown Source)|at java.base/java.lang.Runtime.load0(U
nknown Source)|at java.base/java.lang.System.load(Unknown Source)|
INFO server comment - SRTSessionNative.loadLibrary: Native load error: C:/Progra
m Files (x86)/Wowza Media Systems/Wowza Streaming Engine/lib-native/win64/srt/wm
s-srt.dll: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Wowza Media Sy
stems\Wowza Streaming Engine\lib-native\win64\srt\wms-srt.dll: Can't find depend
ent libraries|at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Metho
d)|at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)|at java.base/
java.lang.ClassLoader.loadLibrary(Unknown Source)|at java.base/java.lang.Runtime
.load0(Unknown Source)|at java.base/java.lang.System.load(Unknown Source)|
ERROR server comment - REST API: Unknown action: connect
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields
(file:/C:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine/lib/xst
ream-1.4.11.1.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.x
stream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect
ive access operations
WARNING: All illegal access operations will be denied in a future release

Hi @Anders Hammer and all the community. When upgrading to 4.8.0 in Windows systems, you may need to install some additional C++ libraries in order for SRT ingestion to keep working as expected. This is further described in the notes here: https://www.wowza.com/docs/ingest-and-publish-an-srt-stream-with-wowza-streaming-engine

If the above doesn’t solve it, we recommend opening a support ticket providing your server /conf and /logs folders for further inspection

Regards,

Alberto Cabaleiro

Wowza Support Engineer