Search code examples
gitmemory-managementgit-push

Git first push: Sending email and Cannot allocate memory


I am trying to use a git push for the first time on my git repository for a specific project and I am getting this error:

remote: Sending mail...
remote: /var/lib/gems/1.9.1/gems/git-commit-notifier-0.12.0/lib/git_commit_notifier/emailer.rb:159:in `popen': Cannot allocate memory - /usr/sbin/sendmail -i -t (Errno::ENOMEM)

Anybody faced this error and if so, how could this be fixed?

Thank you in advance.


Solution

  • This error is happening on the remote site (i.e. where you are pushing to) in a hook that executes upon your push. Seemingly the server runs out of memory.

    You cannot do much about it locally, but you need to contact the owner of the remote.