Skip to content

Redis URI causes Gitlab to fail to start with non-alphanumeric passwords

Summary

If you are not using an alphanumeric password for Redis, Gitlab won't start.

Steps to reproduce

  • Configure Gitlab with a Redis password containing special characters.
  • Attempt to start Gitlab

What is the current bug behavior?

In the startup logs, the following message appears (example) and the application will not start. URI::InvalidURIError: bad URI(is not URI?): redis://:0YndC^KXE^EM#4Sn@10.3.249.67/

Results of GitLab environment info

This bug was produced using the Docker container gitlab/gitlab-ee:9.0.0-ee.0

Possible fixes

Encoding the URI should fix this.