sfu client sample page test error

sangsoo

Member
Hello.
I have a question while testing sfu functions with simulcast.
: https://docs.flashphoner.com/display/WCS52EN/SFU+functions+with+Simulcast

When I open the sfu client sample page, the cam is added, but message send fails (datachannel). Other users cannot join either.
Looking at the server log, there is a wsserver handler - ssl-ws-pool-19-thread-7 java.lang.reflect.InmvocationTargetException log.
What is the problem? What should I fix?
2025-08-25 165515.png


----- My WCS Version info-----
wcs_version=5.2.2300-9c528428e5f667fcb6d74dc1a9b43b04e2a5fa8f
wcs_client_version=2.0.259-485b3fbffa4fd4abe88fbdc455691a05bbf79025


1. cli sfu app, app-rest-method registration complete.
스크린샷 2025-08-25 170345.png


2. sfu client test page.
: https://wcs:8444/client2/sfu/client/main.html

3. I tried following the instructions in the forum thread I posted earlier (March 2022), but the problem was not resolved.
: https://forum.flashphoner.com/threads/how-to-configure-sfu-functions-with-simulcast.14184
: https://docs.flashphoner.com/display/SS1E/Building+the+examples

Please help me use sfuApp.
Thank you.
 
Last edited:

Max

Administrator
Staff member
Good day.
We cannot reproduce the issue both on latest WCS build 5.2.2301 and on our demo server (build 5.3.116). SFU Client example seems working
1756114043090.png

Please try the example on demo server: https://demo.flashphoner.com:8444/client2/sfu/client/main.html
Note that actual docs are here:
If the exaple on demo server works, please try to install a new WCS instance (not update), configure as described in docs
Code:
codecs_exclude_sfu=alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,flv,mpv,vp8,h265
profiles=42e01f,640028
If SFU Client example still does not work, please provide SSH access to the server where issue is reproducing using this form.
 

sangsoo

Member
Thank you for your reply.

1. It works fine on demo wcs.
2. Even after updating my wcs to 5.2.2301(First installed in 2022), the sfu client does not work. Similarly, the server log shows a web socket error log.
3. The newly installed WCS has not yet been tested.

It would be helpful if you could check it by connecting via ssh.
You need to register a AWS firewall policy.
Please let me know the public IP address to connect via ssh.
Thanks.
 
Last edited:

Max

Administrator
Staff member
Did you try to install 5.2.2301 from scratch? Is the issue reproducing in this case?
Also, we did not recommend to update 5.3 branch to 5.2 and vice versa, in prefer to install a new instance then copy a configuration files needed.
 

sangsoo

Member
No.
The test server was first installed on AWS Marketplace (EC2) in 2022 and has been updated since then. The current version is 5.2.2301.
I added the sfu app to this server, and during sfu client testing, a server error was logged.

I applied two methods to this server:

1. Installed 5.3.126
- wget 5.3.126 download > tar -xvzf unpack,
- ran 5.3.126's install.sh
- SFT client test succeeded

2. Installed 5.2 using the same method
- wget 5.2.2301 download > tar -xvzf unpack,
- ran 5.2.2301's install.sh
- SFT client test failed (confirmed the same server log as before)

3. Installed 5.3 using method 1 (installing 5.3.126) on another EC2 instance with a similar environment that had the same issue
- SFT client also succeeded

I will also refer to the answer that downgrading from 5.3 to 5.2 is not recommended.
Thank you.
 

Max

Administrator
Staff member
Please try to uninstall WCS using
Code:
/usr/local/FlashphonerWebCallServer/bin/uninstall.sh
Then install 5.2.2301.
Is the issue reproducing in this case?
 

sangsoo

Member
More good news.
After running ./uninstall.sh, I reinstalled version 5.2.2301, and the sfu client worked fine even in the 5.2 version.
Thanks.
1756350403906.png
 

Max

Administrator
Staff member
Seems like some YAML config files in /usr/local/FlashphonerWebCallServer/conf/zclient/conf folder were broken while updating. Those files are used to set up SFU rooms users for example.
 

sangsoo

Member
Oh, that's right.
Another WCS server also doesn't have a /usr/local/FlashphonerWebCallServer/conf/zclient folder.
Instead, it has a /usr/local/FlashphonerWebCallServer/conf/conf folder structure (conf 2) and zclient*.yml files under it.
1756361095654.png
 
Last edited:

Max

Administrator
Staff member
This can be bypassed after updating server by manually removing that conf folder and then copying server/conf/zclient folder instead.
 
Top