Skip to content

Instantly share code, notes, and snippets.

@radmen
Last active December 13, 2015 19:09
Show Gist options
  • Save radmen/4960953 to your computer and use it in GitHub Desktop.
Save radmen/4960953 to your computer and use it in GitHub Desktop.
Quickfix for Gitlab 500 error on creating user.

On some special situations (probably bad server config) Gitlab instead of queuing email throws 500 error.
To fix it You can force Gitlab to send emails immediately.

Just run this script inside gitlab installation folder (normally it's /home/gitlab/gitlab):

grep -r "Notify.delay" app/* | cut -d":" -f1 | xargs sed -i.bak -e"s/Notify\.delay\.\(.*\)/Notify.\1.deliver/"
@radmen
Copy link
Author

radmen commented Mar 25, 2013

This error occurred only for gitlab < 5.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment