GitLab – Error “This user cannot be unlocked manually from GitLab”

There are two reasons this might happen with GitLab EE.

  1. The was an small connection issue between the server and the LDAP server
    1. If the account has been blocked and you are unable to “manually” unblock them, you will have to log into the back-end side of the server. (SSH into the server and use a terminal session)
    2. Once you have escalated to root or superuser you will need to enter the following commands.
    3. gitlab-rails console

    4. to search for a user enter the following command:
      1. irb(main):001:0> user = User.find_by_email(“email@something.com“)

        Untitled

    5. Setting the user to active:
      1. irb(main):002:0> user.state = “active”
    6. Save the setting
      1. irb(main):003:0> user.save
    7. Once you see a ‘true” feel free to exit the console. Check to see if the user’s allowed to access the site again
  2. The user’s account has been disabled in AD and then is synced to the GitLab EE server. 
    1. Check AD to see if the user’s account has been disabled 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s