For context: My DMA runs on the cloud and shuts down every day from 7 PM to 7 AM, as well as during the weekends.
The issue: My cloud session's automatic renewal, which occurred during the shutdown period, was unsuccessful. This can be seen in the logs located at 'C:\ProgramData\Skyline Communications\DataMiner CloudGateway\Logs'
:
"[2024-06-11 11:41:25.264 ERR]Failure during automatic DMS secret refresh: ErrorType_General SLCcaGatewayService.Exceptions.GeneralCcaGatewayException: ErrorType_General The known dmsToken is already expired (6/10/2024 6:06:00 AM +00:00)."
From what I understand, this automatic renewal occurs every 7 days (as noted in Lost Cloud Connection with Invalid Session on DataMiner 10.2 Staging System - DataMiner Dojo).
For how long does the automatic renewal try to establish a connection again? When does it stop and need the manual renewal?
Is there a way to change when the automatic renewal is done? For example, can it be set to every Monday at 10 PM? If so, where can this be configured?
Hi,
adding some information:
- There is currently no way to set a fixed refresh time or window.
- The refresh token is valid for 7 days.
- The CloudGateway DxM will try to refresh the token before its expiry. It looks like it calculates how long it has before it expires and takes half, so in this example after 3,5 days. There is also included randomness because only one CloudGateway in the DMS should refresh the tokens (not try all at once).
- If the CloudGateways/servers are turned down it will recalculate on startup when to refresh and again take half the time it has from now until it expires. Because of all the reboots the refreshing is actually delayed every time, which probably is causing your refresh token to expire while it's turned down.
- The moment it expires you need to manually renew them
We will look if we can improve on this or if there is a workaround and come back to you.
Wkr
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2024/08/Catarina-Grilo.jpg)
Great information
Hi Jordy,
We have received the following message: “The tokens needed to authenticate your DMS with dataminer.services have expired”
How could we renew the token manually?
Many Thanks.
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2021/08/Profielfoto.jpg)
Hi, you should be able to do this from cube following the documentation “Check the cloud session” here: https://docs.dataminer.services/user-guide/Troubleshooting/Procedures/Cloud_Connection_Issues.html#check-the-cloud-session
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2021/08/Profielfoto.jpg)
In the mean time i can share with you that we are working on improving this automatic renewal flow so you won’t have issues any longer. We will let you know when a new version of the CloudGateway DxM is available with this improvement or you can track the change log here: https://docs.dataminer.services/release-notes/DxMs/cloudgateway_change_log.html
Thank you for the information Jordy.
I have requested a new feature regarding this: https://community.dataminer.services/new-feature-suggestions/configure-when-automatic-cloud-session-renewal-is-performed/