question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Github Action failed with out of memory error

See original GitHub issue

I would like to deploy a project with Github Action. I can’t use SSH copy file because I can’t add all IP addresses in white list on my server.

So I use a Linux self-hosted runner to try.

When I test my connexion with the server in the goal of testing a simple action, it works perfectly.

name: Hello World
on: [push]

jobs:
  one:
    name: Hello
    runs-on: self-hosted
    steps:
      - run: echo "hello world"

But when I want to use some actions like checkout, it works with ‘ubuntu-20.04’ but not with a self hosted runner on my server.

name: Deployment to production

on:
  push:
    branches:
      - master
     
jobs:
  auto-pull:
    name: Build and deploy
    runs-on: self-hosted
    steps:
    - uses: actions/checkout@v2

In Github Repo settings, my runner is green with ‘Idle’

I do not see any errors in logs of the runner on the server. I juste see ‘Job Build and deploy completed with result: Failed’ in the CLI just after the workflow start. In Github, the workflow failed with ‘Out of memory’ error after a few time.

So I would like to find a solution to use Self-hosted runner or another method to solve the problem of the SSH access to deploy my project. Thanks in advance

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
figadorecommented, Dec 1, 2021

Since this issue is high on the Google results for this error, I hope it’s ok to offer my workaround here. I was able to get a memory-intensive job to run by adding swap space (e.g. using this GitHub Action)

0reactions
ericdallocommented, Jan 21, 2022

@figadore thanks! how much do you recommend for the swap for a windows runner? I’m currently having OOM errors for graalvm builds only for windows, linux and mac works good

Read more comments on GitHub >

github_iconTop Results From Across the Web

Github Actions - Reached heap limit Allocation failed
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory Error: Process completed with exit code 1.
Read more >
How can I prevent an out of memory error in Github Actions?
Doing the solves off-line with conda-lock will usually solve OoM during environment creation, but won't cache very well with r2d.
Read more >
JavaScript heap out of memory with Astro and GitHub Actions
Basically, the Node process running inside the GitHub Action failed to free up memory and ran out of memory to process the work...
Read more >
Javascript Heap out of Memory Github Action Digital Ocean
JavaScript heap out of memory while running a Nodejs app on App Platform To solve JavaScript heap size, we must maximize space before ......
Read more >
Error on deploy: Out of memory: Killed process 257 (node)
Hello, I wanted to upgrade the dependencies of my NodeJS app today. Once pushed to GitHub, the deploy job kept failing with error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found