problema sonar (tomcat+sonar) [RESOLVIDO]

25. Re: problema sonar (tomcat+sonar) [RESOLVIDO]

Julian Soares
juliansoares

(usa Debian)

Enviado em 22/04/2013 - 17:38h

filippec escreveu:

o log é <appender name="SONAR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>../../logs/sonar.log</File>


então mais nesse log não tem nada, pois eu não inicio o sonar.sh start, eu inicio o tomcat e dentro dele tem o webapps do sonar, ou seja acesso http://localhost:8080/sonar

e os logs ficam em /opt/apache-tomcat-6.0.36/logs/catalina.out , localhost,host-manager,manager, esse são os logs que tem no apache-tomcat.


  


26. Re: problema sonar (tomcat+sonar) [RESOLVIDO]

Filippe
spolti

(usa Fedora)

Enviado em 22/04/2013 - 17:40h

Então altera nos logs do tomcat.

$TOMCAT_HOME/conf/log4j.properties.


Esse eu n sei configurar de cabeça...

Dá uma procurada no google sobre como habilitar level debug nos logs tomcat.


27. Re: problema sonar (tomcat+sonar) [RESOLVIDO]

Julian Soares
juliansoares

(usa Debian)

Enviado em 24/04/2013 - 10:10h

galera seguinte, no meu servidor o tomcat+sonar.29 roda tudo certo, o que eu estou tentando fazer eh subir em meu note o mesmo ambiente com mesmo banco pra poder atualizar o sonar e ver se da algum erro, por qnto nao consegui subir o mesmo ambiente do servidor aqui, dai eu tentei somente subir o sonar e fazer a atualizacao por ele, qndo entro em localhost:9000/setup aparece o botão upgrade no sonar, mas qndo clico aparece isso :

Impossible to upgrade database

The migration failed: An error has occurred, all later migrations canceled: ActiveRecord::JDBCError: Table 'users' already exists: CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(40), `name` varchar(200), `email` varchar(100), `crypted_password` varchar(40), `salt` varchar(40), `created_at` datetime, `updated_at` datetime, `remember_token` varchar(500), `remember_token_expires_at` datetime) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin.
Please check the logs.

é algum problema no banco, mas eu fiz um dump do banco do servidor, subi no meu mysql, setei as senha igual tudo certo, mas o sonar da esse pau ae!




28. Re: problema sonar (tomcat+sonar) [RESOLVIDO]

Julian Soares
juliansoares

(usa Debian)

Enviado em 25/04/2013 - 16:58h

Falae consegui instalar o sonar-2.9 e subir ele aqui, agora fiz o ugrade pro 3.5 e só está aparendo essas linhas, alguem ?

log catalina.out :

INFO: Deploying configuration descriptor sonar.xml
16:44:00,697 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
16:44:00,698 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
16:44:00,698 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
16:44:00,699 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.
16:44:00,892 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
16:44:00,894 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
16:44:00,894 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [SONAR_WAR]
16:44:00,928 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.boolex.JaninoEventEvaluator] for [evaluator] property
16:44:00,952 |-INFO in ch.qos.logback.classic.boolex.JaninoEventEvaluator@4c538974 - Adding [return] prefix and a semicolon suffix. Expression becomes [return message.startsWith("files: File not found: /maven");]
16:44:00,952 |-INFO in ch.qos.logback.classic.boolex.JaninoEventEvaluator@4c538974 - See also http://logback.qos.ch/codes.html#block
16:44:01,060 |-WARN in ch.qos.logback.core.ConsoleAppender[SONAR_WAR] - This appender no longer admits a layout as a sub-component, set an encoder instead.
16:44:01,060 |-WARN in ch.qos.logback.core.ConsoleAppender[SONAR_WAR] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
16:44:01,060 |-WARN in ch.qos.logback.core.ConsoleAppender[SONAR_WAR] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
16:44:01,060 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
16:44:01,063 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [SONAR_FILE]
16:44:01,074 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy@6545d2 - No compression will be used
16:44:01,083 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[SONAR_FILE] - Active log file name: /opt/sonar-3.5/logs/sonar.log
16:44:01,083 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[SONAR_FILE] - File property is set to [/opt/sonar-3.5/logs/sonar.log]
16:44:01,085 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
16:44:01,085 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [PROFILING_FILE]
16:44:01,085 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy@78cade31 - No compression will be used
16:44:01,086 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[PROFILING_FILE] - Active log file name: /opt/sonar-3.5/logs/profiling.log
16:44:01,086 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[PROFILING_FILE] - File property is set to [/opt/sonar-3.5/logs/profiling.log]
16:44:01,086 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [rails] to false
16:44:01,086 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - rails level set to WARN
16:44:01,086 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [SONAR_FILE] to Logger[rails]
16:44:01,086 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate.cache.ReadWriteCache level set to ERROR
16:44:01,087 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate level set to WARN
16:44:01,087 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.hibernate.SQL level set to WARN
16:44:01,087 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.apache.ibatis level set to WARN
16:44:01,087 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - java.sql level set to WARN
16:44:01,087 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - java.sql.ResultSet level set to WARN
16:44:01,087 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.sonar.MEASURE_FILTER level set to WARN
16:44:01,087 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to INFO
16:44:01,087 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [SONAR_FILE] to Logger[ROOT]
16:44:01,087 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@4ec1a0eb - Registering current configuration as safe fallback point

JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
Database must be upgraded. Please browse /setup
25/04/2013 16:44:19 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
25/04/2013 16:44:19 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
25/04/2013 16:44:19 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
25/04/2013 16:44:19 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
25/04/2013 16:44:19 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
25/04/2013 16:44:19 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
25/04/2013 16:44:19 org.apache.catalina.startup.Catalina start
INFO: Server startup in 20496 ms



29. Re: problema sonar (tomcat+sonar) [RESOLVIDO]

Julian Soares
juliansoares

(usa Debian)

Enviado em 26/04/2013 - 11:36h

instalei versão 3.5 e estava dando erro no arquivo logback.xml peguei o arquivo do sonar2.9 e depois só foi atualizar o banco de dados para o sonar rodar nos trink! ;)



01 02 03



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts