Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to stop bitbucket instance getting the error No process was found for PID Edited

Hi there,

I am unable to stop my bitbucket instance: while i try to stop the bitbucket instance its showing below error: 

 

[****user@****Linux bin]$ ./stop-bitbucket.sh
Stopping Atlassian Bitbucket as the current user
No process was found for PID 123781, or the current user cannot signal it

No PID file was found for bundled Elasticsearch

Its a test Environment and no external database are configured.

Could you please suggest a way to stop the instance.

 

Thanks,

Sebastian 

 

3 answers

1 accepted

0 votes
Answer accepted

Hi,

I have resolved this issue by executing the command lsof -i:7990 for finding the Bitbucket process id and then kill the bitbucket process by executing the command kill -9 <process id>

Jimmy Seddon Community Leader May 30, 2019

I'm glad you were able to figure out how to resolve your issue.

0 votes
Jimmy Seddon Community Leader May 24, 2019

Hi @mail2sebastianpeter,

Since it's complaining about Elasticsearch and as you have said this is a test server, I'd recommend:

ps -ef | grep Elasticsearch

to get the process id that Elasticsearch is running as, then kill -9 against that process id to get it to terminate the search process.  Then try running the ./stop-bitbucket.sh again.

If you run into a simialar error with the bitbucket server proces repeat the same steps again for the bitbucket server process and that should shut things down.

I hope that helps!

-James

Hi @Jimmy Seddon 

As you suggested I have run ps -ef | grep Elasticsearch and the output is given below but when I terminate the process 36297 then the putty will terminate. Do I need to kill the process 81292 instead of 36297?

 

[build***@**TestLinux bin]$ ps -ef | grep Elasticsearch

build**+  36520  36297  0 10:50 pts/0    00:00:00 grep --color=auto Elasticsearch

build***+  81292      1  0  2018 ?        06:15:02 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0 

 

Thanks,

Sebastian

Jimmy Seddon Community Leader May 27, 2019

Hi @mail2sebastianpeter,

Yes looking at the output it looks like 36297 was the pid of the process that was running when you ran grep looking for Elasticsearch.

81292 looks like an instance of Java which is more likely to be something that Atlassian is running.

Try killing that and see if that helps.

-James

Hi @Jimmy Seddon 

I have tried kill as you suggested but that wont help below are the result after kill

[root@**TestLinux bin]# ./stop-bitbucket.sh
Stopping Atlassian Bitbucket as the current user
No process was found for PID 123781, or the current user cannot signal it

No PID file was found for bundled Elasticsearch
[root@**TestLinux bin]# ps -ef | grep Elasticsearch
root 72298 59155 0 15:32 pts/0 00:00:00 grep --color=auto Elasticsearch

I believe its a permission issue.Can you switch to sudo and do this?

Hi @sara 

I tried with Sudo also but again the same message is coming.

I'm also coming across the same issue. 

ps -ef | grep Elasticsearch
svc_scm+ 42724 35758 0 10:20 pts/0 00:00:00 grep --color=auto Elasticsearch
svc_scm+ 87181 1 0 Aug29 ?

kill -9 35758
Killed

./stop-bitbucket.sh
Stopping Atlassian Bitbucket as the current user
No process was found for PID 110517, or the current user cannot signal it

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,849 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you