xuanyuanaosheng commented on issue #7742:
URL: https://github.com/apache/cloudstack/issues/7742#issuecomment-1635262432

   @DaanHoogland   
   
   I reinstall a new server using 4.18.0.0, But the cloudstack-agent can not 
started, it quit quickly.
   
   The details logs is:  
   ```
   log4j:WARN No appenders could be found for logger 
(com.cloud.agent.AgentShell).
   log4j:WARN Please initialize the log4j system properly.
   log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for 
more info.
   log4j: reset attribute= "false".
   log4j: Threshold ="null".
   log4j: Retreiving an instance of org.apache.log4j.Logger.
   log4j: Setting [com.cloud] additivity to [true].
   log4j: Level value for com.cloud is  [DEBUG].
   log4j: com.cloud level set to DEBUG
   log4j: Retreiving an instance of org.apache.log4j.Logger.
   log4j: Setting [com.cloud.agent.metrics] additivity to [true].
   log4j: Level value for com.cloud.agent.metrics is  [DEBUG].
   log4j: com.cloud.agent.metrics level set to DEBUG
   log4j: Retreiving an instance of org.apache.log4j.Logger.
   log4j: Setting 
[com.cloud.agent.resource.computing.ComputingResource$StorageMonitorTask] 
additivity to [true].
   log4j: Level value for 
com.cloud.agent.resource.computing.ComputingResource$StorageMonitorTask is  
[DEBUG].
   log4j: 
com.cloud.agent.resource.computing.ComputingResource$StorageMonitorTask level 
set to DEBUG
   log4j: Retreiving an instance of org.apache.log4j.Logger.
   log4j: Setting [org.apache] additivity to [true].
   log4j: Level value for org.apache is  [DEBUG].
   log4j: org.apache level set to DEBUG
   log4j: Retreiving an instance of org.apache.log4j.Logger.
   log4j: Setting [org] additivity to [true].
   log4j: Level value for org is  [DEBUG].
   log4j: org level set to DEBUG
   log4j: Retreiving an instance of org.apache.log4j.Logger.
   log4j: Setting [net] additivity to [true].
   log4j: Level value for net is  [DEBUG].
   log4j: net level set to DEBUG
   log4j: Retreiving an instance of org.apache.log4j.Logger.
   log4j: Setting [com.amazonaws] additivity to [true].
   log4j: Level value for com.amazonaws is  [DEBUG].
   log4j: com.amazonaws level set to DEBUG
   log4j: Retreiving an instance of org.apache.log4j.Logger.
   log4j: Setting [httpclient.wire] additivity to [true].
   log4j: Level value for httpclient.wire is  [DEBUG].
   log4j: httpclient.wire level set to DEBUG
   log4j: Retreiving an instance of org.apache.log4j.Logger.
   log4j: Setting [org.apache.http.wire] additivity to [true].
   log4j: Level value for org.apache.http.wire is  [DEBUG].
   log4j: org.apache.http.wire level set to DEBUG
   log4j: Level value for root is  [DEBUG].
   log4j: root level set to DEBUG
   log4j: Class name: [org.apache.log4j.ConsoleAppender]
   log4j: Setting property [target] to [System.out].
   log4j: Setting property [threshold] to [DEBUG].
   log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
   log4j: Setting property [conversionPattern] to [%-5p [%c{3}] (%t:%x) 
(logid:%X{logcontextid}) %m%n].
   log4j: Adding appender named [CONSOLE] to category [root].
   log4j: Class name: [org.apache.log4j.rolling.RollingFileAppender]
   log4j: Setting property [append] to [true].
   log4j: Setting property [threshold] to [DEBUG].
   log4j: Setting property [fileNamePattern] to 
[/var/log/cloudstack/agent/agent.log.%d{yyyy-MM-dd}.gz].
   log4j: Setting property [activeFileName] to 
[/var/log/cloudstack/agent/agent.log].
   log4j: Parsing layout of class: "org.apache.log4j.EnhancedPatternLayout"
   log4j: Setting property [conversionPattern] to [%d{ISO8601} %-5p [%c{3}] 
(%t:%x) (logid:%X{logcontextid}) %m%n].
   log4j: setFile called: /var/log/cloudstack/agent/agent.log, true
   log4j: setFile ended
   log4j: Adding appender named [FILE] to category [root].
   INFO  [cloud.agent.AgentShell] (main:) (logid:) Agent started
   INFO  [cloud.agent.AgentShell] (main:) (logid:) Implementation Version is 
4.18.0.0
   INFO  [cloud.agent.AgentShell] (main:) (logid:) agent.properties found at 
/etc/cloudstack/agent/agent.properties
   DEBUG [agent.properties.AgentPropertiesFileHandler] (main:) (logid:) 
Property [host] was altered. Now using the value [localhost].
   SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
   SLF4J: Defaulting to no-operation (NOP) logger implementation
   SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
   DEBUG [agent.properties.AgentPropertiesFileHandler] (main:) (logid:) 
Property [guid] has empty or null value. Using default value [null].
   DEBUG [agent.properties.AgentPropertiesFileHandler] (main:) (logid:) 
Property [developer] has empty or null value. Using default value [false].
   Unable to find the guid
   ```
   
   If using 4.17.2.0, the agent can started.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to