Unable to start local confluence instance
Asked by Abhishek Eskey:

Hi All,

I am working on the tutorial: [Write a simple Confluence blueprint plugin (atlassian.com)](https://developer.atlassian.com/server/confluence/write-a-simple-confluence-blueprint-plugin/)

I have created a plugin and the prune skeleton using the command :atlas-create-confluence-plugin.

I am using the command atlas-run to start local confluence instance. by going to the url: <http://localhost:1990/confluence>

However, I get HTTP Status 404- Not found.

Could someone please help me solve this problem.

Thanks,

Abhishek Eskey


Answers:
author: Nic Brough -Adaptavist-
body: Network connectivity is not the issue, I'm afraid the previous answers you have had look like they were written by an AI that does not really understand what it is talking about, and obviously has not read your response to its first answer.

A 404 error does indeed mean "the page you have asked for is not there", but you are probably looking in the wrong place.

Your Confluence startup process tells us that Confluence is running under <http://localhost:1990/confluence>

That is probably true, but "localhost" means "this machine", not on the network. So the first thing to look at is where you're trying to access it. Is the browser you are using on the same machine as the Confluence service running on? If it is not, then that's why you get a 404.

If it is, then the next place to look is in the logs. You should find logs under the "target" directory of where you created the plugin code - look for atlassian-confluence.log first and catalina.out second, those are where startup errors usually get logged.

comments: author: Sanjen Bariki
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) ,

Sorry for the misunderstanding or misconception on it.

I was trying to give the best method.

As per the issue, I thought there might be some network issue But Here is nothing to afraid.

Regards,

Sanjen


author: Abhishek Eskey
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

Thank you for your clarification.

I am trying to run confluence on the same machine's browser.

I also tried to access the logs you mentioned in the target folder, but I couldn't find them.

Could you please help me out?

Regards,

Abhishek Eskey


author: Nic Brough -Adaptavist-
body: Sorry, I keep forgetting most of my dev systems are altered in order to create those logs.

You need to be reading the output from "atlas-run" as it compiles and builds your app, then fires up a Confluence.

Some important points:

* That log will end with "Tomcat started" in most cases, but that's the container not Confluence. You're already looking at the right place under /confluence
* It can take a long time to get started
* Before log diving, can you check what you get from just <HTTP://localhost> - does it give you a white page 404, a Tomcat 404, or can't connect to site?
* Make sure you set your terminal to allow a lot of lines to be rolled back - the data you're going to see can be very very long
* Read back through that log until you find "tomcat starting"
* If Tomcat is starting, but Confluence not, you'll need to read further back!


author: Sanjen Bariki
body: Hi [@Abhishek Eskey](/t5/user/viewprofilepage/user-id/5276283) ,

Welcome to Atlassian community!

**HTTP Status 404- Not found. :-**It means server not started.

Could you please stop the server and start again from the service...?

If you did not install the confluence server via service, Please start it from the folder Confluence Installation\\bin **start-confluence.bat.**

If possible, Could you please share the log file..?

log file location:- **C:\\Confluence\\Confluence Home\\logs ( atlassian-confluence.log )**

**Note :- Please check the network connectivity.**

Regards,

Sanjen Bariki

comments: author: Abhishek Eskey
body: Hi [@Sanjen Bariki](/t5/user/viewprofilepage/user-id/5115866) ,

Thank you for your response.

I am getting the below lines in the terminal when I try to run the local Confluence instance:

![Screenshot 2023-07-25 180028.png](https://community.atlassian.com/t5/image/serverpage/image-id/270945i0012277BDC447196/image-size/large?v=v2&px=999 "Screenshot 2023-07-25 180028.png")

Could you please stop the server and start again from the service...? --\> Could you please elaborate on this? I did not understand this step.

Did I miss anything?

I was just followed the steps mentioned in this link [Write a simple Confluence blueprint plugin (atlassian.com)](https://developer.atlassian.com/server/confluence/write-a-simple-confluence-blueprint-plugin/) and got stuck at the 2nd step while running the local instance.

Thanks,

Abhishek Eskey


author: Sanjen Bariki
body: ..


Tags: unknown-hosting-type