If you are seeing erroneous license expiration messages on the server, it is likely that the host machine is reporting an incorrect time. This commonly manifests as an 'Error verify: (19)' message or 'Status: Expired' in license diagnostics.
The license manager in your Shiny Server periodically contacts our license server to verify that the license is still valid, and this license server is extremely particular about date-time precision between the server and client. If your host machine's clock is off by even a few seconds, the license server may reject the request and report the license as expired.
Fortunately, this can generally be remedied with these steps:
1. Make sure the time zone is correct for the machine. timedatectl or a similar utility can give you that information. If they are more than a second apart, we recommend syncing the hardware clock to the system clock using step 2.
2. Resync the date and time of the machine: hwclock -w
3. Restart the machine (not just Shiny Server; the whole machine).
4. Finally, run this command on the server to verify success:
sudo /opt/shiny-server/bin/license-manager status
For more information on common licensing errors, please see our article: https://support.posit.co/hc/en-us/articles/360018864114-I-m-having-a-problem-with-my-license-how-do-I-fix-it-
We now recommend license file activation which will remove this type of issue. You can read more here: https://docs.posit.co/licensing/licensing.html#license-activation-methods
If you're still having issues or would like to switch to a license file, you can reach out to Support by opening a ticket here.