Implement DevOps culture and repository management solutions

©

www.packt.com

Packt.com

www.packt.com [email protected]

www.packt.com

authors.packtpub.com

(High

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

Chapter 7

Chapter 8

Chapter 9

Chapter 10

Chapter 11

Chapter 12

Chapter 13

Chapter 14

Chapter 15

Chapter 16

Chapter 17

Chapter 18

Chapter 19

Chapter 20

Chapter 21

Chapter 22

www.packt.com www.packtpub.com/support

www.packt.com

https://github.com/ PacktPublishing/Mastering-GitLab-12

https://github.com/PacktPublishing/

http://bit.ly/2KirIoO

https://static.packt-cdn.com/downloads/ 9781789531282_ColorImages.pdf

CodeInText /usr/local/www

server { listen 8080; server_name localhost;

server { server_name localhost;

[email protected]

www.packtpub.com/support/errata

[email protected]

authors.packtpub.com

packt.com



Chapter 1 Chapter 2 Chapter 3 Chapter 4 

https://github.com/ PacktPublishing/Mastering-GitLab-12/tree/master/Chapter01Readme.md

https:// about.gitlab.com/. https://news. ycombinator.com/itemid=4428278

• CI/CD • Project Issue Board • Mattermost integrations • Time tracking • GitLab pages • Maven and NPM repository functionality • Protected environments • Burndown charts • Multiple LDAP servers and Active Directory support

• All security scanning tools • Epics • Free guest users • Web terminal for the web IDE

awksed

error.logaccess.log /var/log// /var/log//nginx

2019/09/08 20:45:14 [crit] 2387#2387: *95 connect() to unix:/var/www/gitlab-app/tmp/sockets/unicorn.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /-/metrics HTTP/1.1", upstream: "http://unix:/var/www/gitlab-app/tmp/sockets/unicorn.sock:/-/metrics", host: "127.0.0.1:8080"

https://rack.github.io

Timeouts in Unicorn logs unicorn_stderr.log

https:// github.com/jahio/unicorn-status

unicorn_status.rb ../.socket10

Unicorn processes disappear

dmesg | egrep -i 'killed process'

Other kinds of errors or 100% CPU load strace

sudo gdb -p (PID) call (void) rb_backtrace() /var/log/gitlab/unicorn/unicorn_stderr.log

detachq

https://github.com/mperham/sidekiq/wiki

Sidekiq processes disappear

dmesg | egrep -i 'killed process'

A Sidekiq process is seemingly doing nothing

/var/log/gitlab/sidekiq/current

{"severity":"INFO","time":"2019-06 23T19:00:14.493Z","class":"RemoteMirrorNotificationWorker","retry":3,"queue ":"remote_mirror_notification","jid":"69eb806bfb66b82315bcb249","created_at ":"2019-06-23T19:00:14.461Z","correlation_id":"toX0HnYW0s9","enqueued_at":" 2019-06-23T19:00:14.461Z","pid":471,"message":"RemoteMirrorNotificationWork er JID-69eb806bfb66b82315bcb249: done: 0.03 sec","job_status":"done","duration":0.03,"completed_at":"2019-06-23T19:00:1 4.493Z"}

Other kind of errors or 100% CPU load

sudo gdb -p (PID) call (void) rb_backtrace() /var/log/gitlab/sidekiq/current

2018-09-21_19:55:03.48430 from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/redis-3.3.5/lib/redis /connection/ruby.rb:83:in `_read_from_socket' 2018-09-21_19:55:03.48431 from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/redis-3.3.5/lib/redis /connection/ruby.rb:87:in `rescue in _read_from_socket' 2018-09-21_19:55:03.48432 from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/redis-3.3.5/lib/redis /connection/ruby.rb:87:in `select'

_read_from _socket detach

strace -p

git-http

https://gitlab.com/gitlab-org/ gitlab-shell

Chapter 2

/var/log/gitlab/gitlab-shell/gitlab-shell.log

/home/git/gitlab-shell/gitlab-shell.log

git pushgit pull

failed

production.log

https://github.com/PacktPublishing/ Mastering-GitLab-12/tree/master/Chapter01/InstallingRedis.md

redis-cli

set get

set get

rpushlpush

sadd smembers

gitlab-workhorse gitlab-shell

https://gitlab.com/gitlab-org/ gitaly.