An error occurred while fetching the assigned iteration of the selected issue.
api-05 out of space
api-05 alerted for low disk space. I found that there was a /var/log/gitlab/gitlab-rails/api_json.log
was 22GB. Nothing in the log was particularly interesting, it all seemed normal. Upon investigation it seems that logrotate
has not been working for that log file, others on the same host were rotating fine. @briann noticed that logs for other things on the host were failing because it was out of disk space.
# ps -ax|grep svlog
7053 ? Ss 0:21 runsvdir -P /opt/gitlab/service log: ...................................................................................................................................................................svlogd: warning: out of disk space, delete: /var/log/gitlab/gitlab-workhorse/@4000000059c980af09d4903c.s ......svlogd: warning: out of disk space, delete: /var/log/gitlab/gitlab-workhorse/@4000000059c9ce84019e11f4.s ................
39736 ? Ss 5:35 runsvdir -P /etc/service log: directory: /var/log/prometheus/node_exporter: temporary failure svlogd: fatal: no functional log directories. svlogd: warning: unable to lock directory: /var/log/prometheus/node_exporter: temporary failure svlogd: fatal: no functional log directories. svlogd: warning: unable to lock directory: /var/log/prometheus/node_exporter: temporary failure svlogd: fatal: no functional log directories.
Investigation is ongoing.