webpack build error #6656

Closed
opened 2025-11-02 07:02:47 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @wpbirney on GitHub (Jan 8, 2021).

Description

With export TAGS='bindata' and make build Building both tag version v1.13.0 and v1.13.1 complete successfully. Building with latest master throws the error in the first gist.
Running with export NODE_OPTIONS="--max-old-space-size=8192" causes a different error to be thrown, the one in the second gist
The JavaScript heap out of memory error doesn't make a lot of sense to me as this is on a machine with 16gb ram free at time of build and 16gb swap available. And v1.13.0 and v.1.13.1 both build fine

Originally created by @wpbirney on GitHub (Jan 8, 2021). - Gitea version (or commit ref): bcb7f352215be12368de937fc0faa91cdb3d639a - Git version: 2.30.0 - Operating system: Void Linux with nodejs v14.15.4 and go 1.15.5 - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No - Log gist: https://gist.github.com/wpbirney/7ea37f062a10817df23400eb7bda632b https://gist.github.com/wpbirney/4aabb1fdb3af8fad14b9a3a7ed88c18a ## Description With `export TAGS='bindata'` and `make build` Building both tag version v1.13.0 and v1.13.1 complete successfully. Building with latest master throws the error in the first gist. Running with `export NODE_OPTIONS="--max-old-space-size=8192"` causes a different error to be thrown, the one in the second gist The `JavaScript heap out of memory` error doesn't make a lot of sense to me as this is on a machine with 16gb ram free at time of build and 16gb swap available. And v1.13.0 and v.1.13.1 both build fine
Author
Owner

@wpbirney commented on GitHub (Jan 8, 2021):

whoops was building on the wrong server. Seems to be a ram issue. the server with the build error has 2gb ram and 32gb swap. (not sure why the swap is not stopping it from failing) but the build completes on my 32gb ram server just fine...

@wpbirney commented on GitHub (Jan 8, 2021): whoops was building on the wrong server. Seems to be a ram issue. the server with the build error has 2gb ram and 32gb swap. (not sure why the swap is not stopping it from failing) but the build completes on my 32gb ram server just fine...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6656