Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3448

Sonar fails to start if the sonar.jdbc.* properties are encrypted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0.1, 3.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      WinXP SP2

      Description

      To reproduce the issue on Windows XP:

      1. Start a standalone version of Sonar 3.0+
      2. Generate a secret key and place the "sonar-secret.txt" file in "~/.sonar"
      3. Restart Sonar and encrypt the string "sonar"
      4. Put the encrypted string in the "sonar.properties" file, for the "sonar.jdbc.password" key
      5. Restart Sonar => it fails with the following stacktrace:
      INFO   | jvm 1    | 2012/04/27 17:10:23 | org.jruby.rack.RackInitializationException: syntax error on line 4, col -1: `'
      |?from file:/D:/sonar/sonar-3.0/war/sonar-server/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/yaml.rb:134:in `load'
      |?from D:/sonar/sonar-3.0/war/sonar-server/WEB-INF/config/../vendor/rails/railties/lib/initializer.rb:902:in `database_configuration'
      |?from D:/sonar/sonar-3.0/war/sonar-server/WEB-INF/config/../vendor/rails/railties/lib/initializer.rb:437:in `initialize_database'
      |?from D:/sonar/sonar-3.0/war/sonar-server/WEB-INF/config/../vendor/rails/railties/lib/initializer.rb:141:in `process'
      |?from org/jruby/RubyKernel.java:2052:in `send'
      |?from D:/sonar/sonar-3.0/war/sonar-server/WEB-INF/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
      |?from D:/sonar/sonar-3.0/war/sonar-server/WEB-INF/config/environment.rb:23:in `(root)'
      |?from org/jruby/RubyKernel.java:1063:in `load'
      |?from D:/sonar/sonar-3.0/war/sonar-server/WEB-INF/config/environment.rb:53:in `load_environment'
      |?from file:/D:/sonar/sonar-3.0/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:46:in `to_app'
      |?from file:/D:/sonar/sonar-3.0/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:191:in `new'
      |?from <script>:2:in `(root)'|?from org/jruby/RubyKernel.java:2021:in `instance_eval'
      |?from file:/D:/sonar/sonar-3.0/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/builder.rb:46:in `initialize'
      |?from <script>:2:in `(root)'|.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              simon.brandhof Simon Brandhof (Inactive)
              Reporter:
              fabemn OLD - Fabrice Bellingard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: