manikandan
Member
Hello,
I launched WCS server using AWS marketplace AMI https://aws.amazon.com/marketplace/reviews/reviews-list/B07ZVRPH5G and done similar to this setup.
Also updated the WCS package to latest version using the bash script in user data.
Upon launching the instance, when I checked with the webcallserver status I noticed some errors in the service
it seems some kind of permission issue when running service start command as root.
Let me know how it can be fixed?
I launched WCS server using AWS marketplace AMI https://aws.amazon.com/marketplace/reviews/reviews-list/B07ZVRPH5G and done similar to this setup.
Also updated the WCS package to latest version using the bash script in user data.
Upon launching the instance, when I checked with the webcallserver status I noticed some errors in the service
Code:
[ec2-user@ip-172-31-70-30 ~]$ sudo service webcallserver status -l
Redirecting to /bin/systemctl status -l webcallserver.service
● webcallserver.service - Flashphoner WebCallServer
Loaded: loaded (/etc/systemd/system/webcallserver.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2021-07-14 16:27:59 UTC; 14s ago
Process: 4306 ExecStop=/bin/bash webcallserver stop (code=exited, status=0/SUCCESS)
Main PID: 4995 (java)
CGroup: /system.slice/webcallserver.service
‣ 4995 java -Xmx512M -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 -Xlog:gc*:/usr/local/FlashphonerWebCallServer/logs/gc-core-2021-07-14_16-27.log:time -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
Jul 14 16:28:00 ip-172-31-70-30.ec2.internal sudo[4927]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.983-39b59ee9dba7df2a6163fdc2eb92aeb72bb90ebb/bin ; USER=flashphoner ; COMMAND=/bin/env LD_LIBRARY_PATH=/usr/local/FlashphonerWebCallServer/lib/so java -Xmx512M -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 -Xlog:gc*:/usr/local/FlashphonerWebCallServer/logs/gc-core-2021-07-14_16-27.log:time -XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=36000000000 -Dsun.rmi.dgc.server.gcInterval=36000000000 -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer -cp /usr/local/FlashphonerWebCallServer/lib/*
Jul 14 16:28:00 ip-172-31-70-30.ec2.internal sudo[4927]: root : (command continued) com.flashphoner.server.license.ExpiredUpdates
Jul 14 16:28:02 ip-172-31-70-30.ec2.internal sudo[4979]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.983-39b59ee9dba7df2a6163fdc2eb92aeb72bb90ebb/bin ; USER=flashphoner ; COMMAND=/bin/echo -e [2021-07-14 16:28:02] INFO startWithSudo - Starting FlashphonerWebCallServer as user flashphoner
Jul 14 16:28:02 ip-172-31-70-30.ec2.internal sudo[4981]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.983-39b59ee9dba7df2a6163fdc2eb92aeb72bb90ebb/bin ; USER=flashphoner ; COMMAND=/bin/env LD_LIBRARY_PATH=/usr/local/FlashphonerWebCallServer/lib/so java -Xmx512M -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 -Xlog:gc*:/usr/local/FlashphonerWebCallServer/logs/gc-core-2021-07-14_16-27.log:time -XX:+ExplicitGCInvokesConcurrent -Dsun.rmi.dgc.client.gcInterval=36000000000 -Dsun.rmi.dgc.server.gcInterval=36000000000 -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer
Jul 14 16:28:02 ip-172-31-70-30.ec2.internal sudo[4981]: root : (command continued) -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
Jul 14 16:28:04 ip-172-31-70-30.ec2.internal sudo[5057]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.983-39b59ee9dba7df2a6163fdc2eb92aeb72bb90ebb/bin ; USER=flashphoner ; COMMAND=/bin/touch /usr/local/FlashphonerWebCallServer/bin/FlashphonerWebCallServer
Jul 14 16:28:10 ip-172-31-70-30.ec2.internal sudo[5143]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.983-39b59ee9dba7df2a6163fdc2eb92aeb72bb90ebb/bin ; USER=flashphoner ; COMMAND=/bin/echo -e [2021-07-14 16:28:10] ERROR start - FlashphonerWebCallServer started, but is not healthy, please try to restart
Jul 14 16:28:10 ip-172-31-70-30.ec2.internal bash[4401]: FlashphonerWebCallServer: startingFlashphonerWebCallServer started, but is not healthy, please try to restart
Jul 14 16:28:10 ip-172-31-70-30.ec2.internal bash[4401]: [FAILED]
Jul 14 16:28:10 ip-172-31-70-30.ec2.internal systemd[1]: webcallserver.service: Supervising process 4995 which is not our child. We'll most likely not notice when it exits.
Let me know how it can be fixed?