How can i access the redis logger on (omnibus installed gitlab) [solved]

I installed gitlab on my mac using this vagrant community box, everything worked well but i very often get the 502 error page.

from the logs it’s clear that this is a redis problem:

==> /var/log/gitlab/nginx/gitlab_access.log <==
10.0.2.2 - - [14/Nov/2016:07:41:28 +0000] "GET /acme/android/pipelines HTTP/2.0" 500 210 "https://127.0.0.1:8443/acme/android" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36"

==> /var/log/gitlab/redis/current <==
2016-11-14_07:41:34.05364 925:M 14 Nov 07:41:34.043 * 10 changes in 300 seconds. Saving...
2016-11-14_07:41:34.05662 925:M 14 Nov 07:41:34.056 # Can't save in background: fork: Cannot allocate memory
2016-11-14_07:41:40.08734 925:M 14 Nov 07:41:40.077 * 10 changes in 300 seconds. Saving...
2016-11-14_07:41:40.09001 925:M 14 Nov 07:41:40.089 # Can't save in background: fork: Cannot allocate memory
2016-11-14_07:41:46.02648 925:M 14 Nov 07:41:46.017 * 10 changes in 300 seconds. Saving...
2016-11-14_07:41:46.03174 925:M 14 Nov 07:41:46.031 # Can't save in background: fork: Cannot allocate memory
2016-11-14_07:41:52.08544 925:M 14 Nov 07:41:52.070 * 10 changes in 300 seconds. Saving...
2016-11-14_07:41:52.09217 925:M 14 Nov 07:41:52.092 # Can't save in background: fork: Cannot allocate memory
2016-11-14_07:41:58.07179 925:M 14 Nov 07:41:58.049 * 10 changes in 300 seconds. Saving...
2016-11-14_07:41:58.08868 925:M 14 Nov 07:41:58.074 # Can't save in background: fork: Cannot allocate memory
2016-11-14_07:42:12.58820 925:M 14 Nov 07:42:12.512 * 10 changes in 300 seconds. Saving...
2016-11-14_07:42:12.70245 925:M 14 Nov 07:42:12.651 # Can't save in background: fork: Cannot allocate memory

==> /var/log/gitlab/gitlab-rails/production.log <==
Completed 500 Internal Server Error in 60842ms (ActiveRecord: 55380.9ms)

ActionView::Template::Error (MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.):
    1: = broadcast_message
  app/models/broadcast_message.rb:18:in `current'
  app/helpers/broadcast_messages_helper.rb:2:in `broadcast_message'
  app/views/layouts/_broadcast.html.haml:1:in `_app_views_layouts__broadcast_html_haml__4601744669031821454_70075229517980'
  app/views/layouts/_page.html.haml:25:in `_app_views_layouts__page_html_haml___661702746460809127_70075208343660'
  app/views/layouts/application.html.haml:11:in `_app_views_layouts_application_html_haml__3599375960490706423_70075194939160'
  app/views/layouts/project.html.haml:25:in `_app_views_layouts_project_html_haml__2118803840909160339_70075273415700'
  app/controllers/projects_controller.rb:287:in `render_landing_page'
  app/controllers/projects_controller.rb:107:in `block (2 levels) in show'
  app/controllers/projects_controller.rb:104:in `show'
  lib/gitlab/request_profiler/middleware.rb:15:in `call'
  lib/gitlab/middleware/go.rb:16:in `call'

I went over the log page but couldn’t find anything about how to view the redis logger

inside the vagrant box i went to

/var/log/gitlab

where all the logs are… and it seems that the redis folder is given permissions to a gitlab-redis user:

$ ls -l
total 40
drwx------ 2 git          root       4096 Nov 14 00:40 gitlab-rails
drwx------ 2 git          root       4096 Nov 14 00:40 gitlab-shell
drwx------ 2 git          root       4096 Nov 14 08:15 gitlab-workhorse
drwx------ 2 root         root       4096 Nov 14 06:35 logrotate
drwxr-x--- 2 root         gitlab-www 4096 Nov 14 00:40 nginx
drwx------ 2 gitlab-psql  root       4096 Nov 14 08:15 postgresql
drwxr-xr-x 2 root         root       4096 Nov 13 22:20 reconfigure
drwx------ 2 gitlab-redis root       4096 Nov 14 08:15 redis
drwx------ 2 git          root       4096 Nov 14 08:15 sidekiq
drwx------ 2 git          root       4096 Nov 14 08:15 unicorn

I’m not sure how to access that… help?

I solved this by simply doing

sudo -i

and logging in as root…