Hello,
I wanted to upgrade the dependencies of my NodeJS app today. Once pushed to GitHub, the deploy job kept failing with error "Out of memory: Killed process 257 (node) total-vm:740560kB, anon-rss:137112kB, file-rss:4kB, shmem-rss:0kB, UID:1000 pgtables:1488kB oom_score_adj:0
"
What I don’t understand is that I didn’t change anything to the Toml config or VM config online. My last deployment a week ago worked perfectly fine yet today it keeps failing?
Btw on my machine the memory usage seems completely normal and checking last week’s log the NodeJS and NPM versions are the same.
Has anything changed this week on Fly’s end or does anyone has a clue to why it is suddenly failing? Thanks
Here are the deploy command logs:
==> Verifying app config
--> Verified app config
Validating /home/runner/work/api/api/fly.toml
Platform: machines
✓ Configuration is valid
==> Building image
Waiting for remote builder fly-builder-shy-bird-7117...
Remote builder fly-builder-shy-bird-7117 ready
==> Building image with Buildpacks
--> docker host: 20.10.12 linux x86_64
20: Pulling from heroku/buildpacks
Digest: sha256:455ac544557f82e72a606744d4ad912ad833c0731c439bfb417f8df8ecc20fe0
Status: Image is up to date for heroku/buildpacks:20
20-cnb: Pulling from heroku/heroku
Digest: sha256:f74f9ebed587fb048ef1d771917088b94cc264fe89b8363fb7f8dcee358b32ad
Status: Image is up to date for heroku/heroku:20-cnb
Warning: Platform requested deprecated API '0.6'
===> DETECTING
Warning: Buildpack 'heroku/ruby@0.0.0' requests deprecated API '0.4'
Warning: Buildpack 'heroku/python@0.0.0' requests deprecated API '0.4'
Warning: Buildpack 'heroku/scala@0.0.0' requests deprecated API '0.4'
Warning: Buildpack 'heroku/php@0.0.0' requests deprecated API '0.4'
Warning: Buildpack 'heroku/go@0.0.0' requests deprecated API '0.4'
Warning: Buildpack 'heroku/gradle@0.0.0' requests deprecated API '0.4'
2 of 3 buildpacks participating
heroku/nodejs-engine 1.1.1
heroku/nodejs-npm 1.1.1
===> ANALYZING
Restoring metadata for "heroku/nodejs-engine:dist" from app image
Restoring metadata for "heroku/nodejs-engine:web_env" from app image
Restoring metadata for "heroku/nodejs-npm:node_modules" from cache
Restoring metadata for "heroku/nodejs-npm:toolbox" from cache
===> RESTORING
Restoring data for "heroku/nodejs-engine:dist" from cache
Restoring data for "heroku/nodejs-npm:node_modules" from cache
Restoring data for "heroku/nodejs-npm:toolbox" from cache
===> BUILDING
[Heroku Node.js Engine Buildpack]
[Checking Node.js version]
Detected Node.js version range: >=16.0.0 <19.0.0
Resolved Node.js version: 18.16.1
npm notice Run `npm install -g npm@9.8.0` to update!
npm notice
INFO Main child exited normally with code: 137
INFO Starting clean up.
WARN hallpass exited, pid: 238, status: signal: 15 (SIGTERM)
2023/07/19 13:42:14 listening on [fdaa:0:8daa:a7b:169:ec36:aad4:2]:22 (DNS: [fdaa::3]:53)
[ 4.257399] reboot: Restarting system
machine did not have a restart policy, defaulting to restart
INFO Starting init (commit: 1d1821d)...
INFO Preparing to run: `/cnb/process/web` as heroku
INFO [fly api proxy] listening at /.fly/api
2023/07/19 13:42:16 listening on [fdaa:0:8daa:a7b:169:ec36:aad4:2]:22 (DNS: [fdaa::3]:53)
> colloscope-api@3.3.7 start
> node --max-old-space-size=200 dist/index.js
[ 2.177217] Out of memory: Killed process 257 (node) total-vm:740560kB, anon-rss:137112kB, file-rss:4kB, shmem-rss:0kB, UID:1000 pgtables:1488kB oom_score_adj:0
Killed
npm notice
npm notice New minor version of npm available! 9.5.1 -> 9.8.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.0>
npm notice Run `npm install -g npm@9.8.0` to update!
npm notice
INFO Main child exited normally with code: 137
INFO Starting clean up.
WARN hallpass exited, pid: 238, status: signal: 15 (SIGTERM)
2023/07/19 13:42:18 listening on [fdaa:0:8daa:a7b:169:ec36:aad4:2]:22 (DNS: [fdaa::3]:53)
[ 3.266954] reboot: Restarting system
Error: smoke checks for 683d471f779428 failed: the app appears to be crashing