Thanks iwalker.
I have removed tomcat via the command above, but the following still finds a way to start again:
git 19621 2242 3.5 7621900 4699480 ? Ssl 08:29 315:24 /usr/java/latest/bin/java -Djava.util.logging.config.file=/data/apache-tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Xms512M -Xmx5120M -server -XX:+UseParallelGC -Djavax.net.debug=ssl -Dignore.endorsed.dirs= -classpath /data/apache-tomcat/bin/bootstrap.jar:/data/apache-tomcat/bin/tomcat-juli.jar -Dcatalina.base=/data/apache-tomcat -Dcatalina.home=/data/apache-tomcat -Djava.io.tmpdir=/data/apache-tomcat/temp org.apache.catalina.startup.Bootstrap start
This is what status looks like after I killed it:
run: alertmanager: (pid 22866) 10s; run: log: (pid 2882) 1305s
run: gitaly: (pid 22903) 10s; run: log: (pid 2893) 1305s
run: gitlab-exporter: (pid 22947) 9s; run: log: (pid 2892) 1305s
run: gitlab-workhorse: (pid 22961) 9s; run: log: (pid 2886) 1305s
run: grafana: (pid 22986) 9s; run: log: (pid 2880) 1305s
run: logrotate: (pid 23022) 8s; run: log: (pid 2913) 1305s
run: nginx: (pid 23453) 8s; run: log: (pid 2908) 1305s
run: node-exporter: (pid 23943) 7s; run: log: (pid 2890) 1305s
run: postgres-exporter: (pid 24520) 7s; run: log: (pid 2898) 1305s
run: postgresql: (pid 24986) 6s; run: log: (pid 2894) 1305s
run: prometheus: (pid 25435) 6s; run: log: (pid 2884) 1305s
run: puma: (pid 32038) 0s; run: log: (pid 2885) 1305s
run: redis: (pid 26367) 5s; run: log: (pid 2887) 1305s
run: redis-exporter: (pid 26796) 5s; run: log: (pid 2881) 1305s
run: registry: (pid 27244) 4s; run: log: (pid 2901) 1305s
run: sidekiq: (pid 27630) 4s; run: log: (pid 2883) 1305s
All of the gitlab services always start up fine according to that.
Please see the latest logs for each service:
alertmanager
[root@telemetry ~]# sudo gitlab-ctl tail alertmanager
==> /var/log/gitlab/alertmanager/state <==
==> /var/log/gitlab/alertmanager/current <==
2021-11-30_08:21:31.15665 level=info ts=2021-11-30T08:21:31.153Z caller=main.go:524 msg="Received SIGTERM, exiting gracefully..."
2021-11-30_08:22:37.44483 level=info ts=2021-11-30T08:22:37.444Z caller=main.go:216 msg="Starting Alertmanager" version="(version=0.21.0, branch=master, revision=)"
2021-11-30_08:22:37.44492 level=info ts=2021-11-30T08:22:37.444Z caller=main.go:217 build_context="(go=go1.14.7, user=GitLab-Omnibus, date=)"
2021-11-30_08:22:37.46176 level=info ts=2021-11-30T08:22:37.461Z caller=cluster.go:161 component=cluster msg="setting advertise address explicitly" addr=172.17.0.1 port=9094
2021-11-30_08:22:37.46457 level=info ts=2021-11-30T08:22:37.464Z caller=cluster.go:623 component=cluster msg="Waiting for gossip to settle..." interval=2s
2021-11-30_08:22:37.49922 level=info ts=2021-11-30T08:22:37.499Z caller=coordinator.go:119 component=configuration msg="Loading configuration file" file=/var/opt/gitlab/alertmanager/alertmanager.yml
2021-11-30_08:22:37.50024 level=info ts=2021-11-30T08:22:37.500Z caller=coordinator.go:131 component=configuration msg="Completed loading of configuration file" file=/var/opt/gitlab/alertmanager/alertmanager.yml
2021-11-30_08:22:37.50322 level=info ts=2021-11-30T08:22:37.503Z caller=main.go:485 msg=Listening address=localhost:9093
2021-11-30_08:22:39.46471 level=info ts=2021-11-30T08:22:39.464Z caller=cluster.go:648 component=cluster msg="gossip not settled" polls=0 before=0 now=1 elapsed=2.000058041s
2021-11-30_08:22:47.46529 level=info ts=2021-11-30T08:22:47.465Z caller=cluster.go:640 component=cluster msg="gossip settled; proceeding" elapsed=10.000657923s
gitaly
[root@telemetry ~]# sudo gitlab-ctl tail gitaly
==> /var/log/gitlab/gitaly/gitaly_ruby_json.log <==
{"type":"gitaly-ruby","grpc.start_time":"2021-11-30T08:27:08Z","grpc.time_ms":0.184,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":5608,"correlation_id":"016bd6fde32f183334cc71e7a7eea640","time":"2021-11-30T08:27:08.067Z"}
{"type":"gitaly-ruby","grpc.start_time":"2021-11-30T08:27:08Z","grpc.time_ms":0.181,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":5606,"correlation_id":"717590c69db00f532c58e6d71c748153","time":"2021-11-30T08:27:08.067Z"}
{"type":"gitaly-ruby","grpc.start_time":"2021-11-30T08:27:23Z","grpc.time_ms":0.178,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":5608,"correlation_id":"8d3bd88190f3932e4848ad2b62ccb068","time":"2021-11-30T08:27:23.068Z"}
{"type":"gitaly-ruby","grpc.start_time":"2021-11-30T08:27:23Z","grpc.time_ms":0.173,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":5606,"correlation_id":"d520114f7ae84f8b9a1be05f2f2e02a9","time":"2021-11-30T08:27:23.068Z"}
{"type":"gitaly-ruby","grpc.start_time":"2021-11-30T08:27:38Z","grpc.time_ms":0.154,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":5608,"correlation_id":"917fb4d4f51b3fd9f7ccfeea7e6b2def","time":"2021-11-30T08:27:38.069Z"}
{"type":"gitaly-ruby","grpc.start_time":"2021-11-30T08:27:38Z","grpc.time_ms":0.194,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":5606,"correlation_id":"0d5b7d1a4b4a4fd983a9e1c50548d373","time":"2021-11-30T08:27:38.069Z"}
{"type":"gitaly-ruby","grpc.start_time":"2021-11-30T08:27:53Z","grpc.time_ms":0.18,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":5608,"correlation_id":"573aebdd959b5f951df3610eb8f486fb","time":"2021-11-30T08:27:53.070Z"}
{"type":"gitaly-ruby","grpc.start_time":"2021-11-30T08:27:53Z","grpc.time_ms":0.231,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":5606,"correlation_id":"0c57e5a8c946d787cc37478448e71228","time":"2021-11-30T08:27:53.070Z"}
{"type":"gitaly-ruby","grpc.start_time":"2021-11-30T08:28:08Z","grpc.time_ms":0.205,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":5606,"correlation_id":"c6e14c162b4bc28d00a9493df94b19c2","time":"2021-11-30T08:28:08.071Z"}
{"type":"gitaly-ruby","grpc.start_time":"2021-11-30T08:28:08Z","grpc.time_ms":0.225,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":5608,"correlation_id":"b14cb1228a6558a6e7cf7847a861d85a","time":"2021-11-30T08:28:08.071Z"}
==> /var/log/gitlab/gitaly/state <==
==> /var/log/gitlab/gitaly/current <==
{"level":"warning","msg":"spawned","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","2983","/var/opt/gitlab/gitaly/internal_sockets/ruby.1"],"supervisor.name":"gitaly-ruby.1","supervisor.pid":4047,"time":"2021-11-30T08:22:38.036Z"}
{"level":"warning","msg":"grpc: addrConn.createTransport failed to connect to {/var/opt/gitlab/gitaly/internal_sockets/ruby.1 \u003cnil\u003e 0 \u003cnil\u003e}. Err: connection error: desc = \"transport: Error while dialing dial unix /var/opt/gitlab/gitaly/internal_sockets/ruby.1: connect: connection refused\". Reconnecting...","pid":2983,"system":"system","time":"2021-11-30T08:22:38.036Z"}
{"level":"info","msg":"PID 4047 BUNDLE_GEMFILE=/opt/gitlab/embedded/service/gitaly-ruby/Gemfile","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","2983","/var/opt/gitlab/gitaly/internal_sockets/ruby.1"],"supervisor.name":"gitaly-ruby.1","time":"2021-11-30T08:22:38.354Z"}
{"level":"info","msg":"PID 4045 BUNDLE_GEMFILE=/opt/gitlab/embedded/service/gitaly-ruby/Gemfile","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","2983","/var/opt/gitlab/gitaly/internal_sockets/ruby.0"],"supervisor.name":"gitaly-ruby.0","time":"2021-11-30T08:22:38.355Z"}
{"error":"signal: killed","level":"warning","msg":"exited","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","2983","/var/opt/gitlab/gitaly/internal_sockets/ruby.0"],"supervisor.name":"gitaly-ruby.0","time":"2021-11-30T08:22:39.673Z"}
{"level":"warning","msg":"spawned","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","2983","/var/opt/gitlab/gitaly/internal_sockets/ruby.0"],"supervisor.name":"gitaly-ruby.0","supervisor.pid":5606,"time":"2021-11-30T08:22:39.674Z"}
{"error":"signal: killed","level":"warning","msg":"exited","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","2983","/var/opt/gitlab/gitaly/internal_sockets/ruby.1"],"supervisor.name":"gitaly-ruby.1","time":"2021-11-30T08:22:39.675Z"}
{"level":"warning","msg":"spawned","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","2983","/var/opt/gitlab/gitaly/internal_sockets/ruby.1"],"supervisor.name":"gitaly-ruby.1","supervisor.pid":5608,"time":"2021-11-30T08:22:39.675Z"}
{"level":"info","msg":"PID 5608 BUNDLE_GEMFILE=/opt/gitlab/embedded/service/gitaly-ruby/Gemfile","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","2983","/var/opt/gitlab/gitaly/internal_sockets/ruby.1"],"supervisor.name":"gitaly-ruby.1","time":"2021-11-30T08:22:39.983Z"}
{"level":"info","msg":"PID 5606 BUNDLE_GEMFILE=/opt/gitlab/embedded/service/gitaly-ruby/Gemfile","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","2983","/var/opt/gitlab/gitaly/internal_sockets/ruby.0"],"supervisor.name":"gitaly-ruby.0","time":"2021-11-30T08:22:39.984Z"}
==> /var/log/gitlab/gitaly/gitlab-shell.log <==
==> /var/log/gitlab/gitaly/gitaly_hooks.log <==
gitlab-exporter
[root@telemetry ~]# sudo gitlab-ctl tail gitlab-exporter
==> /var/log/gitlab/gitlab-exporter/state <==
==> /var/log/gitlab/gitlab-exporter/current <==
2021-11-30_08:28:05.88510 ::1 - - [30/Nov/2021:08:28:05 UTC] "GET /database HTTP/1.1" 200 2565
2021-11-30_08:28:05.88512 - -> /database
2021-11-30_08:28:09.60515 ::1 - - [30/Nov/2021:08:28:09 UTC] "GET /sidekiq HTTP/1.1" 200 70296
2021-11-30_08:28:09.60516 - -> /sidekiq
2021-11-30_08:28:20.58340 ::1 - - [30/Nov/2021:08:28:20 UTC] "GET /ruby HTTP/1.1" 200 996
2021-11-30_08:28:20.58341 - -> /ruby
2021-11-30_08:28:20.91265 ::1 - - [30/Nov/2021:08:28:20 UTC] "GET /database HTTP/1.1" 200 2565
2021-11-30_08:28:20.91267 - -> /database
2021-11-30_08:28:24.60450 ::1 - - [30/Nov/2021:08:28:24 UTC] "GET /sidekiq HTTP/1.1" 200 70296
2021-11-30_08:28:24.60452 - -> /sidekiq
2021-11-30_08:28:35.57613 ::1 - - [30/Nov/2021:08:28:35 UTC] "GET /ruby HTTP/1.1" 200 996
2021-11-30_08:28:35.57615 - -> /ruby
2021-11-30_08:28:35.88154 ::1 - - [30/Nov/2021:08:28:35 UTC] "GET /database HTTP/1.1" 200 2565
2021-11-30_08:28:35.88156 - -> /database
2021-11-30_08:28:39.62881 ::1 - - [30/Nov/2021:08:28:39 UTC] "GET /sidekiq HTTP/1.1" 200 70296
2021-11-30_08:28:39.62883 - -> /sidekiq
2021-11-30_08:28:50.57137 ::1 - - [30/Nov/2021:08:28:50 UTC] "GET /ruby HTTP/1.1" 200 996
2021-11-30_08:28:50.57140 - -> /ruby
2021-11-30_08:28:50.88117 ::1 - - [30/Nov/2021:08:28:50 UTC] "GET /database HTTP/1.1" 200 2565
2021-11-30_08:28:50.88119 - -> /database
2021-11-30_08:28:54.62264 ::1 - - [30/Nov/2021:08:28:54 UTC] "GET /sidekiq HTTP/1.1" 200 70296
2021-11-30_08:28:54.62267 - -> /sidekiq
gitlab-workhorse
[root@telemetry ~]# sudo gitlab-ctl tail gitlab-workhorse
==> /var/log/gitlab/gitlab-workhorse/state <==
==> /var/log/gitlab/gitlab-workhorse/current <==
{"correlation_id":"01FNQZAVWRNH81GQPBEWBH55SJ","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"GET","msg":"","time":"2021-11-30T08:28:15Z","uri":"/favicon.ico"}
{"content_type":"text/html; charset=utf-8","correlation_id":"01FNQZAVWRNH81GQPBEWBH55SJ","duration_ms":0,"host":"gitlab.mypolicy.co.uk:9191","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"https://gitlab.mypolicy.co.uk:9191/","remote_addr":"193.117.129.74:0","remote_ip":"193.117.129.74","route":"","status":502,"system":"http","time":"2021-11-30T08:28:15Z","ttfb_ms":0,"uri":"/favicon.ico","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","written_bytes":2940}
{"correlation_id":"01FNQZAW5FBCJ648A1E3JY0KWK","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"POST","msg":"","time":"2021-11-30T08:28:15Z","uri":"/api/v4/internal/allowed"}
{"content_type":"text/plain","correlation_id":"01FNQZAW5FBCJ648A1E3JY0KWK","duration_ms":0,"host":"unix","level":"info","method":"POST","msg":"access","proto":"HTTP/1.1","referrer":"","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","route":"^/api/","status":502,"system":"http","time":"2021-11-30T08:28:15Z","ttfb_ms":0,"uri":"/api/v4/internal/allowed","user_agent":"GitLab-Shell","written_bytes":24}
{"correlation_id":"01FNQZBH91PW6N9B2CVGQF9JN1","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"POST","msg":"","time":"2021-11-30T08:28:37Z","uri":"/api/v4/jobs/request"}
{"content_type":"text/plain","correlation_id":"01FNQZBH91PW6N9B2CVGQF9JN1","duration_ms":0,"host":"gitlab.mypolicy.co.uk:9191","level":"info","method":"POST","msg":"access","proto":"HTTP/1.1","referrer":"","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","route":"^/api/v4/jobs/request\\z","status":502,"system":"http","time":"2021-11-30T08:28:37Z","ttfb_ms":0,"uri":"/api/v4/jobs/request","user_agent":"gitlab-runner 11.11.2 (; go1.8.7; linux/amd64)","written_bytes":24}
{"correlation_id":"01FNQZBHX8X0J3RC8MXZWTAGE2","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"GET","msg":"","time":"2021-11-30T08:28:38Z","uri":"/"}
{"content_type":"text/html; charset=utf-8","correlation_id":"01FNQZBHX8X0J3RC8MXZWTAGE2","duration_ms":1,"host":"gitlab.mypolicy.co.uk:9191","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"https://gitlab.mypolicy.co.uk:9191/","remote_addr":"193.117.129.74:0","remote_ip":"193.117.129.74","route":"","status":502,"system":"http","time":"2021-11-30T08:28:38Z","ttfb_ms":1,"uri":"/","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","written_bytes":2940}
{"correlation_id":"01FNQZBHZP8XMQPSDYNYJ003VB","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"GET","msg":"","time":"2021-11-30T08:28:38Z","uri":"/favicon.ico"}
{"content_type":"text/html; charset=utf-8","correlation_id":"01FNQZBHZP8XMQPSDYNYJ003VB","duration_ms":0,"host":"gitlab.mypolicy.co.uk:9191","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"https://gitlab.mypolicy.co.uk:9191/","remote_addr":"193.117.129.74:0","remote_ip":"193.117.129.74","route":"","status":502,"system":"http","time":"2021-11-30T08:28:38Z","ttfb_ms":0,"uri":"/favicon.ico","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","written_bytes":2940}
{"correlation_id":"01FNQZCHDNK2B4AYDX1NGTBWVT","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"GET","msg":"","time":"2021-11-30T08:29:10Z","uri":"/"}
{"content_type":"text/html; charset=utf-8","correlation_id":"01FNQZCHDNK2B4AYDX1NGTBWVT","duration_ms":1,"host":"gitlab.mypolicy.co.uk:9191","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"https://gitlab.mypolicy.co.uk:9191/","remote_addr":"193.117.129.74:0","remote_ip":"193.117.129.74","route":"","status":502,"system":"http","time":"2021-11-30T08:29:10Z","ttfb_ms":1,"uri":"/","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","written_bytes":2940}
{"correlation_id":"01FNQZCHJ4JF60W3V1ERFKHD21","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"GET","msg":"","time":"2021-11-30T08:29:10Z","uri":"/favicon.ico"}
{"content_type":"text/html; charset=utf-8","correlation_id":"01FNQZCHJ4JF60W3V1ERFKHD21","duration_ms":0,"host":"gitlab.mypolicy.co.uk:9191","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"https://gitlab.mypolicy.co.uk:9191/","remote_addr":"193.117.129.74:0","remote_ip":"193.117.129.74","route":"","status":502,"system":"http","time":"2021-11-30T08:29:10Z","ttfb_ms":0,"uri":"/favicon.ico","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","written_bytes":2940}
grafana
[root@telemetry ~]# sudo gitlab-ctl tail grafana
==> /var/log/gitlab/grafana/state <==
==> /var/log/gitlab/grafana/current <==
2021-11-30_08:22:37.45571 t=2021-11-30T08:22:37+0000 lvl=info msg="Path Home" logger=settings path=/var/opt/gitlab/grafana
2021-11-30_08:22:37.45571 t=2021-11-30T08:22:37+0000 lvl=info msg="Path Data" logger=settings path=/var/opt/gitlab/grafana/data
2021-11-30_08:22:37.45572 t=2021-11-30T08:22:37+0000 lvl=info msg="Path Logs" logger=settings path=/var/log/gitlab/grafana
2021-11-30_08:22:37.45572 t=2021-11-30T08:22:37+0000 lvl=info msg="Path Plugins" logger=settings path=/var/opt/gitlab/grafana/data/plugins
2021-11-30_08:22:37.45572 t=2021-11-30T08:22:37+0000 lvl=info msg="Path Provisioning" logger=settings path=/var/opt/gitlab/grafana/provisioning
2021-11-30_08:22:37.45573 t=2021-11-30T08:22:37+0000 lvl=info msg="App mode production" logger=settings
2021-11-30_08:22:37.45693 t=2021-11-30T08:22:37+0000 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
2021-11-30_08:22:37.45860 t=2021-11-30T08:22:37+0000 lvl=info msg="Starting DB migrations" logger=migrator
2021-11-30_08:22:37.47227 t=2021-11-30T08:22:37+0000 lvl=info msg="Starting plugin search" logger=plugins
2021-11-30_08:22:37.56174 t=2021-11-30T08:22:37+0000 lvl=info msg="HTTP Server Listen" logger=http.server address=127.0.0.1:3000 protocol=http subUrl=/-/grafana socket=
logrotate
[root@telemetry ~]# sudo gitlab-ctl tail logrotate
==> /var/log/gitlab/logrotate/state <==
==> /var/log/gitlab/logrotate/current <==
2021-11-29_12:26:51.65376 Received TERM from runit, sending to process group (-PID)
2021-11-29_13:54:19.93311 Received TERM from runit, sending to process group (-PID)
2021-11-29_13:57:08.11288 Received TERM from runit, sending to process group (-PID)
2021-11-29_14:05:29.53906 Received TERM from runit, sending to process group (-PID)
2021-11-29_14:06:21.51084 Received TERM from runit, sending to process group (-PID)
2021-11-29_14:12:58.75198 Received TERM from runit, sending to process group (-PID)
2021-11-29_14:13:34.21314 Received TERM from runit, sending to process group (-PID)
2021-11-29_16:05:39.26274 Received TERM from runit, sending to process group (-PID)
2021-11-29_16:14:05.80529 Received TERM from runit, sending to process group (-PID)
2021-11-30_08:21:34.12732 Received TERM from runit, sending to process group (-PID)
nginx
[root@telemetry ~]# sudo gitlab-ctl tail nginx
==> /var/log/gitlab/nginx/gitlab_registry_error.log <==
==> /var/log/gitlab/nginx/state <==
==> /var/log/gitlab/nginx/gitlab_registry_access.log <==
78.128.112.18 - - [30/Nov/2021:03:58:17 +0000] "- -" 400 150 "" "-" -
==> /var/log/gitlab/nginx/current <==
==> /var/log/gitlab/nginx/error.log <==
==> /var/log/gitlab/nginx/gitlab_access.log <==
193.117.129.74 - - [30/Nov/2021:08:28:38 +0000] "GET / HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
193.117.129.74 - - [30/Nov/2021:08:28:38 +0000] "GET /favicon.ico HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
193.117.129.74 - - [30/Nov/2021:08:29:10 +0000] "GET / HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
193.117.129.74 - - [30/Nov/2021:08:29:10 +0000] "GET /favicon.ico HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
193.117.129.74 - - [30/Nov/2021:08:29:30 +0000] "GET / HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
193.117.129.74 - - [30/Nov/2021:08:29:30 +0000] "GET /favicon.ico HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
127.0.0.1 - - [30/Nov/2021:08:29:37 +0000] "POST /api/v4/jobs/request HTTP/1.1" 502 24 "" "gitlab-runner 11.11.2 (; go1.8.7; linux/amd64)" -
193.117.129.74 - - [30/Nov/2021:08:30:25 +0000] "GET / HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
193.117.129.74 - - [30/Nov/2021:08:30:25 +0000] "GET /favicon.ico HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
127.0.0.1 - - [30/Nov/2021:08:30:37 +0000] "POST /api/v4/jobs/request HTTP/1.1" 502 24 "" "gitlab-runner 11.11.2 (; go1.8.7; linux/amd64)" -
==> /var/log/gitlab/nginx/gitlab_error.log <==
==> /var/log/gitlab/nginx/access.log <==
==> /var/log/gitlab/nginx/gitlab_access.log <==
193.117.129.74 - - [30/Nov/2021:08:31:02 +0000] "GET / HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
193.117.129.74 - - [30/Nov/2021:08:31:02 +0000] "GET /favicon.ico HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
193.117.129.74 - - [30/Nov/2021:08:31:11 +0000] "GET / HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
193.117.129.74 - - [30/Nov/2021:08:31:11 +0000] "GET /favicon.ico HTTP/2.0" 502 2940 "https://gitlab.mypolicy.co.uk:9191/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -
node-exporter
[root@telemetry ~]# sudo gitlab-ctl tail node-exporter
==> /var/log/gitlab/node-exporter/state <==
==> /var/log/gitlab/node-exporter/current <==
2021-11-30_08:22:37.35806 level=info ts=2021-11-30T08:22:37.358Z caller=node_exporter.go:112 collector=thermal_zone
2021-11-30_08:22:37.35806 level=info ts=2021-11-30T08:22:37.358Z caller=node_exporter.go:112 collector=time
2021-11-30_08:22:37.35808 level=info ts=2021-11-30T08:22:37.358Z caller=node_exporter.go:112 collector=timex
2021-11-30_08:22:37.35808 level=info ts=2021-11-30T08:22:37.358Z caller=node_exporter.go:112 collector=udp_queues
2021-11-30_08:22:37.35809 level=info ts=2021-11-30T08:22:37.358Z caller=node_exporter.go:112 collector=uname
2021-11-30_08:22:37.35809 level=info ts=2021-11-30T08:22:37.358Z caller=node_exporter.go:112 collector=vmstat
2021-11-30_08:22:37.35809 level=info ts=2021-11-30T08:22:37.358Z caller=node_exporter.go:112 collector=xfs
2021-11-30_08:22:37.35810 level=info ts=2021-11-30T08:22:37.358Z caller=node_exporter.go:112 collector=zfs
2021-11-30_08:22:37.35820 level=info ts=2021-11-30T08:22:37.358Z caller=node_exporter.go:191 msg="Listening on" address=localhost:9100
2021-11-30_08:22:37.35822 level=info ts=2021-11-30T08:22:37.358Z caller=tls_config.go:170 msg="TLS is disabled and it cannot be enabled on the fly." http2=false
postgres-exporter
[root@telemetry ~]# sudo gitlab-ctl tail postgres-exporter
==> /var/log/gitlab/postgres-exporter/state <==
==> /var/log/gitlab/postgres-exporter/current <==
2021-11-29_16:14:00.52846 time="2021-11-29T16:14:00Z" level=info msg="Semantic Version Changed on \"/var/opt/gitlab/postgresql:5432\": 0.0.0 -> 12.5.0" source="postgres_exporter.go:1405"
2021-11-29_16:14:00.79395 time="2021-11-29T16:14:00Z" level=info msg="Starting Server: localhost:9187" source="postgres_exporter.go:1672"
2021-11-29_16:16:14.31726 time="2021-11-29T16:16:14Z" level=info msg="Established new database connection to \"/var/opt/gitlab/postgresql:5432\"." source="postgres_exporter.go:878"
2021-11-29_16:16:15.31795 time="2021-11-29T16:16:15Z" level=info msg="Established new database connection to \"/var/opt/gitlab/postgresql:5432\"." source="postgres_exporter.go:878"
2021-11-29_16:16:15.32510 time="2021-11-29T16:16:15Z" level=info msg="Semantic Version Changed on \"/var/opt/gitlab/postgresql:5432\": 0.0.0 -> 12.5.0" source="postgres_exporter.go:1405"
2021-11-29_16:16:15.47123 time="2021-11-29T16:16:15Z" level=info msg="Starting Server: localhost:9187" source="postgres_exporter.go:1672"
2021-11-30_08:22:37.31900 time="2021-11-30T08:22:37Z" level=info msg="Established new database connection to \"/var/opt/gitlab/postgresql:5432\"." source="postgres_exporter.go:878"
2021-11-30_08:22:38.39407 time="2021-11-30T08:22:38Z" level=info msg="Established new database connection to \"/var/opt/gitlab/postgresql:5432\"." source="postgres_exporter.go:878"
2021-11-30_08:22:38.41162 time="2021-11-30T08:22:38Z" level=info msg="Semantic Version Changed on \"/var/opt/gitlab/postgresql:5432\": 0.0.0 -> 12.5.0" source="postgres_exporter.go:1405"
2021-11-30_08:22:38.74087 time="2021-11-30T08:22:38Z" level=info msg="Starting Server: localhost:9187" source="postgres_exporter.go:1672"
postgresql
[root@telemetry ~]# sudo gitlab-ctl tail postgresql
==> /var/log/gitlab/postgresql/state <==
==> /var/log/gitlab/postgresql/current <==
2021-11-30_08:21:35.83051 LOG: received fast shutdown request
2021-11-30_08:21:35.83155 LOG: aborting any active transactions
2021-11-30_08:21:35.83432 LOG: background worker "logical replication launcher" (PID 7415) exited with exit code 1
2021-11-30_08:21:35.83605 LOG: shutting down
2021-11-30_08:21:35.87963 LOG: database system is shut down
2021-11-30_08:22:37.31684 LOG: starting PostgreSQL 12.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit
2021-11-30_08:22:37.31995 LOG: listening on Unix socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"
2021-11-30_08:22:37.39312 LOG: database system was shut down at 2021-11-30 08:21:35 GMT
2021-11-30_08:22:37.39318 FATAL: the database system is starting up
2021-11-30_08:22:37.41975 LOG: database system is ready to accept connections
prometheus
[root@telemetry ~]# sudo gitlab-ctl tail prometheus
==> /var/log/gitlab/prometheus/state <==
==> /var/log/gitlab/prometheus/current <==
2021-11-30_08:22:39.00144 level=info ts=2021-11-30T08:22:39.001Z caller=main.go:735 msg="TSDB started"
2021-11-30_08:22:39.00146 level=info ts=2021-11-30T08:22:39.001Z caller=main.go:861 msg="Loading configuration file" filename=/var/opt/gitlab/prometheus/prometheus.yml
2021-11-30_08:22:39.00283 level=error ts=2021-11-30T08:22:39.002Z caller=manager.go:314 component="discovery manager scrape" msg="Cannot create service discovery" err="unable to load specified CA cert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: open /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: no such file or directory" type=kubernetes
2021-11-30_08:22:39.00286 level=error ts=2021-11-30T08:22:39.002Z caller=manager.go:314 component="discovery manager scrape" msg="Cannot create service discovery" err="unable to load specified CA cert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: open /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: no such file or directory" type=kubernetes
2021-11-30_08:22:39.00288 level=error ts=2021-11-30T08:22:39.002Z caller=manager.go:314 component="discovery manager scrape" msg="Cannot create service discovery" err="unable to load specified CA cert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: open /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: no such file or directory" type=kubernetes
2021-11-30_08:22:39.01202 level=info ts=2021-11-30T08:22:39.011Z caller=main.go:892 msg="Completed loading of configuration file" filename=/var/opt/gitlab/prometheus/prometheus.yml totalDuration=10.52342ms remote_storage=1.833µs web_handler=674ns query_engine=1.573µs scrape=75.135µs scrape_sd=384.337µs notify=37.381µs notify_sd=23.051µs rules=8.836477ms
2021-11-30_08:22:39.01204 level=info ts=2021-11-30T08:22:39.012Z caller=main.go:684 msg="Server is ready to receive web requests."
2021-11-30_08:22:44.01256 level=error ts=2021-11-30T08:22:44.012Z caller=manager.go:188 component="scrape manager" msg="error creating new scrape pool" err="error creating HTTP client: unable to load specified CA cert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: open /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: no such file or directory" scrape_pool=kubernetes-nodes
2021-11-30_08:22:44.01259 level=error ts=2021-11-30T08:22:44.012Z caller=manager.go:188 component="scrape manager" msg="error creating new scrape pool" err="error creating HTTP client: unable to load specified CA cert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: open /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: no such file or directory" scrape_pool=kubernetes-cadvisor
2021-11-30_08:22:44.01264 level=error ts=2021-11-30T08:22:44.012Z caller=manager.go:188 component="scrape manager" msg="error creating new scrape pool" err="error creating HTTP client: unable to load specified CA cert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: open /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: no such file or directory" scrape_pool=kubernetes-pods
Looking through these logs, I think redis doesn’t appear to be working correctly within gitlab.
Regards,
Mike