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

Github Action failed with out of memory error #1051

Closed
mickael-danjoux opened this issue Apr 17, 2021 · 5 comments
Closed

Github Action failed with out of memory error #1051

mickael-danjoux opened this issue Apr 17, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@mickael-danjoux
Copy link

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

@mickael-danjoux mickael-danjoux added the bug Something isn't working label Apr 17, 2021
@TingluoHuang
Copy link
Member

@mickd3 what is in the runner diag log? you can find them under the _diag folder of the runner root directory.

@mickael-danjoux
Copy link
Author

@TingluoHuang I see a lot of information that seems like normal. I see the action checkout with ' "condition": "success()" '.
At the end of the file there is a lot of logs with 'info' status, but I don't see any warning or error information. This is a big file and I don't know what I have to search but at first glance it seems like normal

@hross
Copy link
Contributor

hross commented Apr 21, 2021

Hello! We would like to help you solve this issue, but since this is not an engineering issue with the runner code (which is what we use this repo for) I'd like to redirect this discussion. If you are having issues with actions you need troubleshooting help with you can:

In both cases we have dedicated support people who monitor those areas and can help diagnose issues, as well as channels where you can securely share your logs/data/etc which won't be transmitted publicly over the internet (since this repo is open source these issues are freely available to anyone).

Apologies for the hassle of rewriting some of your problem and redirecting but I think it will make it easier and more secure for you to get help. Thanks!

@hross hross closed this as completed Apr 21, 2021
@figadore
Copy link

figadore commented 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)

@ericdallo
Copy link

@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

erikvansebille added a commit to OceanParcels/Parcels that referenced this issue Jan 10, 2023
Following suggestion at actions/runner#1051 (comment) based on the error

```
D:\a\parcels\parcels>conda env create -f environment_py3_win.yml -n parcels
67
Collecting package metadata (repodata.json): ...working... done
68
*** picosat: out of memory in 'new'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants