[Deploy Fix] Self-healing failed: Missing module or file at runtime
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- azure, node.js, typescript
Research direction
Start by tracing the deployment entry point that produces /app/migrate.cjs and checking how the @azure/identity dependency is included in the runtime image. Reproduce the migration or nightly deployment, then verify that the container starts successfully and the readiness, health, and home-page smoke tests pass.
Written by the indexing model from the issue text.
Description
🚨 Self-Healing Deployment Failed — Needs Human Review
Environment: rg-acroyoga-nightly
Image Tag: sha-d84287a49f7adf0a5db5674476702ea1f9da9887
Iterations Attempted: 1
Error Category: dependency
Summary: Missing module or file at runtime
Rollback: ❌ No baseline revision available
Container Logs (last 50 lines)
igrate (/app/migrate.cjs:6597:3) {"}
{"TimeStamp": "2026-04-17T09:29:43.8852327+00:00", "Log": "F code: 'ERR_MODULE_NOT_FOUND'"}
{"TimeStamp": "2026-04-17T09:29:43.8852348+00:00", "Log": "F }"}
{"TimeStamp": "2026-04-17T09:29:43.8852369+00:00", "Log": "F"}
{"TimeStamp": "2026-04-17T09:29:43.885239+00:00", "Log": "F Node.js v22.22.1"}
{"TimeStamp": "2026-04-17T09:29:43.8905512+00:00", "Log": "F Migration attempt 2 failed, retrying in 15s..."}
{"TimeStamp": "2026-04-17T09:29:59.0768616+00:00", "Log": "F /app/node_modules/pg-pool/index.js:45"}
{"TimeStamp": "2026-04-17T09:29:59.0769045+00:00", "Log": "F Error.captureStackTrace(err)"}
{"TimeStamp": "2026-04-17T09:29:59.0769224+00:00", "Log": "F ^"}
{"TimeStamp": "2026-04-17T09:29:59.0769267+00:00", "Log": "F"}
{"TimeStamp": "2026-04-17T09:29:59.0769293+00:00", "Log": "F Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@azure/identity' imported from /app/migrate.cjs"}
{"TimeStamp": "2026-04-17T09:29:59.0769419+00:00", "Log": "F at /app/node_modules/pg-pool/index.js:45:11"}
{"TimeStamp": "2026-04-17T09:29:59.0769448+00:00", "Log": "F at process.processTicksAndRejections (node:internal/process/task_queues:103:5)"}
{"TimeStamp": "2026-04-17T09:29:59.0769462+00:00", "Log": "F at async migrate (/app/migrate.cjs:6597:3) {"}
{"TimeStamp": "2026-04-17T09:29:59.0769476+00:00", "Log": "F code: 'ERR_MODULE_NOT_FOUND'"}
{"TimeStamp": "2026-04-17T09:29:59.0769489+00:00", "Log": "F }"}
{"TimeStamp": "2026-04-17T09:29:59.07695+00:00", "Log": "F"}
{"TimeStamp": "2026-04-17T09:29:59.0769513+00:00", "Log": "F Node.js v22.22.1"}
{"TimeStamp": "2026-04-17T09:29:59.0806719+00:00", "Log": "F Migration attempt 3 failed, retrying in 15s..."}
{"TimeStamp": "2026-04-17T09:30:14.2051232+00:00", "Log": "F /app/node_modules/pg-pool/index.js:45"}
{"TimeStamp": "2026-04-17T09:30:14.2051645+00:00", "Log": "F Error.captureStackTrace(err)"}
{"TimeStamp": "2026-04-17T09:30:14.2052119+00:00", "Log": "F ^"}
{"TimeStamp": "2026-04-17T09:30:14.205233+00:00", "Log": "F"}
{"TimeStamp": "2026-04-17T09:30:14.2052362+00:00", "Log": "F Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@azure/identity' imported from /app/migrate.cjs"}
{"TimeStamp": "2026-04-17T09:30:14.2052385+00:00", "Log": "F at /app/node_modules/pg-pool/index.js:45:11"}
{"TimeStamp": "2026-04-17T09:30:14.2052407+00:00", "Log": "F at process.processTicksAndRejections (node:internal/process/task_queues:103:5)"}
{"TimeStamp": "2026-04-17T09:30:14.2052429+00:00", "Log": "F at async migrate (/app/migrate.cjs:6597:3) {"}
{"TimeStamp": "2026-04-17T09:30:14.2052449+00:00", "Log": "F code: 'ERR_MODULE_NOT_FOUND'"}
{"TimeStamp": "2026-04-17T09:30:14.2052517+00:00", "Log": "F }"}
{"TimeStamp": "2026-04-17T09:30:14.2052538+00:00", "Log": "F"}
{"TimeStamp": "2026-04-17T09:30:14.2052558+00:00", "Log": "F Node.js v22.22.1"}
{"TimeStamp": "2026-04-17T09:30:14.2089497+00:00", "Log": "F Migration attempt 4 failed, retrying in 15s..."}
System Logs (last 30 lines)
05-7fc8879554-df7zg", "Msg": "Started container 'web'", "Reason": "ContainerStarted", "EventSource": "ContainerAppController", "Count": 1}
{"TimeStamp": "2026-04-17 09:29:58.576670376 +0000 UTC", "Type": "Warning", "ContainerAppName": "ca-acroyoga-web-nightly", "RevisionName": "ca-acroyoga-web-nightly--0000005", "ReplicaName": "ca-acroyoga-web-nightly--0000005-7fc8879554-df7zg", "Msg": "Probe of StartUp failed with status code: ", "Reason": "ProbeFailed", "EventSource": "ContainerAppController", "Count": 1}
{"TimeStamp": "2026-04-17 09:30:03.6026215 +0000 UTC", "Type": "Warning", "ContainerAppName": "ca-acroyoga-web-nightly", "RevisionName": "ca-acroyoga-web-nightly--0000005", "ReplicaName": "ca-acroyoga-web-nightly--0000005-7fc8879554-df7zg", "Msg": "Probe of StartUp failed with status code: ", "Reason": "ProbeFailed", "EventSource": "ContainerAppController", "Count": 2}
{"TimeStamp": "2026-04-17 09:30:08.6006658 +0000 UTC", "Type": "Warning", "ContainerAppName": "ca-acroyoga-web-nightly", "RevisionName": "ca-acroyoga-web-nightly--0000005", "ReplicaName": "ca-acroyoga-web-nightly--0000005-7fc8879554-df7zg", "Msg": "Probe of StartUp failed with status code: ", "Reason": "ProbeFailed", "EventSource": "ContainerAppController", "Count": 3}
{"TimeStamp": "2026-04-17 09:30:13.6000843 +0000 UTC", "Type": "Warning", "ContainerAppName": "ca-acroyoga-web-nightly", "RevisionName": "ca-acroyoga-web-nightly--0000005", "ReplicaName": "ca-acroyoga-web-nightly--0000005-7fc8879554-df7zg", "Msg": "Probe of StartUp failed with status code: ", "Reason": "ProbeFailed", "EventSource": "ContainerAppController", "Count": 4}
{"TimeStamp": "2026-04-17 09:30:18.6043918 +0000 UTC", "Type": "Warning", "ContainerAppName": "ca-acroyoga-web-nightly", "RevisionName": "ca-acroyoga-web-nightly--0000005", "ReplicaName": "ca-acroyoga-web-nightly--0000005-7fc8879554-df7zg", "Msg": "Probe of StartUp failed with status code: ", "Reason": "ProbeFailed", "EventSource": "ContainerAppController", "Count": 5}
Smoke Test Results
- Readiness: ❌
- Health: ❌
- Home page: ❌
This issue was auto-created by the self-healing deploy pipeline after exhausting all retry attempts.
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/CommunityManagement-Sample-Spec-Kit
-
deploy-fix-auto needs-human-review
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in microsoft/CommunityManagement-Sample-Spec-Kit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
newrelic-experimental/preflight#793 · 1 comment ·
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BasedHardware/omi#15320 ·