Once we got some load on the system this morning at 10am - coincidentally or not - started bookings could not be cancelled, according to the booking logs below.
Browser got this message in console:
{"code":"500","message":"cancelling a started booking failed because error cancelling access at relay relay deny request failed becauseresponse status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}"}
In the logs for book, it still looks like it might have cancelled ok, because the only difference to previous logs was a complaint that the status code was not known. What was the status code though?
$ cat /var/log/book/book.log | grep cancel
<snip>
time="2023-02-24T00:14:08Z" level=info msg="booking cancelled" booking=engdes1-2023-Feb-27-Mon-1400-1559-pend-then-spin-024-CWYdQu-01 user=engdes1-2023-Feb-27-Mon-1400-1559-pend-then-spin-024-CWYdQu
time="2023-02-24T00:14:08Z" level=info msg="booking cancelled" booking=engdes1-2023-Feb-28-Tue-1400-1559-pend-then-spin-019-wOJ3NJ-00 user=engdes1-2023-Feb-28-Tue-1400-1559-pend-then-spin-019-wOJ3NJ
time="2023-02-24T00:14:08Z" level=info msg="booking cancelled" booking=engdes1-2023-Feb-27-Mon-1600-1759-pend-then-spin-008-k5xjoE-00 user=engdes1-2023-Feb-27-Mon-1600-1759-pend-then-spin-008-k5xjoE
time="2023-02-24T00:14:08Z" level=info msg="booking cancelled" booking=engdes1-2023-Feb-27-Mon-1400-1559-pend-then-spin-007-NRwIYP-00 user=engdes1-2023-Feb-27-Mon-1400-1559-pend-then-spin-007-NRwIYP
time="2023-02-24T00:14:08Z" level=info msg="booking cancelled" booking=engdes1-2023-Feb-27-Mon-1400-1559-spin-then-pend-007-NZ8O0M-00 user=engdes1-2023-Feb-27-Mon-1400-1559-spin-then-pend-007-NZ8O0M
time="2023-02-24T00:14:08Z" level=info msg="booking cancelled" booking=engdes1-2023-Feb-27-Mon-1600-1759-spin-then-pend-008-mFxlpe-00 user=engdes1-2023-Feb-27-Mon-1600-1759-spin-then-pend-008-mFxlpe
time="2023-02-24T00:14:08Z" level=info msg="booking cancelled" booking=engdes1-2023-Feb-27-Mon-1600-1759-pend-then-spin-017-BUGN8f-00 user=engdes1-2023-Feb-27-Mon-1600-1759-pend-then-spin-017-BUGN8f
time="2023-02-24T00:14:08Z" level=info msg="booking cancelled" booking=engdes1-2023-Feb-28-Tue-1600-1759-pend-then-spin-009-eCmK3S-00 user=engdes1-2023-Feb-28-Tue-1600-1759-pend-then-spin-009-eCmK3S
time="2023-02-24T08:24:03Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00091cd80 https://dev.practable.io/access 82bb9b5b-a7e4-4511-b53e-a0b4c8027f58 1677227280}"
time="2023-02-24T08:24:03Z" level=info msg="access cancelled at relay" booking=82bb9b5b-a7e4-4511-b53e-a0b4c8027f58 user=cfs62heot5urgb4g7ff0
time="2023-02-24T08:24:03Z" level=info msg="booking cancelled" booking=82bb9b5b-a7e4-4511-b53e-a0b4c8027f58 user=cfs62heot5urgb4g7ff0
time="2023-02-24T08:24:03Z" level=info msg="booking cancelled successfully" booking=82bb9b5b-a7e4-4511-b53e-a0b4c8027f58 user=cfs62heot5urgb4g7ff0
time="2023-02-24T09:48:20Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00091ca20 https://dev.practable.io/access fec98624-471e-47b6-abb8-345f3e04fc8b 1677232200}"
time="2023-02-24T09:48:20Z" level=info msg="access cancelled at relay" booking=fec98624-471e-47b6-abb8-345f3e04fc8b user=cfrq6iuot5urgb4g7fdg
time="2023-02-24T09:48:20Z" level=error msg="cancelling a started booking failed because error cancelling access at relay relay deny request failed becauseresponse status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}" booking=fec98624-471e-47b6-abb8-345f3e04fc8b user=cfrq6iuot5urgb4g7fdg
time="2023-02-24T09:54:13Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00010e8a0 https://dev.practable.io/access 29340c8f-db39-42e8-820d-6a3531785848 1677232560}"
time="2023-02-24T09:54:13Z" level=info msg="access cancelled at relay" booking=29340c8f-db39-42e8-820d-6a3531785848 user=cfrq6iuot5urgb4g7fdg
time="2023-02-24T09:54:13Z" level=error msg="cancelling a started booking failed because error cancelling access at relay relay deny request failed becauseresponse status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}" booking=29340c8f-db39-42e8-820d-6a3531785848 user=cfrq6iuot5urgb4g7fdg
time="2023-02-24T09:54:16Z" level=info msg="deny successful at cancelling session at relay" request="{0xc0005d5f80 https://dev.practable.io/access 29340c8f-db39-42e8-820d-6a3531785848 1677232560}"
time="2023-02-24T09:54:16Z" level=info msg="access cancelled at relay" booking=29340c8f-db39-42e8-820d-6a3531785848 user=cfrq6iuot5urgb4g7fdg
time="2023-02-24T09:54:16Z" level=error msg="cancelling a started booking failed because error cancelling access at relay relay deny request failed becauseresponse status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}" booking=29340c8f-db39-42e8-820d-6a3531785848 user=cfrq6iuot5urgb4g7fdg
time="2023-02-24T09:56:37Z" level=error msg="cancelling a started booking failed because error cancelling access at relay relay deny request failed becauseresponse status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}" booking=7a3cf5d6-0de0-46b6-a391-1aab638a8644 user=cfrq6iuot5urgb4g7fdg
time="2023-02-24T09:56:41Z" level=info msg="deny successful at cancelling session at relay" request="{0xc0005d5ce0 https://dev.practable.io/access 7a3cf5d6-0de0-46b6-a391-1aab638a8644 1677232740}"
time="2023-02-24T09:56:41Z" level=info msg="access cancelled at relay" booking=7a3cf5d6-0de0-46b6-a391-1aab638a8644 user=cfrq6iuot5urgb4g7fdg
time="2023-02-24T09:56:41Z" level=error msg="cancelling a started booking failed because error cancelling access at relay relay deny request failed becauseresponse status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}" booking=7a3cf5d6-0de0-46b6-a391-1aab638a8644 user=cfrq6iuot5urgb4g7fdg
time="2023-02-24T10:21:01Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00010f8c0 https://dev.practable.io/access c8a005e5-18c8-45cc-9fc3-98e374c6eb17 1677237300}"
time="2023-02-24T10:21:01Z" level=info msg="access cancelled at relay" booking=c8a005e5-18c8-45cc-9fc3-98e374c6eb17 user=cfrub8uot5urgb4g7fe0
time="2023-02-24T10:21:01Z" level=error msg="cancelling a started booking failed because error cancelling access at relay relay deny request failed becauseresponse status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}" booking=c8a005e5-18c8-45cc-9fc3-98e374c6eb17 user=cfrub8uot5urgb4g7fe0
time="2023-02-24T10:28:58Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00091d8c0 https://dev.practable.io/access c8a005e5-18c8-45cc-9fc3-98e374c6eb17 1677237300}"
time="2023-02-24T10:28:58Z" level=info msg="access cancelled at relay" booking=c8a005e5-18c8-45cc-9fc3-98e374c6eb17 user=cfrub8uot5urgb4g7fe0
time="2023-02-24T10:28:58Z" level=error msg="cancelling a started booking failed because error cancelling access at relay relay deny request failed becauseresponse status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}" booking=c8a005e5-18c8-45cc-9fc3-98e374c6eb17 user=cfrub8uot5urgb4g7fe0
tim@instance-1:~$
Earlier, the log messages for successful cancel after starts looked like this:
ime="2023-02-21T15:14:48Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00010e5a0 https://dev.practable.io/access 76151c8c-c6c0-42a3-951b-226f9c8a014a 1676993340}"
time="2023-02-21T15:14:48Z" level=info msg="access cancelled at relay" booking=76151c8c-c6c0-42a3-951b-226f9c8a014a user=cfqdssuot5urgb4g7fa0
time="2023-02-21T15:14:48Z" level=info msg="booking cancelled" booking=76151c8c-c6c0-42a3-951b-226f9c8a014a user=cfqdssuot5urgb4g7fa0
time="2023-02-21T15:14:48Z" level=info msg="booking cancelled successfully" booking=76151c8c-c6c0-42a3-951b-226f9c8a014a user=cfqdssuot5urgb4g7fa0
time="2023-02-22T10:10:06Z" level=info msg="deny successful at cancelling session at relay" request="{0xc0005d5c20 https://dev.practable.io/access ef05d7fb-3997-4b1e-b77b-309b9adbeb6b 1677061380}"
time="2023-02-22T10:10:06Z" level=info msg="access cancelled at relay" booking=ef05d7fb-3997-4b1e-b77b-309b9adbeb6b user=cfq98huot5urgb4g7f80
time="2023-02-22T10:10:06Z" level=info msg="booking cancelled" booking=ef05d7fb-3997-4b1e-b77b-309b9adbeb6b user=cfq98huot5urgb4g7f80
time="2023-02-22T10:10:06Z" level=info msg="booking cancelled successfully" booking=ef05d7fb-3997-4b1e-b77b-309b9adbeb6b user=cfq98huot5urgb4g7f80
time="2023-02-22T10:10:08Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00091c7e0 https://dev.practable.io/access 1f07f16d-e99a-4c5a-af36-66a7d8d6884e 1677061440}"
time="2023-02-22T10:10:08Z" level=info msg="access cancelled at relay" booking=1f07f16d-e99a-4c5a-af36-66a7d8d6884e user=cfq98huot5urgb4g7f80
time="2023-02-22T10:10:08Z" level=info msg="booking cancelled" booking=1f07f16d-e99a-4c5a-af36-66a7d8d6884e user=cfq98huot5urgb4g7f80
time="2023-02-22T10:10:08Z" level=info msg="booking cancelled successfully" booking=1f07f16d-e99a-4c5a-af36-66a7d8d6884e user=cfq98huot5urgb4g7f80
time="2023-02-22T19:13:20Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00091c720 https://dev.practable.io/access cc249c78-9726-4b75-9411-38257e6e59fb 1677093480}"
time="2023-02-22T19:13:20Z" level=info msg="access cancelled at relay" booking=cc249c78-9726-4b75-9411-38257e6e59fb user=cfpu16uot5urgb4g7f7g
time="2023-02-22T19:13:20Z" level=info msg="booking cancelled" booking=cc249c78-9726-4b75-9411-38257e6e59fb user=cfpu16uot5urgb4g7f7g
time="2023-02-22T19:13:20Z" level=info msg="booking cancelled successfully" booking=cc249c78-9726-4b75-9411-38257e6e59fb user=cfpu16uot5urgb4g7f7g
time="2023-02-23T16:56:51Z" level=info msg="deny successful at cancelling session at relay" request="{0xc000ab6ea0 https://dev.practable.io/access 57718e85-3012-461c-95be-1fa27610afe8 1677172200}"
time="2023-02-23T16:56:51Z" level=info msg="access cancelled at relay" booking=57718e85-3012-461c-95be-1fa27610afe8 user=cfrmi6eot5urgb4g7fcg
time="2023-02-23T16:56:51Z" level=info msg="booking cancelled" booking=57718e85-3012-461c-95be-1fa27610afe8 user=cfrmi6eot5urgb4g7fcg
time="2023-02-23T16:56:51Z" level=info msg="booking cancelled successfully" booking=57718e85-3012-461c-95be-1fa27610afe8 user=cfrmi6eot5urgb4g7fcg
time="2023-02-23T16:56:54Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00010e780 https://dev.practable.io/access d9b0d685-c65f-46bb-b96d-e0a5218463ba 1677172200}"
time="2023-02-23T16:56:54Z" level=info msg="access cancelled at relay" booking=d9b0d685-c65f-46bb-b96d-e0a5218463ba user=cfrmi6eot5urgb4g7fcg
time="2023-02-23T16:56:54Z" level=info msg="booking cancelled" booking=d9b0d685-c65f-46bb-b96d-e0a5218463ba user=cfrmi6eot5urgb4g7fcg
time="2023-02-23T16:56:54Z" level=info msg="booking cancelled successfully" booking=d9b0d685-c65f-46bb-b96d-e0a5218463ba user=cfrmi6eot5urgb4g7fcg
time="2023-02-23T17:33:43Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00010ede0 https://dev.practable.io/access 5fb18ae5-62ce-4dbe-9d9a-aa030cd945b7 1677174480}"
time="2023-02-23T17:33:43Z" level=info msg="access cancelled at relay" booking=5fb18ae5-62ce-4dbe-9d9a-aa030cd945b7 user=cfrq6iuot5urgb4g7fdg
time="2023-02-23T17:33:43Z" level=info msg="booking cancelled" booking=5fb18ae5-62ce-4dbe-9d9a-aa030cd945b7 user=cfrq6iuot5urgb4g7fdg
time="2023-02-23T17:33:43Z" level=info msg="booking cancelled successfully" booking=5fb18ae5-62ce-4dbe-9d9a-aa030cd945b7 user=cfrq6iuot5urgb4g7fdg
time="2023-02-23T20:15:18Z" level=info msg="deny successful at cancelling session at relay" request="{0xc00010e5a0 https://dev.practable.io/access 1cfe280f-7837-4ae6-899a-ca382d51b9a0 1677184140}"
time="2023-02-23T20:15:18Z" level=info msg="access cancelled at relay" booking=1cfe280f-7837-4ae6-899a-ca382d51b9a0 user=cfrmi6eot5urgb4g7fcg
time="2023-02-23T20:15:18Z" level=info msg="booking cancelled" booking=1cfe280f-7837-4ae6-899a-ca382d51b9a0 user=cfrmi6eot5urgb4g7fcg
time="2023-02-23T20:15:18Z" level=info msg="booking cancelled successfully" booking=1cfe280f-7837-4ae6-899a-ca382d51b9a0 user=cfrmi6eot5urgb4g7fcg
Once we got some load on the system this morning at 10am - coincidentally or not - started bookings could not be cancelled, according to the booking logs below.
Browser got this message in console:
In the logs for book, it still looks like it might have cancelled ok, because the only difference to previous logs was a complaint that the status code was not known. What was the status code though?
Earlier, the log messages for successful cancel after starts looked like this: