Sam
06/17/2025, 9:01 PMUser included) which makes me think the createSuperAdmin step also might not have completed successfully, or it might just be because the transaction never completes. There is however a Project with id 161452d9-43b7-5c29-aa7b-c85680fa45c6 which seems to come from here https://github.com/medplum/medplum/blob/5fc4c2928a66f881049d1ad50f82d3d87e96666e/packages/server/src/constants.ts#L11
Is there anything obvious I'm missing here? I ran the docker compose setup locally to compare, and the "Building structure definitions...." step took no longer than 5 seconds total.
Any input or guidance would be much appreciated. Obviously if there's any more info you guys need in order to help out, I'll be happy to provide.
For what it's worth I'm using the official medplum/medplum-server:4.1.8 Docker image on a 2 vCPU / 4 GB container with an RDS PostgreSQL db.t4g.medium.
Best,
Sam.
https://cdn.discordapp.com/attachments/1384639030817193984/1384639031018524672/Screenshot_2025-06-17_at_4.50.14_PM.png?ex=68532916&is=6851d796&hm=bf10496cd1c2c2a787bbc281af3b28589a7258d8492191b365fbbfcfca43dbbd&finnbergquist
06/17/2025, 11:30 PMSam
06/18/2025, 12:21 PMfinnbergquist
06/18/2025, 9:13 PM-- shows active connections
SELECT application_name, pid, state, age(now(), xact_start) age,
left(regexp_replace(query,E'[\\n\\r]+',' ','g'), 100)
FROM pg_stat_activity WHERE state <> 'idle' ORDER BY age;
-- shows locks
SELECT a.datname, c.relname, l.tuple, l.transactionid, l.mode, l.GRANTED, a.usename,
a.query_start, age(now(),a.xact_start) AS xact_age, age(now(),a.query_start) AS query_age, a.pid
FROM pg_stat_activity a
JOIN pg_locks l ON l.pid = a.pid
JOIN pg_class c ON c.oid = l.relation
WHERE a.query_start < NOW() - INTERVAL '1 seconds'
ORDER BY a.query_start;Sam
06/18/2025, 10:08 PMcd medplum/packages/server && npm run dev after having changed the medplum.config.json file to point to the RDS database. The seed process worked flawlessly. So I'm starting to think the issue might be caused by ECS somehow?Sam
06/19/2025, 12:47 AMfinnbergquist
06/19/2025, 5:02 PMSam
06/19/2025, 5:05 PM8103 and do note I updated the image to medplum-server:latest since I saw you guys pushed a few updates since last time. I also tried hitting the private IP address of my container directly on {PRIVATE-IP}:8103/healthcheck and it just spins forever (I did update the security group to allow inbound 8103 traffic via our VPN).
https://cdn.discordapp.com/attachments/1384639030817193984/1385304588902596768/Screenshot_2025-06-19_at_1.04.04_PM.png?ex=685594ef&is=6854436f&hm=ac9d8e863250241837b77ef35c69beed0f2ca2190d2bdcb5a4e029567e6550fd&
https://cdn.discordapp.com/attachments/1384639030817193984/1385304589229625554/Screenshot_2025-06-19_at_1.05.43_PM.png?ex=685594ef&is=6854436f&hm=e37c9325e6d059a18df73a4cfd238ba07674a5ae3d76be9dfdb0a3044668db83&Sam
06/19/2025, 5:08 PMSam
06/19/2025, 5:14 PMreshma
06/19/2025, 5:30 PMSam
06/19/2025, 5:35 PMreshma
06/19/2025, 6:04 PMSam
06/20/2025, 2:01 PMBuilding structure definitions.... I'm seeing a bunch of locks on RDS:
https://cdn.discordapp.com/attachments/1384639030817193984/1385620661220933652/Screenshot_2025-06-20_at_9.59.12_AM.png?ex=6856bb4d&is=685569cd&hm=6288845ebf12536dcdcd0ee79c78dc69099bb48c2389206ec8aa5df72ac91e18&Sam
06/20/2025, 2:03 PMidle in transaction for over 8 minutes
https://cdn.discordapp.com/attachments/1384639030817193984/1385621051265777756/Screenshot_2025-06-20_at_10.02.31_AM.png?ex=6856bbaa&is=68556a2a&hm=92fc8feef6db4b1440a2738d841f5349b60240fcf709405ec1db19177b70445b&Sam
06/20/2025, 2:04 PMreshma
06/20/2025, 4:29 PM/healthcheck on your server. For example, if your private server IP is {PRIVATE-IP} and it's running on port 8103, use http://{PRIVATE-IP}:8103/healthcheck.
Ensure network access, security group settings, and the server are correctly configured to allow and serve this request.Sam
06/20/2025, 6:15 PMThis site can't be reached.
For what it's worth, the ECS task is showing as running, but the logs are still stuck at Building structure definitions.... And there are still a bunch of locks in RDS.
https://cdn.discordapp.com/attachments/1384639030817193984/1385684403321311262/Screenshot_2025-06-20_at_2.09.53_PM.png?ex=6856f6aa&is=6855a52a&hm=5f669856aee3578652bab777e0ce32930708e78e4f44f90a00735f2ea92f7b24&
https://cdn.discordapp.com/attachments/1384639030817193984/1385684403681886228/Screenshot_2025-06-20_at_2.11.43_PM.png?ex=6856f6aa&is=6855a52a&hm=ea00020e9c5ebbd042bb54afd6673a448631d86a4ae079624eec885686e6111e&
https://cdn.discordapp.com/attachments/1384639030817193984/1385684404046663680/Screenshot_2025-06-20_at_2.11.21_PM.png?ex=6856f6aa&is=6855a52a&hm=b5a42f30ee89c18930152bf2a57a1edff2133880872603a096d41d6015407e61&
https://cdn.discordapp.com/attachments/1384639030817193984/1385684404306968657/Screenshot_2025-06-20_at_2.11.36_PM.png?ex=6856f6aa&is=6855a52a&hm=c6b5a6ebecb47e49b76fdab57b555f7b59db703d09d553759135621b689844df&
https://cdn.discordapp.com/attachments/1384639030817193984/1385684404604506152/Screenshot_2025-06-20_at_2.12.46_PM.png?ex=6856f6aa&is=6855a52a&hm=0236a6c303d9ce53e5d5e31c44d300f3d0437cea5408d5528b9aabde74c88770&Sam
06/20/2025, 6:16 PMSam
06/20/2025, 8:54 PMfinnbergquist
06/20/2025, 10:15 PM