// Error: V-Ray : Could not obtain a license (-98): There are no available licenses of this type on the ChaosGroup License Server.

From time to time out of a sudden I cannot obtain my interactive licenses anymore. when I check the license server it shows that the license is already used by my machine.
The Expire date is set to infinite which is wrong. I tried to disable the firewall, restart the license server , restart my machine. didnt help.
After a few minutes or so it starts working again.

Maya 2015, happens on win10 & 7, license server 2008 R2

Below is the license servers log file:

{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T02:00:20.7809528+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T03:00:20.791726+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T04:00:20.8296586+02:00”}
{“component”:“app”,“message”:“License request could not be handled”,“severity”:“warning”,“statusCode”:504,“time”:“2019-05-05T04:10:42.8062357+02:00”}
{“component”:“app”,“ctx.sessionId”:“706908337f98c2a8a9f8aad65b2dff3b”,“error”:“cannot handle license request: unsupported status code 504 from online”,“message”:“error handling request”,“severity”:“error”,“time”:“2019-05-05T04:10:42.8062357+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T05:00:20.8868246+02:00”}
{“component”:“app”,“message”:“License request could not be handled”,“severity”:“warning”,“statusCode”:504,“time”:“2019-05-05T05:56:37.1073856+02:00”}
{“component”:“app”,“ctx.sessionId”:“ed4658c217819b7c646cd10a663c087a”,“error”:“cannot handle license request: unsupported status code 504 from online”,“message”:“error handling request”,“severity”:“error”,“time”:“2019-05-05T05:56:37.1073856+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T06:00:20.8922655+02:00”}
{“component”:“app”,“message”:“License request could not be handled”,“severity”:“warning”,“statusCode”:504,“time”:“2019-05-05T06:39:04.2042455+02:00”}
{“component”:“app”,“ctx.sessionId”:“80c7e5ef87144ce81a0f585f2b65fff0”,“error”:“cannot handle license request: unsupported status code 504 from online”,“message”:“error handling request”,“severity”:“error”,“time”:“2019-05-05T06:39:04.2042455+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T07:00:20.9408754+02:00”}
{“component”:“app”,“message”:“License request could not be handled”,“severity”:“warning”,“statusCode”:504,“time”:“2019-05-05T07:18:50.9335735+02:00”}
{“component”:“app”,“ctx.sessionId”:“46ce23b32b937915424abc30c8751257”,“error”:“cannot handle license request: unsupported status code 504 from online”,“message”:“error handling request”,“severity”:“error”,“time”:“2019-05-05T07:18:50.9335735+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T08:00:20.9783136+02:00”}
{“component”:“app”,“ctx.sessionId”:“706908337f98c2a8a9f8aad65b2dff3b”,“ctxError”:“context canceled”,“error”:“cannot handle license request: Get https://ols.chaosgroup.com/getlic01/9C4779E4848CF6C8CEDE6373019E755AE43152080EBCE4CAACBD8B99CCF24863A3E478F0281CA2FEE366317CD4B3EF7EA3E478F0281CA2FEE366317CD4B3EF7EA3E478F0281CA2FEE366317CD4B3EF7EA3E478F0281CA2FEE366317CD4B3EF7EA3E478F0281CA2FEE366317CD4B3EF7EA3E478F0281CA2FEE366317CD4B3EF7E962BF456706908337F98C2A8A9F8AAD65B2DFF3B: context canceled”,“message”:“client request canceled”,“severity”:“error”,“time”:“2019-05-05T08:07:47.3765448+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T09:00:21.0016559+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T10:00:21.0523684+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T11:00:21.0753274+02:00”}
{“component”:“app”,“ctx.sessionId”:“0a5fbce0cda12bcedbad59b94e66c4f0”,“ctxError”:“context canceled”,“error”:“cannot handle license request: Get https://ols.chaosgroup.com/getlic01/9BF1F1A3C859A448F292CAFF522039114D2CBEB905C11168339FBA1549CF87D35B4FC16A53798878A2FD18AE0B1A30B95B4FC16A53798878A2FD18AE0B1A30B95B4FC16A53798878A2FD18AE0B1A30B95B4FC16A53798878A2FD18AE0B1A30B95B4FC16A53798878A2FD18AE0B1A30B95B4FC16A53798878A2FD18AE0B1A30B9617A084E0A5FBCE0CDA12BCEDBAD59B94E66C4F0: context canceled”,“message”:“client request canceled”,“severity”:“error”,“time”:“2019-05-05T11:53:41.6166559+02:00”}
{“component”:“app”,“ctx.sessionId”:“a2c411aaf86007a35b66a8834e87eb96”,“ctxError”:“context canceled”,“error”:“cannot handle license request: Get https://ols.chaosgroup.com/getlic01/00D24E56513965D976599B8924EBADBF30046FA47D1EDCFF8686104ABBB10F09947CE8E1006F278A2DC4ED3A0AEA125B947CE8E1006F278A2DC4ED3A0AEA125B947CE8E1006F278A2DC4ED3A0AEA125B947CE8E1006F278A2DC4ED3A0AEA125B947CE8E1006F278A2DC4ED3A0AEA125B947CE8E1006F278A2DC4ED3A0AEA125BF63B325FA2C411AAF86007A35B66A8834E87EB96: context canceled”,“message”:“client request canceled”,“severity”:“error”,“time”:“2019-05-05T11:58:58.4976109+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T12:00:21.0833869+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T13:00:21.1254452+02:00”}
{“component”:“app”,“ctx.sessionId”:“e2445719e2c19c746e99b232115c882a”,“ctxError”:“context canceled”,“error”:“cannot handle license request: Get https://ols.chaosgroup.com/getlic01/4576991E17143CA6362D4D64C3883F9E7E48B33529073A0C66D0F6BD31FEB9DAC1DE9D5D862C2B48ADB8DC65AAAC0AAFC1DE9D5D862C2B48ADB8DC65AAAC0AAFC1DE9D5D862C2B48ADB8DC65AAAC0AAFC1DE9D5D862C2B48ADB8DC65AAAC0AAFC1DE9D5D862C2B48ADB8DC65AAAC0AAFC1DE9D5D862C2B48ADB8DC65AAAC0AAF74738D44E2445719E2C19C746E99B232115C882A: context canceled”,“message”:“client request canceled”,“severity”:“error”,“time”:“2019-05-05T13:39:26.9384571+02:00”}
{“component”:“app”,“message”:“Current activaton is fresh, postponing reactivation”,“severity”:“info”,“time”:“2019-05-05T14:00:20.8785446+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T14:00:21.1467568+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T15:00:21.1648133+02:00”}
{“component”:“app”,“message”:“License request could not be handled”,“severity”:“warning”,“statusCode”:504,“time”:“2019-05-05T15:09:56.6317889+02:00”}
{“component”:“app”,“ctx.sessionId”:“d68001c4786afc652cd445b2380c9d6e”,“error”:“cannot handle license request: unsupported status code 504 from online”,“message”:“error handling request”,“severity”:“error”,“time”:“2019-05-05T15:09:56.6317889+02:00”}
{“component”:“app”,“message”:“Shutting down…”,“severity”:“info”,“time”:“2019-05-05T15:11:16.4625449+02:00”}
{“component”:“app”,“message”:“Shutting down HTTP listener”,“severity”:“info”,“time”:“2019-05-05T15:11:16.4625449+02:00”}
{“component”:“app”,“message”:“Shutting down HTTP listener done”,“severity”:“info”,“time”:“2019-05-05T15:11:21.4659795+02:00”}
{“component”:“app”,“message”:“Shutting down dongle subsystem”,“severity”:“info”,“time”:“2019-05-05T15:11:21.4659795+02:00”}
{“component”:“dongle_manager”,“message”:“Disabling dongle subsystem…”,“severity”:“info”,“time”:“2019-05-05T15:11:21.4659795+02:00”}
{“component”:“dongle_manager”,“message”:“Disabled dongle subsystem”,“severity”:“info”,“time”:“2019-05-05T15:11:21.4659795+02:00”,“took”:0}
{“component”:“app”,“message”:“Shutting down dongle subsystem done”,“severity”:“info”,“time”:“2019-05-05T15:11:21.4659795+02:00”}
{“component”:“app”,“message”:“Shutting down online subsystem”,“severity”:“info”,“time”:“2019-05-05T15:11:21.4659795+02:00”}
{“component”:“app”,“message”:“Shutting down online subsystem done”,“severity”:“info”,“time”:“2019-05-05T15:11:21.4659795+02:00”}
{“component”:“app”,“config”:{“host”:“0.0.0.0”,“port”:30304,“data”:{“directory”:“C:\\Program Files\\Common Files\\ChaosGroup”},“dongle”:{},“backend”:{“portal”:“https://ols.chaosgroup.com/"},“proxy”:{“type”:“auto”},“diagnostics”:{“file”:"C:\\\Program Files\\Common Files\\ChaosGroup\\logs\\user.log”,“level”:“info”,“size”:0},“monitoring”:{“traceProbability”:0.01,“stackdriver”:{“GCPMetricPrefix”:“”}},“integrator”:{},“file”:“C:\\Program Files\\Common Files\\ChaosGroup\\config.yml”},“message”:“Starting Chaos License Server”,“os”:“Windows”,“severity”:“info”,“time”:“2019-05-05T15:11:36.2278789+02:00”,“version”:“5.2.2”}
{“component”:“app”,“message”:“Storing local activation in C:\\Program Files\\Common Files\\ChaosGroup\\ssl”,“severity”:“info”,“time”:“2019-05-05T15:11:36.3328821+02:00”}
{“component”:“bundle_manager”,“message”:“Initialized bundles cache to C:\\Program Files\\Common Files\\ChaosGroup\\bundles.json”,“severity”:“info”,“time”:“2019-05-05T15:11:36.3328821+02:00”}
{“component”:“bundle_manager”,“message”:“Updating bundles file”,“severity”:“info”,“time”:“2019-05-05T15:11:36.3328821+02:00”}
{“component”:“app”,“message”:“Current activaton is fresh, postponing reactivation”,“severity”:“info”,“time”:“2019-05-05T15:11:36.4772834+02:00”}
{“component”:“app”,“message”:“Starting HTTP listener”,“severity”:“info”,“time”:“2019-05-05T15:11:36.6040844+02:00”}

Please message us at support@chaosgroup.com. You can attach the logs.
Also - is there any difference in the licenses server behavior if you try borrowing all licenses?