Skip to content

cloudstack-agent-4.19.1.0 run error ,Unable to find the guid  #9514

Closed

Description

@JustUse

[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

[root@cloudstack ~]# cat /etc/cloudstack/agent/agent.properties | grep -v '#'
guid=
resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
workers=5
host=localhost
port=8250
cluster=default
pod=default
zone=default
local.storage.uuid=
domr.scripts.dir=scripts/network/domr/kvm
hypervisor.type=kvm
iscsi.session.cleanup.enabled=false
[root@cloudstack ~]#

how can i resolve this problem?thank you very much !!

Activity

  1. boring-cyborg commented on Aug 12, 2024

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template!

  2. DaanHoogland commented on Aug 12, 2024

    @DaanHoogland
    Contributor

    @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)?

  3. JustUse commented on Aug 13, 2024

    @JustUse
    Author

    @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?

  4. JustUse commented on Aug 13, 2024

    @JustUse
    Author

    @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

    Turn 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

  5. DaanHoogland commented on Aug 13, 2024

    @DaanHoogland
    Contributor

    @JustUse the field

    guid=
    

    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.

  6. locked and limited conversation to collaborators on Aug 13, 2024
  7. converted this issue into a discussion #9517 on Aug 13, 2024
  8. added this to the unplanned milestone on Sep 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions