Permission issue when launching WCS service

Arif Butt

Member
Hi there

We have upgraded to WCS version v.2.0.212-5.2.1140-7ce4ffa8483526ce9bd4c94fe80ab0247659e3d5

however when we are trying to launch the service it is exiting with the "permission error" in the startup log file, although we have provided the required permissions but still service startup is giving error, alternatively we have run the program executable in standalone mode at this time... kindly assist.

Thanks
AB
 

Arif Butt

Member
This command d says that all the permissions are set... but the service stops after launch..

Currently running as standalone

Thnx
AB
 

Arif Butt

Member
Hi there,
getting this error in starting WCS when running in standalone mode, service also not running
Kindly assist..

1654090649571.png


space...

1654090863925.png
 

Arif Butt

Member
Hi,

After killing the java process which was using this port, the WCS standalone mode started OK

However we are still unable to run the service, it is terminating after running it and java keep running in background...

No error in tail f startup.log file either

1654095611834.png


Pls assist how to check and fix this ...
 

Arif Butt

Member
Ssh remotely is available as its a financial institution... however we are trying to get one
But pls suggest any alternate method of checking the issue
 

Max

Administrator
Staff member
1. Stop WCS server.
2. Make sure server process was stopped
ps aux | grep java
3. Make sure ports have been released
netstat - nlp | grep java
4. Kill process if it is not stopped.
5. Launch WCS server.
6. Make sure process is alive
ps aux | grep java
7. Make sure all needed ports have been bound
netstat - nlp | grep java

Do the same in standalone mode to gather standalone launch logs.
Code:
cd /usr/local/FlashphonerWebCallServer/bin
./webcallserver start standalone
Regarding SSH access. If you are afraid security risks, please provide a "clear" stage server which does not keep any secure information which can be compromised. For example, it can be clear Ubuntu 20 server. Unfortunately we do not offer other quick support options besides SSH.
 

Arif Butt

Member
Hi,

Can we temporary use 8081 port for ssh access, since it is opened for remote access http WS

we need to disable it from flashphoner properties and enable it in SSH config file?

we have tried to change this port flashphoner properties config file and defined 1964 port, but WCS keep listening to 8081 port.

Kindly assist in above

Thnx
AB
 

Arif Butt

Member
Hi there

After installing the WCS v.2.0.219-5.2.1249-aabaaeb4405edbd70e6c5030f425ca626b0275d4
the WCS Service is not starting via systemctl, after start it is terminating after a little while ... so we are starting the WCS in Standalone mode..

However the auto mixer recording for video chat is is stopping after a while until restarting the WCS application...

Server information is provide in the private form, can you kindly check and feedback..

Thnx
AB
 

Max

Administrator
Staff member
Good day.
We checked the server. WCS seems to be correctly starting as service after this command:
Code:
systemctl restart webcallserver
1655775827392.png

About mixer: your server configuration is too weak for stream mixing:
1655775916182.png

1 virtual CPU and 3.7 Gb RAM is suitable for testing purposes only, no more than 1 mixer 640x480 per time. The recommended CPUs count in production is 2 CPU cores per 1 mixer. Also, the RAM should be at least 16 Gb (8 Gb per Java heap).
So, we recommed you to upgrade the server instance to more powerful.
 

Arif Butt

Member
Hi there

Thank you for your mail, this was our testing server and therefore few resources were used for this.

But At the customer site we are still facing the mixer streaming recording issue, the demo stream recording sample is also not generating the recording, please find the below image of resources free -h and attached flashphoner.log.txt file... before the upgrade everything was running OK, kindly assist.

1655817881250.png


we are finding these error entries in log from bottom to top
18:12:21,929 ERROR MixerAgent - API-ASYNC-pool-13-thread-2 Stream local failed
18:12:21,929 INFO MixerAgent - API-ASYNC-pool-13-thread-2 Agent mixer://118.103.233.212-813ec732-d938-43b0-90bb-006915cd6cd4 changed state to FAILED
18:12:21,929 WARN MediaHandler - AGENT-PLAY-STREAM-pool-18-thread-3 Mixer play failed, should not happen


tmp directory /usr/local/FlashphonerWebCallServer/records - 873 MB, while minimum is 1 GB

While this folder is empty

1655819006371.png


also the current version record folder is also empty

1655819174337.png


we appreciate your help kindly assist

Thnx
AB
 

Attachments

Max

Administrator
Staff member
It seems mixer has been stopped. Try to reproduce the same case on default samples, i.e. Video Chat or its minimal modified version.
Make sure mixer output stream is always is playing and didn't stopped. Then please provide SSH access. We will reproduce the same steps on your server.
 

Max

Administrator
Staff member
We checked the log attached. According to the log, the mixer has bee stopped by REST API query /stream/terminate:
Code:
18:12:21,867 INFO         RestApiRouter - HTTP-pool-3-thread-11 Use controller class com.flashphoner.rest.server.rest_v2.RestStreamController with path /rest-api/stream/terminate
18:12:21,867 INFO  RestStreamController - HTTP-pool-3-thread-11 handleRequest /rest-api/stream/terminate params:{name=118.103.xxx.xxx}
The REST API query /stream/terminate is usually used to stop the stream if publisher cannot stop it for some reason. If you're stopping the mixer output stream using this query, the mixer will also be stopped.
So we recommend to check your flow: publishing, playing, stopping.
 

Arif Butt

Member
We are unable to perform the stream recording from the demo sample also...

Can we configure ssh on 8081 port as the ssh 22 port is not exposed via internet?

Kindly assist on the steps of disabling the 8081 from WCS and set for ssh...
 
Top