Advertisement
Guest User

Gitlab clean uninstall

a guest
Nov 9th, 2021
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. username@servername:~$ sudo gitlab-ctl uninstall
  2. ok: down: logrotate: 1s, normally up
  3. could not find logrotate runit pidfile (service already stopped?), cannot attempt SIGKILL...
  4. ok: down: logrotate: 1s, normally up
  5. Terminating processes running under application users. This will take a few seconds.
  6. Your config files have been backed up to /root/gitlab-cleanse-2021-11-09T20:55.
  7. username@servername:~$ sudo gitlab-ctl cleanse
  8. *******************************************************************
  9. * * * * * * * * * * * STOP AND READ * * * * * * * * * *
  10. *******************************************************************
  11. This command will delete *all* local configuration, log, and
  12. variable data associated with gitlab.
  13.  
  14. You have 60 seconds to hit CTRL-C before configuration,
  15. logs, and local data for this application are permanently
  16. deleted.
  17. *******************************************************************
  18.  
  19. ok: down: logrotate: 0s, normally up
  20. logrotate disabled, not stopping
  21. Terminating processes running under application users. This will take a few seconds.
  22. Your config files have been backed up to /root/gitlab-cleanse-2021-11-09T20:57.
  23. username@servername:~$ sudo gitlab-ctl remove-accounts
  24. Starting Chef Infra Client, version 15.17.4
  25. resolving cookbooks for run list: ["gitlab::remove_accounts"]
  26. Synchronizing Cookbooks:
  27. - gitlab (0.0.1)
  28. - package (0.1.0)
  29. - logrotate (0.1.0)
  30. - postgresql (0.1.0)
  31. - redis (0.1.0)
  32. - monitoring (0.1.0)
  33. - registry (0.1.0)
  34. - mattermost (0.1.0)
  35. - consul (0.1.0)
  36. - gitaly (0.1.0)
  37. - praefect (0.1.0)
  38. - gitlab-kas (0.1.0)
  39. - gitlab-pages (0.1.0)
  40. - letsencrypt (0.1.0)
  41. - nginx (0.1.0)
  42. - runit (5.1.3)
  43. - acme (4.1.3)
  44. - crond (0.1.0)
  45. Installing Cookbook Gems:
  46. Compiling Cookbooks...
  47. Converging 16 resources
  48. Recipe: gitlab::remove_accounts
  49. * account[git] action remove
  50. * linux_user[git] action remove
  51. - remove user git
  52.  
  53. * account[gitlab-www] action remove
  54. * linux_user[gitlab-www] action remove
  55. - remove user gitlab-www
  56.  
  57. * account[gitlab-redis] action remove
  58. * linux_user[gitlab-redis] action remove
  59. - remove user gitlab-redis
  60.  
  61. * account[gitlab-psql] action remove
  62. * linux_user[gitlab-psql] action remove
  63. - remove user gitlab-psql
  64.  
  65. * account[mattermost] action remove
  66. * linux_user[mattermost] action remove (up to date)
  67. (up to date)
  68. * account[registry] action remove
  69. * linux_user[registry] action remove (up to date)
  70. (up to date)
  71. * account[gitlab-prometheus] action remove
  72. * linux_user[gitlab-prometheus] action remove
  73. - remove user gitlab-prometheus
  74.  
  75. * account[gitlab-consul] action remove
  76. * linux_user[gitlab-consul] action remove (up to date)
  77. (up to date)
  78. * account[git] action remove
  79. * group[git] action remove (up to date)
  80. (up to date)
  81. * account[gitlab-www] action remove
  82. * group[gitlab-www] action remove (up to date)
  83. (up to date)
  84. * account[gitlab-redis] action remove
  85. * group[gitlab-redis] action remove (up to date)
  86. (up to date)
  87. * account[gitlab-psql] action remove
  88. * group[gitlab-psql] action remove (up to date)
  89. (up to date)
  90. * account[mattermost] action remove
  91. * group[mattermost] action remove (up to date)
  92. (up to date)
  93. * account[registry] action remove
  94. * group[registry] action remove (up to date)
  95. (up to date)
  96. * account[gitlab-consul] action remove
  97. * group[gitlab-consul] action remove (up to date)
  98. (up to date)
  99. * account[gitlab-prometheus] action remove
  100. * group[gitlab-prometheus] action remove (up to date)
  101. (up to date)
  102.  
  103. Running handlers:
  104. Running handlers complete
  105. Chef Infra Client finished, 10/32 resources updated in 07 seconds
  106. username@servername:~$ sudo dpkg -P gitlab-ee
  107. (Reading database ... 204680 files and directories currently installed.)
  108. Removing gitlab-ee (14.4.2-ee.0) ...
  109. Purging configuration files for gitlab-ee (14.4.2-ee.0) ...
  110. dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/sv' not empty so not removed
  111. dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/init' not empty so not removed
  112. dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/etc' not empty so not removed
  113. dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/embedded/ssl/certs' not empty so not removed
  114. dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/embedded/service/gitlab-shell' not empty so not removed
  115. dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/embedded/service/gitlab-rails/public' not empty so not removed
  116. dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/embedded/service/gitlab-rails/config' not empty so not removed
  117. dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/embedded/cookbooks' not empty so not removed
  118. username@servername:~$ sudo rm /opt/gitlab -rI
  119. rm: remove 1 argument recursively? y
  120. username@servername:~$ sudo rm /var/opt/gitlab -rI
  121. rm: remove 1 argument recursively? y
  122. rm: cannot remove '/var/opt/gitlab': No such file or directory
  123. username@servername:~$ sudo rm /etc/gitlab -rI
  124. rm: remove 1 argument recursively? y
  125. rm: cannot remove '/etc/gitlab': No such file or directory
  126. username@servername:~$ ls /var/log/gitlab
  127. reconfigure
  128. username@servername:~$ ls /var/log/gitlab/reconfigure/
  129. 1636491516.log
  130. username@servername:~$ sudo mv /var/log/gitlab/reconfigure/ ~/gitlab-setup/
  131. username@servername:~$ sudo rm /var/log/gitlab -rI
  132. rm: remove 1 argument recursively? y
  133. username@servername:~$ sudo reboot
  134.  
  135.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement