Log folder

Max

Administrator
Staff member
If you need to place all the logs hierarchy to the custom folder, just replace all base path occurences ${com.flashphoner.fms.AppHome}/logs to a custom one. If you need to set only server logs location, change the path and file name in the following parameter only:
Code:
log4j.appender.fAppender.File=${com.flashphoner.fms.AppHome}/logs/server_logs/flashphoner.log
Note that you must set the proper privileges to the custom log base folder
Code:
chown -RHL flashphoner:flashphoner /path/to/custom/logs/base/folder
If WCS has not enough privileges to write, it will not start at all.
Another option is to start WCS as root: Switching launch mode
 

Max

Administrator
Staff member
You can also just remove a logs folder
Code:
systemctl stop webcallserver
rm -rf /usr/local/FlashphonerWebCallServer/logs
then create a symlink to a custom folder
Code:
ln -sf /path/to/custom/folder/logs /usr/local/FlashphonerWebCallServer/logs
Then set the proper privileges to the custom logs folder and start WCS, logs should be placed to the custom folder.
 

Arif Butt

Member
Hi there,

The WCS is only working in standalone more but service has started failing with the following error:

[root@xms bin]# systemctl status webcallserver -l
● webcallserver.service - Flashphoner WebCallServer
Loaded: loaded (/etc/systemd/system/webcallserver.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2022-10-31 07:35:45 EDT; 16s ago
Process: 24943 ExecStop=/bin/bash webcallserver stop (code=exited, status=0/SUCCESS)
Main PID: 24982 (bash)
CGroup: /system.slice/webcallserver.service
├─24982 /bin/bash webcallserver start
├─25844 sudo -u flashphoner env LD_LIBRARY_PATH=/usr/local/FlashphonerWebCallServer/lib/so java -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=50999 -Dcom.sun.management.jmxremote.host=localhost -Djava.rmi.server.hostname=localhost -XX:ErrorFile=/usr/local/FlashphonerWebCallServer/logs/error%p.log -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:/usr/local/FlashphonerWebCallServer/logs/gc-core-2022-10-31_07-35.log -XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=36000000000 -Dsun.rmi.dgc.server.gcInterval=36000000000 -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer -Djava.library.path=/usr/local/FlashphonerWebCallServer/lib/so:/usr/local/FlashphonerWebCallServer/lib -DWCS_NON_ROOT=true -DsessionDebugEnabled=false -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" -cp /usr/local/FlashphonerWebCallServer/lib/* com.flashphoner.server.Server
├─25856 java -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=50999 -Dcom.sun.management.jmxremote.host=localhost -Djava.rmi.server.hostname=localhost -XX:ErrorFile=/usr/local/FlashphonerWebCallServer/logs/error%p.log -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:/usr/local/FlashphonerWebCallServer/logs/gc-core-2022-10-31_07-35.log -XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=36000000000 -Dsun.rmi.dgc.server.gcInterval=36000000000 -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer -Djava.library.path=/usr/local/FlashphonerWebCallServer/lib/so:/usr/local/FlashphonerWebCallServer/lib -DWCS_NON_ROOT=true -DsessionDebugEnabled=false -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" -cp /usr/local/FlashphonerWebCallServer/lib/* com.flashphoner.server.Server
└─26018 sleep 1

Oct 31 07:35:54 xms sudo[25842]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1249/bin ; USER=flashphoner ; COMMAND=/bin/echo -e [2022-10-31 07:35:53] INFO startWithSudo - Starting FlashphonerWebCallServer as user flashphoner
Oct 31 07:35:54 xms sudo[25844]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1249/bin ; USER=flashphoner ; COMMAND=/bin/env LD_LIBRARY_PATH=/usr/local/FlashphonerWebCallServer/lib/so java -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=50999 -Dcom.sun.management.jmxremote.host=localhost -Djava.rmi.server.hostname=localhost -XX:ErrorFile=/usr/local/FlashphonerWebCallServer/logs/error%p.log -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:/usr/local/FlashphonerWebCallServer/logs/gc-core-2022-10-31_07-35.log -XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=36000000000 -Dsun.rmi.dgc.server.gcInterval=36000000000
Oct 31 07:35:54 xms sudo[25844]: root : (command continued) -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer -Djava.library.path=/usr/local/FlashphonerWebCallServer/lib/so:/usr/local/FlashphonerWebCallServer/lib -DWCS_NON_ROOT=true -DsessionDebugEnabled=false -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" -cp /usr/local/FlashphonerWebCallServer/lib/* com.flashphoner.server.Server
Oct 31 07:35:56 xms sudo[25890]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1249/bin ; USER=flashphoner ; COMMAND=/bin/echo 25856
Oct 31 07:35:56 xms sudo[25906]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1249/bin ; USER=flashphoner ; COMMAND=/bin/touch /usr/local/FlashphonerWebCallServer/bin/FlashphonerWebCallServer
Oct 31 07:35:56 xms sudo[25922]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1249/bin ; USER=flashphoner ; COMMAND=/bin/echo -e [2022-10-31 07:35:56] INFO waitForHealth - Will wait for server response at least 10 seconds
Oct 31 07:35:57 xms sudo[25944]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1249/bin ; USER=flashphoner ; COMMAND=/bin/echo -e [2022-10-31 07:35:57] INFO isServerHealthy - Server health check response code:
Oct 31 07:35:58 xms sudo[25968]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1249/bin ; USER=flashphoner ; COMMAND=/bin/echo -e [2022-10-31 07:35:58] INFO isServerHealthy - Server health check response code:
Oct 31 07:35:59 xms sudo[25992]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1249/bin ; USER=flashphoner ; COMMAND=/bin/echo -e [2022-10-31 07:35:59] INFO isServerHealthy - Server health check response code:
Oct 31 07:36:01 xms sudo[26016]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1249/bin ; USER=flashphoner ; COMMAND=/bin/echo -e [2022-10-31 07:36:01] INFO isServerHealthy - Server health check response code:
[root@xms bin]#

Please assist ...

thnx

AB
 

Max

Administrator
Staff member
Your server is successfully starting as service in root mode
Code:
/usr/local/FlashphonerWebCallServer/bin/webcallserver set-root-mode enable
We strongly recommend to:
1. Backup the following files from /usr/local/FlashphonerWebCallServer/conf folder
Code:
flashphoner.properties
wss.jks
flashphoner.license
2. Uninstall WCS completely
Code:
/usr/local/FlashphonerWebCallServer/bin/uninstall.sh
3. Install WCS
4. Copy the files backed up to /usr/local/FlashphonerWebCallServer/conf folder
In this case, WCS should start correctly in non-root (default) mode.
Also, seems you've set websocket port to the same as HTTP
Code:
ws.port                 =8081
We recommend to revert it to default
Code:
ws.port                 =8080
 
Top