You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cloudstack-agent-4.19.1.0 run error ,Unable to find the guid #9514
[root@cloudstack ~]# /usr/bin/java -Djava.io.tmpdir=/usr/share/cloudstack-agent/tmp -Xms256m -Xmx2048m -cp /usr/share/cloudstack-agent/lib/:/usr/share/cloudstack-agent/plugins/:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts com.cloud.agent.AgentShell
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.
INFO [cloud.agent.AgentShell] (main:) (logid:) Agent started
INFO [cloud.agent.AgentShell] (main:) (logid:) Implementation Version is 4.19.1.0
INFO [cloud.agent.AgentShell] (main:) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
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.
Unable to find the guid
@JustUse , the text "Unable to find the guid" occurs only in exceptions that should be logged more extensively to see the stacktrace. Could you edit the log4j.xml file to up the loglevel, please?
Did you start the agent with that command or use the initscript (or add it in cloudstack first)?
@JustUse , the text "Unable to find the guid" occurs only in exceptions that should be logged more extensively to see the stacktrace. Could you edit the log4j.xml file to up the loglevel, please?
Did you start the agent with that command or use the initscript (or add it in cloudstack first)?
hi,i found that when running cloudstack-agent.service and failed in two seconds. is it need to initscript ? how can i initscript this?
@JustUse , the text "Unable to find the guid" occurs only in exceptions that should be logged more extensively to see the stacktrace. Could you edit the log4j.xml file to up the loglevel, please?
Did you start the agent with that command or use the initscript (or add it in cloudstack first)?
sed -i 's/INFO/DEBUG/g' /etc/cloudstack/agent/log4j-cloud.xml
[root@cloudstack ~]# /usr/bin/java -Djava.io.tmpdir=/usr/share/cloudstack-agent/tmp -Xms256m -Xmx2048m -cp /usr/share/cloudstack-agent/lib/:/usr/share/cloudstack-agent/plugins/:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts com.cloud.agent.AgentShell
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.
INFO [cloud.agent.AgentShell] (main:) (logid:) Agent started
INFO [cloud.agent.AgentShell] (main:) (logid:) Implementation Version is 4.19.1.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
Activity
boring-cyborg commentedon Aug 12, 2024
Thanks for opening your first issue here! Be sure to follow the issue template!
DaanHoogland commentedon Aug 12, 2024
@JustUse , the text "Unable to find the guid" occurs only in exceptions that should be logged more extensively to see the stacktrace. Could you edit the log4j.xml file to up the loglevel, please?
Did you start the agent with that command or use the initscript (or add it in cloudstack first)?
JustUse commentedon Aug 13, 2024
hi,i found that when running cloudstack-agent.service and failed in two seconds. is it need to initscript ? how can i initscript this?
JustUse commentedon Aug 13, 2024
sed -i 's/INFO/DEBUG/g' /etc/cloudstack/agent/log4j-cloud.xmlTurn the agent log level to debug
[root@cloudstack ~]# /usr/bin/java -Djava.io.tmpdir=/usr/share/cloudstack-agent/tmp -Xms256m -Xmx2048m -cp /usr/share/cloudstack-agent/lib/:/usr/share/cloudstack-agent/plugins/:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts com.cloud.agent.AgentShell
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.
INFO [cloud.agent.AgentShell] (main:) (logid:) Agent started
INFO [cloud.agent.AgentShell] (main:) (logid:) Implementation Version is 4.19.1.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
DaanHoogland commentedon Aug 13, 2024
@JustUse the field
should have a value in the agent properties file. Did you add the host to cloudstack?
I am not sure, but I think you can make one up and start it.