Gitlab crowd authentication not working

I am trying to integrate crowd with gitlab, and I have created an application in crowd and then put those details in gitlab.rb file,and I got the crowd tab at the login screen but when trying to login using crowd credentials, it gives error 500