I've been trying to migrate from an outdated sonar installation to a newer SonarQube, version 5.1.2. The application is running on a Solaris platform and supported by an Oracle database.
Most everything works fine, except for the source code not being shown for any source file, in any context.
Any request to */api/sources/lines?uuid=...&from=1&to=1000 results in a 404, with a json object containing the following message:
"File '...' has no sources"
I've tried running the analysis from our Hudson server and from maven, with the same results. After having browsed the web for a few hours and found no question with the same symptoms, I'm turning to SO for help. In all the topics I've read, either the analysis doesn't run (e.g. Unable to run analysis on SonarQube 5.1) or the code is shown for some issues and not for others (e.g. Sonarqube Javascript Coverage doesn't show source files).
Out of sheer lassitude, I've tried installing the exact same version of SonarQube (5.1.2, same zip file as extracted on solaris), with the same configuration on my local machine (running Linux). The only differences are:
- the supporting OS (Solaris / Linux)
- the database (Oracle / H2)
- the JDK (although both are oracle's 1.8.0_45)
To my dismay, it works perfectly fine.
I've enabled DEBUG logs on the server and haven't been able to get any further details on how / why the elasticsearch index isn't finding the source for our projects.
Any information regarding how I can investigate further on this issue would be welcome.
Projects must be analyzed again when upgrading from (very) old versions such as 3.2. That should bring display of sources back.