500 error - when accessing /admin/application_settings/advanced_search

Hey guys. I’m configuring the elasticsearch integration, I did my part on the ES side, all good. Then, when I entered the URL in those text fields, then the user & password and clicked on Save Changes I now get an HTTP error code 500 whenever I try to access the URL ( /admin/application_settings/advanced_search). The error when checking the logs (or by doing this: gitlab-rake gitlab:elastic:create_empty_index) is the following:

URI::InvalidComponentError: bad password component

I assume that since the password contain some special characters I had to escape them, however the web application didn’t do a good job here by letting me know (if my guess is correct). I need to find a way to reset this setting to put a new password so I can enabled the advanced search with elasticsearch later.


1 Like

I ran into the same problem. I was able to reset the fields in the rails console with
ApplicationSetting.last.update(elasticsearch_indexing: false)
ApplicationSetting.last.update(elasticsearch_url: ‘’)

There may be other fields that need to be reset as well. You can find those with ApplicationSetting.last.attributes.

helped with those commands.

Hi @leal - Hi @palindrome - GitLab Support Engineer here - I just was alerted to this forum post from a Support ticket.

Thanks for reporting this in the forum!

I’m fairly certain there is a bug with URI-invalid passwords (or usernames) here - and I just created a bug issue. I’ve listed a workaround as well based on what you shared here!


1 Like