Can not start transponder Error

Max

Administrator
Staff member
But why rest-api not found on WCS server.
REST API can return 404 Not found if no target stream found.

You can do REST query to http://host:8081/rest-api/push/startup and capture HTTP traffic by Wireshark or tcpdump.

1. Please send us captured HTTP traffic. We will check validity of HTTP request.
2. Please send output of page http://host:8081?action=stat
The page should show statistics with published streams.
3. Please send us output of http://host:8081/rest-api/stream/find_all
This API returns list of all publishing and playing streams. If no streams here, your stream is not found.
 

Max

Administrator
Staff member
tcpdump port 8081 -B 10000 -w log.pcap

or if you send REST request from local PC, just start Wireshark and capture traffic from UI
 
Error tcpdump : NFLOG link-layer type filtering not implemented

when trying this command
tcpdump port 8081 -B 10000 -w log.pcap

my port 8444
 

Max

Administrator
Staff member
Try

Code:
tcpdump -i ens192 port 8081 -B 10000 -w log.pcap
Here ens192 is network interface available from command ifconfig.
Example:

[root@demo /]# ifconfig
ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet netmask 255.255.255.240 broadcast 188.40.244.255
inet6 fe80::250:56ff:fe84:eb07 prefixlen 64 scopeid 0x20<link>
ether 00:50:56:84:eb:07 txqueuelen 1000 (Ethernet)
RX packets 61203814038 bytes 62339607570637 (56.6 TiB)
RX errors 0 dropped 13282 overruns 0 frame 0
TX packets 89818707261 bytes 88162181410769 (80.1 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

>my port 8444

8444 is https port. You can't read traffic content because of https encryption.
That's why we ask traffic on port 8081 which is not encrypted.
 
tcpdump -i ens192 port 8081 -B 10000 -w log.pcap
Command output :

listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
 

Max

Administrator
Staff member
Press CTRL+C in the terminal to stop capture and write pcap file.
 

Max

Administrator
Staff member
Hello

Your error is related access rights in the Linux system.

Try to reset rights on server folder

Bash:
chmod 777 -R /usr/local/FlashphonerWebCallServer-{version}

Or try to start server as root user.

Bash:
sudo -s
service webcallserver stop
service webcallserver start
 

Max

Administrator
Staff member
We checked your server.
First, please update JDK to 12 or 14 as described here to prevent excessive CPU load when there're no streams published on server.
Then, you still using obsolete 5.0 branch. Please update to latest 5.2 build 5.2.971 for RTMP republishing to work. To do this:
1. Backup your flashphoner.properties file
2. Uninstall build 5.0.3530. Note that if you tried to install 5.2 over 5.0, uninstallation script may work incorrectly, so folder /usr/local/FlashphonerWebCallServer-5.0.3530 perhaps to be removed manually
3. Install 5.2 build
4. Copy settings from flashphoner.properties file to a newly installed config.
Then, modify settings to successfully republish RTMP stream to Youtube/Facebook:
Code:
rtmp_flash_ver_subscriber=LNX 76.219.189.0
After that, please check all the flow again.
 

Max

Administrator
Staff member
We checked your server again.
You've not set rtmp_flash_ver_subscriber as we recommended above
Code:
rtmp_flash_ver_subscriber=LNX 76.219.189.0
Now, Youtube returns Connection refused when you're trying to republish strem to it.
So, set the parameter as recommended.
To republish RTSP stream to Youtube as RTMP, this RTSP stream should be captured to WCS, for example
Code:
curl -H "Content-Type: application/json" -X POST http://localhost:8081/rest-api/rtsp/startup -d '{"uri":"rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov"}'
Then, you can republish the stream, for example
Code:
curl -H "Content-Type: application/json" -X POST http://localhost:8081/rest-api/push/startup -d '{"streamName":"rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov","rtmpUrl":"rtmp://a.rtmp.youtube.com/live2/3u0f-bv93-38qt-eep5-7y76"}'
If any REST query returns 500, this means error in query parameters: comma or bracket omitted, and so on. Please check how do you form queries.
 
Top