From 20cc984799965a3fec0deec8c4d15886d377a957 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 16 Jan 2023 10:30:55 +0100 Subject: [PATCH] FAQ.md --- FAQ.md | 17 +++++++++++++++++ README.md | 11 +++++++++++ 2 files changed, 28 insertions(+) create mode 100644 FAQ.md diff --git a/FAQ.md b/FAQ.md new file mode 100644 index 0000000..4ddd379 --- /dev/null +++ b/FAQ.md @@ -0,0 +1,17 @@ +# FAQ + +## `Failed to acquire license from (Info: - Error: The allowed time to process response has expired)` + +- Did your timezone settings are correct on fastapi-dls **and your guest**? + +- Did you download the client-token more than an hour ago? + +Please download a new client-token. The guest have to register within an hour after client-token was created. + + +## `jose.exceptions.JWTError: Signature verification failed.` + +- Did you recreated `instance.public.pem` / `instance.private.pem`? + +Then you have to download a **new** client-token on each of your guests. + diff --git a/README.md b/README.md index 20caf9b..49062da 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,7 @@ Successful tested with: - Ubuntu 22.10 (Kinetic Kudu) Not working with: + - Debian 11 (Bullseye) and lower (missing `python-jose` dependency) - Ubuntu 22.04 (Jammy Jellyfish) (not supported as for 15.01.2023 due to [fastapi - uvicorn version missmatch](https://bugs.launchpad.net/ubuntu/+source/fastapi/+bug/1970557)) @@ -249,6 +250,16 @@ After first success you have to replace `--issue` with `--renew`. every 4.8 hours. If network connectivity is lost, the loss of connectivity is detected during license renewal and the client has 19.2 hours in which to re-establish connectivity before its license expires. +```python +from datetime import timedelta + +LEASE_RENEWAL_PERIOD=0.2 # 20% +delta = timedelta(days=1) +renew = delta.total_seconds() * LEASE_RENEWAL_PERIOD +renew = timedelta(seconds=renew) +expires = delta - renew # 19.2 +``` + \*2 Always use `https`, since guest-drivers only support secure connections! \*3 If you recreate instance keys you need to **recreate client-token for each guest**!