The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

git pull Cannot allocate memory

Discussion in 'General Discussion' started by Havri, Jun 7, 2017.

  1. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    54
    Likes Received:
    11
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    I am trying to do a git pull and I receive the following error:

    [myuser@server1 public_html]$ git pull
    /usr/libexec/git-core/git-sh-setup: fork: Cannot allocate memory

    Is anybody else experiencing the same issue? Can anybody point me in the right direction?

    Thank you.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    824
    Likes Received:
    22
    Trophy Points:
    168
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Yea - your server is out of memory. If you're on a shared system and simply using shell access, my best guess is that your host has fork bomb protection enabled and set at the default (and unreasonably low) limits. First, you should run 'ps' to see what other processes are running as your user, and kill those off to free up some resources. If you've done this and the act of running 'git pull' is still a problem, you would need to talk to your host. Unless you have root access to the system we are not able to help you with this.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,171
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The previous post should help explain what's happening. Let us know if you have any additional questions.

    Thank you.
     
  4. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    54
    Likes Received:
    11
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, I have root access to the server. I will try your recommendation and switch some settings and come back with an update.

    Thank you.
     
Loading...

Share This Page