aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-docs/src/pages/setup/troubleshooting.md
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-09-27 16:59:40 +0200
committersonartech <sonartech@sonarsource.com>2018-10-03 09:28:21 +0200
commit4e20e6a9ff7014608708040b3e082011da6a3631 (patch)
tree22a212967ac0393d7db35250087ced91d5d45c5c /server/sonar-docs/src/pages/setup/troubleshooting.md
parent47901d1f6ef2aebc0f72972fccf3d680ea9d2a7d (diff)
downloadsonarqube-4e20e6a9ff7014608708040b3e082011da6a3631.tar.gz
sonarqube-4e20e6a9ff7014608708040b3e082011da6a3631.zip
MMF-1458 Port SONAR-space docs to embedded docs
Diffstat (limited to 'server/sonar-docs/src/pages/setup/troubleshooting.md')
-rw-r--r--server/sonar-docs/src/pages/setup/troubleshooting.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/server/sonar-docs/src/pages/setup/troubleshooting.md b/server/sonar-docs/src/pages/setup/troubleshooting.md
new file mode 100644
index 00000000000..2c849fbb91b
--- /dev/null
+++ b/server/sonar-docs/src/pages/setup/troubleshooting.md
@@ -0,0 +1,43 @@
+---
+title: Troubleshooting
+url: /setup/troubleshooting/
+---
+
+<!-- sonarqube -->
+
+## Checking the logs
+
+If you're having trouble starting your server for the first time (or any subsequent time!) the first thing to do is check your server logs. You'll find them in `$SONARQUBE_HOME/logs`:
+
+* sonar.log - Log for the main process. Holds general information about startup and shutdown. You'll get overall status here but not details. Look to the other logs for that.
+* web.log - Information about initial connection to the database, database migration and reindexing, and the processing of HTTP requests. This includes database and search engine logs related to those requests.
+* ce.log - Information about background task processing and the database and search engine logs related to those tasks.
+* es.log - Ops information from the search engine, such as Elasticsearch startup, health status changes, cluster-, node- and index-level operations, etc.
+
+## Understanding the logs
+
+When there's an error, you'll very often find a stacktrace in the logs. If you're not familiar stacktraces, they can be intimidatingly tall walls of incomprehensible text. As a sample, here's a fairly short one:
+
+```
+java.lang.IllegalStateException: Unable to blame file **/**/foo.java
+ at org.sonarsource.scm.git.JGitBlameCommand.blame(JGitBlameCommand.java:128)
+ at org.sonarsource.scm.git.JGitBlameCommand.access$000(JGitBlameCommand.java:44)
+ at org.sonarsource.scm.git.JGitBlameCommand$1.call(JGitBlameCommand.java:112)
+ at org.sonarsource.scm.git.JGitBlameCommand$1.call(JGitBlameCommand.java:109)
+ at java.util.concurrent.FutureTask.run(Unknown Source)
+ at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
+ at java.lang.Thread.run(Unknown Source)
+Caused by: java.lang.NullPointerException
+ at org.eclipse.jgit.treewalk.filter.PathFilter.create(PathFilter.java:77)
+ at org.eclipse.jgit.blame.BlameGenerator.<init>(BlameGenerator.java:161)
+ at org.eclipse.jgit.api.BlameCommand.call(BlameCommand.java:203)
+ at org.sonarsource.scm.git.JGitBlameCommand.blame(JGitBlameCommand.java:126)
+ ... 7 more
+```
+
+Unless you wrote the code that produced this error, you really only care about:
+* the first line, which ought to have a human-readable message after the colon. In this case, it's Unable to blame file `**/**/foo.java`
+* and any line that starts with `Caused by:`. There are often several `Caused by` lines, and indentation makes them easy to find as you scroll through the error. Be sure to read each of these lines. Very often one of them - the last one or next to last one - contains the real problem.
+
+<!-- /sonarqube -->