How to access setup when localhost is not available

So, I am attempting a setup of Confluence on linux.  Unfortunately it seems the documentation is not only confusing, but conflicting as well.

So I setup the install using the "best practice" instructions on Linux.  However, I do not have a GUI installed on the Ubuntu server.  So I can't access the initial setup page using localhost.

I went and changed the server.xml to change it using the "<Host name="... settings to the server name I wanted.  I made a dns entry.  However, when I attempt to access it at I just get a time out.

Also, setting up this way doesn't appear to give me any logs either.  How in the world am I supposed to know what is going on?  Is it even running?

Thanks for any help you can provide.

1 answer

1 accepted

1 vote
Accepted answer

There's a simple check for what is running - try, on the server, curl localhost or wget localhost.  That should get you an html file which is what a browser would render if it could connect.  If that does not give you a setup page, it should give you an error message to work with.

Also, you do have logs - confluence-home/log is the place to look.  If there's nothing in there, then the application isn't even starting, and you'll want to look in confluence-install/logs to see why Tomcat can't start it.

Thanks nic for that info.  It helped, a lot!  I am making progress...

I was able to discover that it was not running.  So I logged in as the dedicated user and ran the script manually.  That did get the tomcat server running.  I was able to work through the errors I found in the logs.

Now when I use the wget it shows it is connecting.  So how do I get it to respond on another host name other than localhost?

I changed the server.xml (2 variables there), and when I do a wget from the server using localhost or the new host name it responds.  However do this from another machine and I get a connection timed out.  Any ideas?

Keep it simple on the next step - don't change the settings initially, you know it's on (say) localhost:8080, so , from a remote machine, try <ip address of server>:8080 - what does that do?

Figured it out.  Discovered UFW was installed and blocking port 8090.  Added a new rule and bam!  I would have posted sooner, but I don't have enough upvotes to post for 24 hours.  lol.

Thanks again Nic!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,253 views 86 8
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