upgraded confluence from 6.0.4 to 6.7.3, now will not start
Asked by Irshad Sheik:

ive run an upgrade on the production server, now i cannot get confluence to relaunch, cannot find page, checked all config files, linux installation


Answers:
author: Nic Brough -Adaptavist-
body: What do the logs say the problem is?

comments: author: Irshad Sheik
body: ive gone through all the logs and cant see anything myself, i may be missing something


author: Nic Brough -Adaptavist-
body: The only time you won't get a log file that tells you what is going wrong is if the installation is so damaged, it can't start, in which case, you will see errors when running the start-up script.

There is a reason in your logs, you will need to find it (it will usually be at the end of atlassian-confluence.log or catalina.out if Confluence is not starting at all)


author: Irshad Sheik
body: ok so looking at the atlassian-confluence.log file, i see lots of errors,

018-05-14 07:37:44,202 WARN \[http-nio-8090-exec-54\] \[confluence.impl.vcache.SynchronousExternalCache\] lambda$get$7 Failed to read entry from cache 'com.atlassian.confluence.security.login.DefaultLoginManager': Failed due to UNCLASSIFIED_FAILURE  
-- url: /login.action \| traceId: 1530c06c858855ae \| userName: anonymous \| action: login  
2018-05-14 07:37:44,221 WARN \[http-nio-8090-exec-54\] \[confluence.impl.vcache.SynchronousExternalCache\] lambda$get$7 Failed to read entry from cache 'com.atlassian.confluence.security.login.DefaultLoginManager': Failed due to UNCLASSIFIED_FAILURE  
-- url: /login.action \| traceId: 1530c06c858855ae \| userName: anonymous \| action: login


author: Irshad Sheik
body: this is a linux install as i mentioned, so navigating via putty interface, what would be my best way forward? can this be fixed or must restore from a backup, im not a linux expert, so restoring from the backup will be something new for me


author: Irshad Sheik
body: these are the last 3 lines in the log file

2018-05-14 08:59:48,909 ERROR \[http-nio-8090-exec-54\] \[confluence.servlet.download.ExportDownload\] getStreamForDownload Unauthorized attempt to access resource by null. For more detail turn on INFO level logging for package : com.atlassian.confluence.servlet.download  
-- url: /download/temp/pdfexport-20180510-100518-1441-3661/H2CP-Howtoaddcommentstoatask-100518-1441-3662.pdf \| traceId: c1b4c04b776873f1 \| userName: anonymous  
2018-05-14 09:00:18,184 INFO \[localhost-startStop-2\] \[atlassian.plugin.manager.DefaultPluginManager\] shutdown Preparing to shut down the plugin system  
2018-05-14 09:00:18,221 INFO \[localhost-startStop-2\] \[atlassian.plugin.manager.DefaultPluginManager\] shutdown Shutting down the plugin system


author: Irshad Sheik
body: when trying to run the command ' sudo start-confluence.sh' the error is unable to resolve host name, any idea what could be casuing this?


author: Nic Brough -Adaptavist-
body: A broken network setup probably. Could you show us the full error?


author: Irshad Sheik
body: operations@ChaseJiraAndWiki:/opt/confluence/bin$ sudo start-confluence.sh  
sudo: unable to resolve host ChaseJiraAndWiki  
sudo: start-confluence.sh: command not found


author: Nic Brough -Adaptavist-
body: Your /etc/hosts and/or etc/hostname are incorrect and need fixing

When starting Confluence, you need to run the start-confluence.sh explicitly unless it's in the path.


author: Irshad Sheik
body: had a look at the host file and hostname file, all is well and as it should, so we going to attempt a server restart after hours so see if that resolves that issue


Tags: confluence-server

server