Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] unable to build historical indexer #2801

Closed
joergkiesewetter opened this issue May 8, 2024 · 0 comments
Closed

[bug] unable to build historical indexer #2801

joergkiesewetter opened this issue May 8, 2024 · 0 comments

Comments

@joergkiesewetter
Copy link
Contributor

Hi,

I'm trying to build the docker image from the historical indexer branch, but it fails. The error message is:

193.5 packages/store-sync build: node:events:495
193.5 packages/store-sync build:       throw er; // Unhandled 'error' event
193.5 packages/store-sync build:       ^
193.5 packages/store-sync build: Error [ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory
193.5 packages/store-sync build:     at new NodeError (node:internal/errors:405:5)
193.5 packages/store-sync build:     at [kOnExit] (node:internal/worker:301:26)
193.5 packages/store-sync build:     at Worker.<computed>.onexit (node:internal/worker:222:20)
193.5 packages/store-sync build: Emitted 'error' event on Worker instance at:
193.5 packages/store-sync build:     at [kOnExit] (node:internal/worker:301:12)
193.5 packages/store-sync build:     at Worker.<computed>.onexit (node:internal/worker:222:20) {
193.5 packages/store-sync build:   code: 'ERR_WORKER_OUT_OF_MEMORY'
193.5 packages/store-sync build: }
193.5 packages/store-sync build: Node.js v18.20.2
193.6 packages/store-sync build:  ELIFECYCLE  Command failed with exit code 1.
193.6 packages/store-sync build: Failed
193.6 /app/packages/store-sync:
193.6  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @latticexyz/[email protected] build: `pnpm run build:js`
193.6 Exit status 1

It seems like the node process in the docker image doesn't have enough memory to build the store-sync package. To solve this, the memory limit within docker needs to be changed. I will open a PR to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant