Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- username@servername:~$ sudo gitlab-ctl uninstall
- ok: down: logrotate: 1s, normally up
- could not find logrotate runit pidfile (service already stopped?), cannot attempt SIGKILL...
- ok: down: logrotate: 1s, normally up
- Terminating processes running under application users. This will take a few seconds.
- Your config files have been backed up to /root/gitlab-cleanse-2021-11-09T20:55.
- username@servername:~$ sudo gitlab-ctl cleanse
- *******************************************************************
- * * * * * * * * * * * STOP AND READ * * * * * * * * * *
- *******************************************************************
- This command will delete *all* local configuration, log, and
- variable data associated with gitlab.
- You have 60 seconds to hit CTRL-C before configuration,
- logs, and local data for this application are permanently
- deleted.
- *******************************************************************
- ok: down: logrotate: 0s, normally up
- logrotate disabled, not stopping
- Terminating processes running under application users. This will take a few seconds.
- Your config files have been backed up to /root/gitlab-cleanse-2021-11-09T20:57.
- username@servername:~$ sudo gitlab-ctl remove-accounts
- Starting Chef Infra Client, version 15.17.4
- resolving cookbooks for run list: ["gitlab::remove_accounts"]
- Synchronizing Cookbooks:
- - gitlab (0.0.1)
- - package (0.1.0)
- - logrotate (0.1.0)
- - postgresql (0.1.0)
- - redis (0.1.0)
- - monitoring (0.1.0)
- - registry (0.1.0)
- - mattermost (0.1.0)
- - consul (0.1.0)
- - gitaly (0.1.0)
- - praefect (0.1.0)
- - gitlab-kas (0.1.0)
- - gitlab-pages (0.1.0)
- - letsencrypt (0.1.0)
- - nginx (0.1.0)
- - runit (5.1.3)
- - acme (4.1.3)
- - crond (0.1.0)
- Installing Cookbook Gems:
- Compiling Cookbooks...
- Converging 16 resources
- Recipe: gitlab::remove_accounts
- * account[git] action remove
- * linux_user[git] action remove
- - remove user git
- * account[gitlab-www] action remove
- * linux_user[gitlab-www] action remove
- - remove user gitlab-www
- * account[gitlab-redis] action remove
- * linux_user[gitlab-redis] action remove
- - remove user gitlab-redis
- * account[gitlab-psql] action remove
- * linux_user[gitlab-psql] action remove
- - remove user gitlab-psql
- * account[mattermost] action remove
- * linux_user[mattermost] action remove (up to date)
- (up to date)
- * account[registry] action remove
- * linux_user[registry] action remove (up to date)
- (up to date)
- * account[gitlab-prometheus] action remove
- * linux_user[gitlab-prometheus] action remove
- - remove user gitlab-prometheus
- * account[gitlab-consul] action remove
- * linux_user[gitlab-consul] action remove (up to date)
- (up to date)
- * account[git] action remove
- * group[git] action remove (up to date)
- (up to date)
- * account[gitlab-www] action remove
- * group[gitlab-www] action remove (up to date)
- (up to date)
- * account[gitlab-redis] action remove
- * group[gitlab-redis] action remove (up to date)
- (up to date)
- * account[gitlab-psql] action remove
- * group[gitlab-psql] action remove (up to date)
- (up to date)
- * account[mattermost] action remove
- * group[mattermost] action remove (up to date)
- (up to date)
- * account[registry] action remove
- * group[registry] action remove (up to date)
- (up to date)
- * account[gitlab-consul] action remove
- * group[gitlab-consul] action remove (up to date)
- (up to date)
- * account[gitlab-prometheus] action remove
- * group[gitlab-prometheus] action remove (up to date)
- (up to date)
- Running handlers:
- Running handlers complete
- Chef Infra Client finished, 10/32 resources updated in 07 seconds
- username@servername:~$ sudo dpkg -P gitlab-ee
- (Reading database ... 204680 files and directories currently installed.)
- Removing gitlab-ee (14.4.2-ee.0) ...
- Purging configuration files for gitlab-ee (14.4.2-ee.0) ...
- dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/sv' not empty so not removed
- dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/init' not empty so not removed
- dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/etc' not empty so not removed
- dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/embedded/ssl/certs' not empty so not removed
- dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/embedded/service/gitlab-shell' not empty so not removed
- dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/embedded/service/gitlab-rails/public' not empty so not removed
- dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/embedded/service/gitlab-rails/config' not empty so not removed
- dpkg: warning: while removing gitlab-ee, directory '/opt/gitlab/embedded/cookbooks' not empty so not removed
- username@servername:~$ sudo rm /opt/gitlab -rI
- rm: remove 1 argument recursively? y
- username@servername:~$ sudo rm /var/opt/gitlab -rI
- rm: remove 1 argument recursively? y
- rm: cannot remove '/var/opt/gitlab': No such file or directory
- username@servername:~$ sudo rm /etc/gitlab -rI
- rm: remove 1 argument recursively? y
- rm: cannot remove '/etc/gitlab': No such file or directory
- username@servername:~$ ls /var/log/gitlab
- reconfigure
- username@servername:~$ ls /var/log/gitlab/reconfigure/
- 1636491516.log
- username@servername:~$ sudo mv /var/log/gitlab/reconfigure/ ~/gitlab-setup/
- username@servername:~$ sudo rm /var/log/gitlab -rI
- rm: remove 1 argument recursively? y
- username@servername:~$ sudo reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement