You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Built Docker image (pnpm docker:run) fails to start - exits with the following error:
2024-12-26 07:24:12 /app/agent:
2024-12-26 07:24:12 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @elizaos/[email protected] start: `node --loader ts-node/esm src/index.ts "--isRoot"`
2024-12-26 07:24:12 Exit status 1
2024-12-26 07:24:12 WARN Local package.json exists, but node_modules missing, did you mean to install?
2024-12-26 07:24:12 (node:31) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
2024-12-26 07:24:12 --import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
2024-12-26 07:24:12 (Use `node --trace-warnings ...` to show where the warning was created)
2024-12-26 07:24:12 (node:31) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
2024-12-26 07:24:12 (Use `node --trace-deprecation ...` to show where the warning was created)
2024-12-26 07:24:12
2024-12-26 07:24:12 node:internal/modules/run_main:122
2024-12-26 07:24:12 triggerUncaughtException(
2024-12-26 07:24:12 ^
2024-12-26 07:24:12 Error: Cannot find package '@elizaos/adapter-postgres' imported from /app/agent/src/index.ts
2024-12-26 07:24:12 at packageResolve (/app/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:757:9)
2024-12-26 07:24:12 at moduleResolve (/app/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:798:18)
2024-12-26 07:24:12 at Object.defaultResolve (/app/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:912:11)
2024-12-26 07:24:12 at /app/node_modules/ts-node/src/esm.ts:218:35
2024-12-26 07:24:12 at entrypointFallback (/app/node_modules/ts-node/src/esm.ts:168:34)
2024-12-26 07:24:12 at /app/node_modules/ts-node/src/esm.ts:217:14
2024-12-26 07:24:12 at addShortCircuitFlag (/app/node_modules/ts-node/src/esm.ts:409:21)
2024-12-26 07:24:12 at resolve (/app/node_modules/ts-node/src/esm.ts:197:12)
2024-12-26 07:24:12 at nextResolve (node:internal/modules/esm/hooks:748:28)
2024-12-26 07:24:12 at Hooks.resolve (node:internal/modules/esm/hooks:240:30)
2024-12-26 07:24:12
2024-12-26 07:24:12 Node.js v23.3.0
2024-12-26 07:24:12 ELIFECYCLE Command failed with exit code 1.
You can fix this issue by running pnpm install --no-frozen-lockfile before executing pnpm docker:build but the installed dependencies should not affect the image build process.
To Reproduce
Prerequisites:
Ubuntu/Debian
Docker installed
PNPM installed
Repo cloned
main branch checked out
pnpm clean
pnpm docker:build
pnpm docker:run
docker logs eliza
Expected behavior
The container should not exit with a dependency error and should start as normal regardless of whether pnpm install was executed before pnpm docker:build.
Describe the bug
Built Docker image (
pnpm docker:run
) fails to start - exits with the following error:You can fix this issue by running
pnpm install --no-frozen-lockfile
before executingpnpm docker:build
but the installed dependencies should not affect the image build process.To Reproduce
Prerequisites:
main
branch checked outpnpm clean
pnpm docker:build
pnpm docker:run
docker logs eliza
Expected behavior
The container should not exit with a dependency error and should start as normal regardless of whether
pnpm install
was executed beforepnpm docker:build
.Screenshots
Additional context
Possibly related to: #1120 and #1352
The text was updated successfully, but these errors were encountered: