Reputation: 321
My gitlab-runner service is not running no matter what I do. I used to have same problem before and when I used to update, and it used to start running but now it’s not starting at all.
I have uninstalled and then again installed it’s still the same. I guess I am not uninstalling/removing completely. How to uninstall gitlab runner completely or how to start service?
I also don’t get home dir of gitlab-runner. when I say gitlab-runner list I get following config details.
ConfigFile=/home/rohith/.gitlab-runner/config.toml
but I try cd to gitlab-runner user dir I don't find the dir at all.
Upvotes: 19
Views: 58899
Reputation: 4291
If you install gitlab runner binary on Ubuntu 20.04 you can uninstall it completely by run below commands:
# Stop and remove the service
sudo gitlab-runner stop
sudo gitlab-runner uninstall
sudo systemctl daemon-reload
# Remove gitlab-runner files and config
sudo rm -rf /usr/local/bin/gitlab-runner
sudo userdel gitlab-runner
sudo rm -rf /home/gitlab-runner/
Upvotes: 77
Reputation: 720
For Ubuntu/Debian users, newer versions of gitlab-runner
on Ubuntu are managed via a .deb
file, so this should do the trick:
sudo apt remove gitlab-runner
Upvotes: 3
Reputation: 57
first:
sudo apt remove gitlab-runner
rm -rf /var/opt/gitlab
Kill all process:
pkill -f gitlab
then:
rm -rf /opt/gitlab rm -rf /etc/gitlab rm -rf /var/opt/gitlab
Upvotes: -1