Files
mtusi2026lab7/evidence/lab6/db-down.txt
T
Vladislav Kunetskiy 1b6e96ccc0
Application / Go invariants and static checks (pull_request) Canceled after 0s
Application / Lab7 verified TLS and retained features (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
lab7: безопасность, mTLS, OpenBao и PKI lifecycle
2026-11-10 14:39:57 +03:00

56 lines
2.2 KiB
Plaintext

UTC 2026-11-05T22:39:36Z
HEAD 639582280f0cc2236dee3140207168df23cc8bf1
$ docker compose stop postgres
Container mtusi-messenger-lab6-postgres-1 Stopping
Container mtusi-messenger-lab6-postgres-1 Stopped
$ direct api request (stopped DB)
--2026-11-05 22:39:39-- http://127.0.0.1:8080/api/v1/users/me
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response...
HTTP/1.1 503 Service Unavailable
Content-Type: application/json; charset=utf-8
X-Instance-Id: 32a0ab2f10f0
X-Request-Id: 68f42379-8fe8-4655-a99e-bd3a65975cc7
Date: Thu, 05 Nov 2026 22:39:39 GMT
Content-Length: 116
2026-11-05 22:39:39 ERROR 503: Service Unavailable.
$ start postgres and immediate direct request
--2026-11-05 22:39:39-- http://127.0.0.1:8080/api/v1/users/me
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Access-Control-Expose-Headers: X-Instance-Id,X-Request-Id
Content-Type: application/json; charset=utf-8
X-Instance-Id: 32a0ab2f10f0
X-Request-Id: 5be628de-cfd2-4aeb-aa3f-4ca045a8d50a
Date: Thu, 05 Nov 2026 22:39:39 GMT
Content-Length: 153
Length: 153 [application/json]
Saving to: 'STDOUT'
0K {"created_at":"2026-11-05T22:39:36Z","display_name":"Студент alice","id":"01a1adde-1a14-7f20-bdfa-448058e1d060","username":"u_alice_7eeac91c971f"} 100% 61.9M=0s
2026-11-05 22:39:39 (61.9 MB/s) - written to stdout [153/153]
$ wait recovery
--2026-11-05 22:39:51-- http://127.0.0.1:8080/api/v1/users/me
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Access-Control-Expose-Headers: X-Instance-Id,X-Request-Id
Content-Type: application/json; charset=utf-8
X-Instance-Id: 32a0ab2f10f0
X-Request-Id: f8053440-cb37-49ff-ba79-eb8c4ceff53b
Date: Thu, 05 Nov 2026 22:39:51 GMT
Content-Length: 153
Length: 153 [application/json]
Saving to: 'STDOUT'
{"created_at":"2026-11-05T22:39:36Z","display_name":"Студент alice","id":"01a1adde-1a14-7f20-bdfa-448058e1d060","username":"u_alice_7eeac91c971f"}
0K 100% 72.8M=0s
2026-11-05 22:39:51 (72.8 MB/s) - written to stdout [153/153]