GitLab Docker container having issues connecting to Redis

Summary

We're troubleshooting running login_via_oauth_and_oidc_with_gitlab_as_idp_spec.rb locally and got down to the docker command to launch the instance we're testing: docker run --network bridge --hostname gitlab-oauth-consumer.bridge --publish 80:80 --platform linux/amd64 --env GITLAB_OMNIBUS_CONFIG="gitlab_rails['initial_root_password']='5iveL\!fe'" --name gitlab-oauth-consumer gitlab/gitlab-ee:latest

I was having problems logging in, getting redirected to a 422 error page, by digging through the logs I found a number of entries like:

==> /var/log/gitlab/sidekiq/current <==
{"severity":"ERROR","time":"2023-10-03T17:21:26.885Z","message":"Error fetching job: Error connecting to Redis on /var/opt/gitlab/redis/redis.socket (Errno::ECONNREFUSED)"}
{"severity":"ERROR","time":"2023-10-03T17:21:26.886Z","message":"Error fetching job: Error connecting to Redis on /var/opt/gitlab/redis/redis.socket (Errno::ECONNREFUSED)"}

watching the boot up logging I noticed Redis throwing an error on spinning up

Steps to reproduce

Run the command: docker run --network bridge --hostname gitlab-oauth-consumer.bridge --publish 80:80 --platform linux/amd64 --env GITLAB_OMNIBUS_CONFIG="gitlab_rails['initial_root_password']='5iveL\!fe'" --name gitlab-oauth-consumer gitlab/gitlab-ee:latest

and these entries are output into the log.

For completeness, I ran these setup steps to enable working on this script (adding entries in my hosts file so I can access the address http://gitlab-oauth-consumer.bridge

What is the current bug behavior?

you get a number of errors in the logs:

{"severity":"ERROR","time":"2023-10-03T17:21:26.886Z","message":"Error fetching job: Error connecting to Redis on /var/opt/gitlab/redis/redis.socket (Errno::ECONNREFUSED)"}

What is the expected correct behavior?

No Redis errors logged

Relevant logs and/or screenshots

Initial set of error message from the logs

Assignee Loading
Time tracking Loading