Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 10719  / 2 Years ago, wed, november 2, 2022, 1:57:37

I am trying to uninstall logstash, but sudo apt-get remove logstash fails because the user is being used by a process. If I try to manually delete the logstash user, I cannot because even when I kill the process, a new one immediately pops up. For example, if I check for processes using logstash:



ps -fp $(pgrep -u logstash)


I get



UID        PID  PPID  C STIME TTY          TIME CMD
logstash 17376 1 99 10:04 ? 00:00:10 /usr/bin/java -Djava.io.tmpdir=/


Then I try to kill the process and delete the user:



sudo killall -KILL -u logstash
sudo userdel logstash


But now logstash is already being used by another process:



userdel: user logstash is currently used by process 17794


How can I delete the logstash user?


More From » users

 Answers
2

First simply remove entire dir /opt/logstash sudo rm -rf /opt/logstash/ and then try to remove logstash with sudo apt-get remove logstash


[#25513] Thursday, November 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
unsmmoth

Total Points: 72
Total Questions: 113
Total Answers: 95

Location: Thailand
Member since Tue, Oct 6, 2020
4 Years ago
;