Z
Zerops6d ago
Dally

pnpm killed

Any ideas on what this could mean? Literally only happens in the build container somehow. Why and how does the process get killed?
No description
15 Replies
Dally
DallyOP6d ago
Looks like it does not happen when i do it manually
No description
Dally
DallyOP6d ago
Oh scratch that, it does:
No description
Dally
DallyOP6d ago
Its weird, it just happens sometimes Could it be due to memory not being allocated properly? When i run it multiple times the available memory goes up, and after a while the install succeeds
Dally
DallyOP6d ago
Aleš
Aleš6d ago
@Michal Saloň @Matěj Pavlíček
Michal Saloň
Michal Saloň6d ago
Hi, if you can run it locally, how much RAM does it use? Because our build containers have fixed 8GB of RAM, so if it needs more, it will fail. You can test this using the Pipeline debug options with Before first command, just like you did, but connect to the build container twice. Run top or htop (to add htop you need to run sudo apk add htop first) on one tab, start your commands in second tab, and look at the RAM usage in top/htop (you can sort by RAM). If it somehow goes up to 8GB, then that would be the issue. If you see that the container has way less RAM than 8GB as it should, that is a bug on our side. If more RAM is needed, I can adjust it for that one build container to see if it helps, but 8GB should be plenty for 5CPU cores.
Dally
DallyOP6d ago
I can build it under my VM which has 4GBs
Michal Saloň
Michal Saloň6d ago
I am testing it and can't reproduce it. Container always starts with 8GB of RAM, whether it is new, or existing one with cache (see the available column):
free -h
total used free shared buff/cache available
Mem: 503.6G 134.6G 368.0G 2.1G 1.1G 8.0G
Swap: 8.0G 12.6M 8.0G
free -h
total used free shared buff/cache available
Mem: 503.6G 134.6G 368.0G 2.1G 1.1G 8.0G
Swap: 8.0G 12.6M 8.0G
Dally
DallyOP6d ago
The container it looks like starts with ~300MB
buildwebpreviewv1739616921-runtime-1-34:/var/www$ free -h
total used free shared buff/cache available
Mem: 503.6G 162.2G 340.4G 1.5G 1.1G 325.4M
Swap: 8.0G 13.9M 8.0G
buildwebpreviewv1739616921-runtime-1-34:/var/www$ free -h
total used free shared buff/cache available
Mem: 503.6G 162.2G 340.4G 1.5G 1.1G 325.4M
Swap: 8.0G 13.9M 8.0G
This is on debug before the first command Somehow it went down
buildwebpreviewv1739616921-runtime-1-34:/var/www$ sudo su
/var/www # free -h
total used free shared buff/cache available
Mem: 503.6G 162.1G 340.5G 1.5G 1.1G 200.2M
Swap: 8.0G 13.9M 8.0G
buildwebpreviewv1739616921-runtime-1-34:/var/www$ sudo su
/var/www # free -h
total used free shared buff/cache available
Mem: 503.6G 162.1G 340.5G 1.5G 1.1G 200.2M
Swap: 8.0G 13.9M 8.0G
Dally
DallyOP6d ago
its really sporadic
Dally
DallyOP6d ago
Michal Saloň
Michal Saloň6d ago
IIRC Char had issue with a missing package? Leave the container running for a bit, le tme check what it's set to
Dally
DallyOP6d ago
No, it was also killed but in a different stage e.g. build and not package install
2025-02-25T23:50:09.727Z ━━━━ 🙏 bun run build ━━━━
2025-02-25T23:50:09.727Z
2025-02-25T23:50:09.734Z $ tsc -b && vite build
2025-02-25T23:50:12.921Z /bin/bash: line 1: 632 Killed tsc -b
2025-02-25T23:50:12.922Z error: script "build" exited with code 137
2025-02-25T23:50:12.922Z
2025-02-25T23:50:12.923Z ━━━━ ❌ bun run build ━━━━
2025-02-25T23:50:12.923Z
2025-02-25T23:50:12.923Z [BUILD ERROR] running build commands failed
2025-02-25T23:50:09.727Z ━━━━ 🙏 bun run build ━━━━
2025-02-25T23:50:09.727Z
2025-02-25T23:50:09.734Z $ tsc -b && vite build
2025-02-25T23:50:12.921Z /bin/bash: line 1: 632 Killed tsc -b
2025-02-25T23:50:12.922Z error: script "build" exited with code 137
2025-02-25T23:50:12.922Z
2025-02-25T23:50:12.923Z ━━━━ ❌ bun run build ━━━━
2025-02-25T23:50:12.923Z
2025-02-25T23:50:12.923Z [BUILD ERROR] running build commands failed
Michal Saloň
Michal Saloň6d ago
Should be fixed :skillIssue:
Dally
DallyOP6d ago
Looks like its fne, thanks!

Did you find this page helpful?