Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    81
    Likes Received:
    17
    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:
    834
    Likes Received:
    29
    Trophy Points:
    178
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    81
    Likes Received:
    17
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice