Files
mtusi2026lab7/evidence/lab6/db-down.txt
T
Vladislav Kunetskiy 3d216fbd50 База lab7: контракт 1.7.0 и реализация lab1–lab6
Перенесены cmd/internal/config, compose.yaml, Dockerfile, скрипты, student-tests и evidence из mtusi-messenger (master, lab6). Skeleton lab7 (openapi/infrastructure 1.7.0, trust-matrix.md, security/THREAT_MODEL.md, infra/openbao, tests/security.py) сохранён; make test-security добавлен в Makefile.
2026-11-09 13:03:49 +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]