trial license expired

ksko

New Member
hello, guys.

I think there's a period left, but "Player" demo app failed to start

Until when can I use it?
1618908306903.png

1618908280137.png


license.log
[root@tech-02 logs]# cat license.log
16:59:37,999 INFO TimeSyncThread - NTPSyncThread dropDateToExpiredValue
[root@tech-02 logs]# cat license.log.2021-04-16
10:12:42,916 ERROR TimeSyncThread - NTPSyncThread NTP error
java.net.UnknownHostException: pool.ntp.org: Name or service not known
at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:932)
at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1505)
at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:851)
at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1495)
at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1354)
at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1288)
at java.base/java.net.InetAddress.getByName(InetAddress.java:1238)
at com.flashphoner.server.license.manager.A.A.B.B(Unknown Source)
at com.flashphoner.server.license.manager.A.A.B.run(Unknown Source)
[root@tech-02 logs]# date
Tue Apr 20 17:53:56 KST 2021

flashphoner.log
17:48:38,760 ERROR MediaHandler - API-ASYNC-pool-13-thread-162 playStream exception
com.flashphoner.server.license.manager.exception.LicensePeriodIsExpired: License period is expired Tue Apr 20 17:48:38 KST 2021 Sun May 02 00:00:00 KST 2021 Wed Jan 01 00:00:00 KST 3000
at com.flashphoner.server.license.manager.A.A.D.check(Unknown Source)
at com.flashphoner.server.license.manager.LicenseManager.check(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.media.MediaHandlerUtils.createMediaSession(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.media.MediaHandlerUtils.playOrdinaryStream(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.media.MediaHandlerUtils.playOrdinaryStream(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.media.MediaHandlerUtils.playStream(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.media.MediaHandler.playStream(Unknown Source)
at jdk.internal.reflect.GeneratedMethodAccessor192.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.flashphoner.server.client.handler.HandlerUtils.lambda$processThroughREST$0(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)

[root@tech-02 server_logs]# java -version
openjdk version "14.0.1" 2020-04-14
OpenJDK Runtime Environment (build 14.0.1+7)
OpenJDK 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)
 
Last edited:

Max

Administrator
Staff member
16:59:37,999 INFO TimeSyncThread - NTPSyncThread dropDateToExpiredValue
That's the problem.
First, please restart WCS. If this does not help, check if pool.ntp.org is permanently available from server.
 

ksko

New Member
It's normal after a restart.
I'm using rdate instead of ntpd, should I set up ntpd?
 

Max

Administrator
Staff member
I'm using rdate instead of ntpd, should I set up ntpd?
WCS uses Java NTP client implementation trying to sync time in system independent way. So there are no requirements to system NTP client, but pool.ntp.org should be permanently available from server.
 

ksko

New Member
WCS uses Java NTP client implementation trying to sync time in system independent way. So there are no requirements to system NTP client, but pool.ntp.org should be permanently available from server.
It is not being published with the message ""License period is expired Mon May 10 18:19:46 KST 2021 Wed Jun 02 00:00:00 KST 2021 Wed Jan 01 00:00:00 KST 3000"

The connection to the ntp server is good as shown below.
[root@tech-02 client2]# ping pool.ntp.org
PING pool.ntp.org (211.233.40.78) 56(84) bytes of data.
64 bytes from send.mx.cdnetworks.com (211.233.40.78): icmp_seq=1 ttl=54 time=1.15 ms
64 bytes from send.mx.cdnetworks.com (211.233.40.78): icmp_seq=2 ttl=54 time=1.14 ms

<<<<< /rest-hooks/StreamStatusEvent->
{"nodeId":"4aDfELq5JGldNhKnOexgIFzBaQ8YA87g@XXX.XXX.XXX.XXX","appKey":"defaultApp","sessionId":"/XXX.XXX.87.184:15407/XXX.XXX.42.17:8443-2fb0ab8e-c7c0-4a0f-ae1d-00f2c66e93f4","mediaSessionId":"0d9c1b40-b170-11eb-b4d2-0d772f56f994","name":"8c01","published":true,"hasVideo":true,"hasAudio":true,"status":"FAILED","info":"License period is expired Mon May 10 18:13:57 KST 2021 Wed Jun 02 00:00:00 KST 2021 Wed Jan 01 00:00:00 KST 3000","record":false,"width":0,"height":0,"bitrate":0,"minBitrate":0,"maxBitrate":0,"quality":0,"history":false,"gop":0,"fps":0,"audioBitrate":0,"codecImpl":"","transport":"UDP","cvoExtension":false,"mediaType":"publish","mediaProvider":"WebRTC","origin":"https://XXX-02.XXX.com:8444","constraints":{"audio":{"deviceId":"default"},"video":{"deviceId":"904de6027a4f03172033e812ed4b6abbd38d9af9762c188aade35f9cb18c0079","width":640,"height":480,"frameRate":30}}}

Restarting servers due to licensing issues is a big problem for our services.
What should I do?

1620639816500.png

/rest-hooks/connect -> Seems OK
/rest-hooks/ConnectionStatusEvent -> Seems OK
/rest-hooks/publishStream -> PENDING and FAILED

[root@tech-02 client2]# cat ../logs/license.log
17:41:06,277 INFO TimeSyncThread - NTPSyncThread dropDateToExpiredValue
[root@tech-02 client2]#

I was testing normally and suddenly it's not working.
 

Max

Administrator
Staff member
Make sure server date time fits NTP date time.

sudo apt-get install ntp
sudo service ntp start
 

ksko

New Member
WCS uses Java NTP client implementation trying to sync time in system independent way. So there are no requirements to system NTP client, but pool.ntp.org should be permanently available from server.
Even though you said I don't need it, but I already installed it.

I am using CentOS7, and already installed ntpd.
[root@tech-02 logs]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

open udp123
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
326 17849 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:123 /* ntp */

[root@tech-02 logs]# ps -aux | grep ntp
ntp 658 0.0 0.0 32044 2200 ? Ss Apr20 0:02 /usr/sbin/ntpd -u ntp:ntp -g

[root@tech-02 logs]# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
+211.233.40.78 125.185.190.74 2 u 508 512 377 1.267 6.412 2.929
*106.247.248.106 141.223.182.106 2 u 519 512 377 2.985 7.581 3.959
+211.233.84.186 133.100.9.2 2 u 216 512 377 1.444 8.541 2.753
 

Max

Administrator
Staff member
Restarting servers due to licensing issues is a big problem for our services.
What should I do?
With trial license, you have to restart WCS in this case.
For production use, you should buy a mohthly subscription license, it requires permanent access (every 15 minutes) to license server. If this is not available for some reason, license will drop to expired state until license server becomes availabel again. In this case, no server restart is needed.
 

ksko

New Member
OK, There is no license error on AWS EC2 instances yet.

I want to check again,
is it right that we don't need to install ntp or ntpd?
If the license server fails, is it correct that we cannot provide the service until it is recovered?
 

Max

Administrator
Staff member
is it right that we don't need to install ntp or ntpd?
Yes.
If the license server fails, is it correct that we cannot provide the service until it is recovered?
The license server itself is fault-tolerant. If connection to license server fails while license checking, new streams cannot be published and played, but existing publications and subscribers remain. If next connection (after 15 minutes) to license server is successful, new streams can be published and played again without WCS restart.
 
Top