Running Confluence on a mac - having errors


Yes, I know that running a local version of Confluence on a mac is not supported, but I hope someone can help.

When I installed Confluence I followed the instructions on this page to theletter

Each time I try to start confluence I get the error.

Existing PID file found during start.
Tomcat appears to still be running with PID XXX. Start aborted.

When I try to stop confluence I get the error.

Tomcat did not stop in time. PID file was not removed.

I have tried restarting the mac and then I can start it, but it comes back again.

In my Conf Install Directory, the only log is the Catalina log that has this nasty looking error message

27/09/2012 11:36:56 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.log4j.helpers.ThreadLocalMap] (value [org.apache.log4j.helpers.ThreadLocalMap@528c4c14]) and a value of type [java.util.Hashtable] (value [{url=/homepage.action, userName=jodiem}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
27/09/2012 11:36:57 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8090

Any ideas as to what the issue is? Or which logs would help to discover what the issue is?

7 answers

1 accepted

This widget could not be displayed.

Delete the PID manually and try to start, at times on mac if it takes too long to stop the process itself is aborted and PID remains and that's what causes the error you mentioned.

Thanks for the answer, can you tell me how I find and delete the PID. I googled it but could not find much.

If you are running confluence standalone it would under work directory inside the install directory file name is

This widget could not be displayed.

OK, so I can now delete the PID file, but I am still having issues show up in the log file.

27/09/2012 3:23:53 PM org.apache.catalina.core.StandardService initialize
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8090]]
LifecycleException:  Protocol handler initialization failed: Address already in use <null>:8090

So, does that mean that something is not shutting down properly and freeing up the port?

This widget could not be displayed.

At times you run in to such issues, it ain't that well supported on mac, I run confluence on mac and it works pretty well, so in this case kill the process holding the port and than try to start and ensure no one else is holding the same port.

This widget could not be displayed.

Yep, so even after I use the shut down command, the port is still open.

Doing sudo lsof -i -P | grep -i "listen"

shows me that 8090 is still open by Java.

(I have no idea if this is meant to be the way it works).

This widget could not be displayed.

So I killed the process and then restarted and it seemed to start fine. So that's one problem.

Now, trying to get to localhost:8090 just sits there forever.

I have no idea how to get this working.

This widget could not be displayed.

that's funny, do you see something in logs ?

This widget could not be displayed.

I looked for the port again and it was not there. So I just killed everything, restarted everythign and now it seems to work fine. So I now know how to recover and restart at least. Thanks for your help!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

341 views 2 5
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you