Skip to content
cccskills
FreePublished on GitHub

troubleshoot

Troubleshoots common issues. Covers CDK deploy failures, Docker build errors, Lambda agent issues, test failures, and OpenClaw compatibility. Use when encountering errors during development or deployment.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196 stars(GitHub 196 + cccskills 0)
Works withAWSDocker

Run score Not tested

See how to install

Files included (1)

  • SKILL.md6.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Troubleshooting

Problem to investigate: $ARGUMENTS

Full references:

Common Issues & Solutions

CDK / Synth

ProblemCauseSolution
Cannot find asset during cdk synthpackages/web/dist/ missingRun cd packages/web && npx vite build first
CDK Bootstrap version mismatchOutdated bootstrapRun cdk bootstrap
ROLLBACK_FAILED on SecretsStackAwsCustomResource partial failureaws cloudformation delete-stack --stack-name SecretsStack --deletion-mode FORCE_DELETE_STACK, then redeploy
ECR repository already existsCDK trying to create existing repoUse --force delete or Repository.fromRepositoryName()
Cross-stack export removal errorStack import in useUse --exclusively flag + SSM decoupling pattern

Docker Build

ProblemCauseSolution
TS error with openclaw dynamic importStatic analysis of dynamic pathUse variable path: const mod = await import(/* @vite-ignore */ path)
OCI manifest push errorDefault buildx provenanceAdd --provenance=false flag to docker buildx build
npm ci fails (husky postinstall)prepare script runs in containernpm pkg delete scripts.prepare && npm ci

Lambda Agent

ProblemCauseSolution
Cannot find packagePackage installed globally, not in LAMBDA_TASK_ROOTInstall in $LAMBDA_TASK_ROOT, not /usr/local
exports map resolution failureNode ESM named exportsUse file:// URL import: import(\file://${path}`)`
Bedrock discovery timeout (56s)Auto-discovery scans all regionsSet bedrockDiscovery.enabled: false in OpenClaw config
extensionAPI not foundNot in exports mapUse file:// URL: import(\file://${ocRoot}/dist/extensionAPI.js`)`

OpenClaw Compatibility

ProblemCauseSolution
v2026.2.14 breaks: scope errorDefault-deny scope system, device pairing requiredPin to v2026.2.13 (fastest compatible)
operator.write strippedMissing device pairing in v2026.2.14+Use v2026.2.13 or implement device pairing
device field validation failsEmpty publicKey/signature stringsOmit device field entirely (it's Optional)
client.mode: "operator" invalidNot a valid Literal typeUse "backend" or "node"

Tests

ProblemCauseSolution
vi.mock variable not in scopeHoisting moves mock above variable declarationUse vi.hoisted() for variables referenced in mocks
E2E tests run with unit testsDefault vitest include matches all .test.tsExclude **/*.e2e.test.ts in vitest.config.ts
workspace:* not resolvedpnpm syntax used in npm workspaceUse "*" for workspace dependencies

AWS / IAM

| Problem | Cause | Solution | | -------------------------------------------------- | --------------------------------- | ------------------------------------------------------------------- | ---------------------------------- | | launchType + capacityProviderStrategy conflict | Cannot specify both in RunTask | Remove launchType, use capacityProviderStrategy only | | Lambda env var {{resolve:ssm-secure:...}} fails | Not supported for Lambda env vars | Pass SSM path as env var, resolve at runtime via resolveSecrets() | | ECS Task new secret inaccessible | Execution role not updated | Add ssm:GetParameters to execution role policy | | Empty env vars from .env | export $(cat .env | xargs) silently sets empty | Verify with ${#VAR} length check |

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

References Serverless OpenClaw architecture. Covers network design, CDK stack structure, DynamoDB data model, API protocols, and container design.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

References cold start optimization history and techniques. Covers Docker image optimization, Fargate CPU tuning, SOCI lazy loading, and Lambda Bedrock discovery fix. Use when optimizing startup performance.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

Loads Serverless OpenClaw project context. Provides background knowledge needed for development including project overview, tech stack, architecture decisions, and data models.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

cost

Free

References Serverless OpenClaw cost optimization guidelines. Validates that no resources exceeding the cost target ($1/month) are created during implementation. Use when writing CDK stacks or making infrastructure changes.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

deploy

Free

Deploys Serverless OpenClaw CDK stacks to AWS. Handles SecretsStack parameter injection, full/individual stack deployment, and Docker image push.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

dev

Free

Development workflow guide. Covers build, test, lint, format commands, package structure, Git hooks, TDD methodology, and coding conventions. Use when setting up dev environment, running tests, or following project conventions.

The English summary is being prepared. Showing the original description.

serithemage/serverless-openclaw196Updated Mar 29, 2026

See all skills by serithemage

Report a problem with this skill