Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

404 error when attempting to access Confluence

Justin Jacobs
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 13, 2017

Hello!

We have had Confluence successfully running on an Amazon EC2 instance for several months (running Amazon Linux).  I recently used CloudWatch/Lambda to schedule start/stop times for the instance so that it is only available during business hours.  I also followed this guide so that Confluence starts automatically when the instance starts:

https://confluence.atlassian.com/doc/start-confluence-automatically-on-linux-183148.html

After restart the service does indeed start but when I navigate to the server's address I receive a 404 error, page not found.  I get the same error when navigating via the server's elastic IP address.

Running a 'wget' on the server produces this:

wget http://localhost:8090
--2017-04-13 21:55:16--  http://localhost:8090/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8090... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-04-13 21:55:16 ERROR 404: Not Found.

I undid the steps outlined in the above article and tried starting Confluence via the start-confluence.sh script, it starts successfully but I am still unable to access it in my browser:

 

Server startup logs are located in /home/ec2-user/atlassian/confluence/logs/catalina.out
Using CATALINA_BASE:   /home/ec2-user/atlassian/confluence
Using CATALINA_HOME:   /home/ec2-user/atlassian/confluence
Using CATALINA_TMPDIR: /home/ec2-user/atlassian/confluence/temp
Using JRE_HOME:        /home/ec2-user/atlassian/confluence/jre/
Using CLASSPATH:       /home/ec2-user/atlassian/confluence/bin/bootstrap.jar:/home/ec2-user/atlassian/confluence/bin/tomcat-juli.jar
Using CATALINA_PID:    /home/ec2-user/atlassian/confluence/work/catalina.pid
Tomcat started.

I am afraid that I have exhausted my ability to troubleshoot this by myself.  I am hoping someone can help me.  I have all the logs and can provide any additional information that may be helpful.

1 answer

1 vote
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2017

 

 

Here is where I would start:

  • Open the log at <Confluence_Home>logs/atlassian-confluence.log 
    (The <confluence_home> directory is the path defined in the following file: <confluence_install>/confluence/WEB-INF/classes/confluence-init.properties)
  • Search for "Starting Confluence"
    scroll down past the initial startup messages, which include system info and a list of plugins
    look for entries that start with ERROR
  • Do the same with the <Confluence_Install>/logs/catalina.out.

If you find anything you think is suspicious, go ahead and update us here in the Community.

If you still need help, consider opening a request at https://getsupport.atlassian.com so someone can take a comprehensive look.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events