[Deploy Fix] Self-healing failed: Missing module or file at runtime

Ouverte
#545 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
À clarifier
Activité
Calme
Stack technique
azure, node.js, typescript
Domaine
cloud, devops

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

deploy-fix-auto needs-human-review

🚨 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.

Langage dominant
TypeScript
Étoiles
8
Forks
4
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de microsoft/CommunityManagement-Sample-Spec-Kit

Toutes les issues de microsoft/CommunityManagement-Sample-Spec-Kit

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.