Virtual agent status is not ready

Sanjeevkumar Madhubharamannavar 21 Reputation points
2022-11-29T09:02:18.82+00:00

Instance Details -

Standard F2s v2 (2 vcpus, 4 GiB memory)

Linux

It's neither been accessible via SSH not using password

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,014 questions
0 comments No comments
{count} votes

Accepted answer
  1. srbhatta-MSFT 8,586 Reputation points Microsoft Employee
    2022-11-29T14:17:00.253+00:00

    Hello @Sanjeevkumar Madhubharamannavar ,
    I would like to add a few more points to build on top of what Alan has mentioned.
    VM agent could be in not ready state due to quite a few reasons other than not being in the recent most updated state. Could you please check via the boot diagnostics screenshot if your VM is in booted up state or not? If you are unable to figure out, then please check via the serial console login to see if you are able to log onto the VM.
    If you see that the VM is not in booted state, or there are boot issues occurring, then it is very likely that that your agent will be in not ready state because agent is unable to establish communication with the VM due to it being in a no-boot state.

    Secondly, if you see the VM is in booted state, however you are unable to SSH into it and also the guest agent is in not ready state, then first we have to be clear on this that the inability to SSH into the VM is in no way linked to the guest agent being out of date. So, first we need to fix the cause behind the SSH, post that we can go ahead and update the Guest agent to its latest state by simply doing a yum update or any other update commands depending on the Linux Distro.

    At first, could you please send us the serial log by downloading it from the portal under the boot diagnostics tab?

    Looking forward to your reply. Thanks. (Please tag me in your response).

    -----------

    If you find the above information helpful, please upvote or accept as answer if it is useful.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Alan Kinane 16,951 Reputation points MVP Volunteer Moderator
    2022-11-29T10:21:50.807+00:00
    0 comments No comments

  2. Sanjeevkumar Madhubharamannavar 21 Reputation points
    2022-11-29T10:52:18.247+00:00

    Hi Alan, thanks for the information.

    However i would like share current waagent version that linux system is running on as shown below -

    WALinuxAgent-2.2.49.2
    Python: 3.8.1
    Goal state agent: 2.2.49.2

    Please confirm whether we can go for the resolution directly or we need to update the waagent version


  3. Sanjeevkumar Madhubharamannavar 21 Reputation points
    2022-11-30T03:36:15.517+00:00

    Hi @srbhatta-MSFT thanks for the information you have provided.

    Before Jumping into the solution you shared, i would like to share the below log's for your information which might give you some idea.

    waagent.log -

    2022-11-10T18:07:37.848030Z INFO Daemon Daemon Clean protocol and wireserver endpoint
    2022-11-10T18:07:37.852662Z WARNING Daemon Daemon VM is provisioned, but the VM unique identifier has changed -- clearing cached state
    2022-11-10T18:07:37.853894Z ERROR Daemon Daemon Event: name=WALinuxAgent, op=UnhandledError, message=Traceback (most recent call last):
    File "/lib/python3.8/site-packages/azurelinuxagent/daemon/main.py", line 83, in run
    self.daemon(child_args)
    File "/lib/python3.8/site-packages/azurelinuxagent/daemon/main.py", line 145, in daemon
    self.provision_handler.run()
    File "/lib/python3.8/site-packages/azurelinuxagent/pa/provision/default.py", line 67, in run
    if self.is_provisioned():
    File "/lib/python3.8/site-packages/azurelinuxagent/pa/provision/default.py", line 193, in is_provisioned
    deprovision_handler = get_deprovision_handler()
    File "/lib/python3.8/site-packages/azurelinuxagent/pa/deprovision/factory.py", line 43, in get_deprovision_handler
    if "Clear Linux" in distro_full_name:
    TypeError: argument of type 'int' is not iterable
    , duration=0
    2022-11-10T18:07:37.853894Z ERROR Daemon Daemon Event: name=WALinuxAgent, op=UnhandledError, message=Traceback (most recent call last):
    File "/lib/python3.8/site-packages/azurelinuxagent/daemon/main.py", line 83, in run
    self.daemon(child_args)
    File "/lib/python3.8/site-packages/azurelinuxagent/daemon/main.py", line 145, in daemon
    self.provision_handler.run()
    File "/lib/python3.8/site-packages/azurelinuxagent/pa/provision/default.py", line 67, in run
    if self.is_provisioned():
    File "/lib/python3.8/site-packages/azurelinuxagent/pa/provision/default.py", line 193, in is_provisioned
    deprovision_handler = get_deprovision_handler()
    File "/lib/python3.8/site-packages/azurelinuxagent/pa/deprovision/factory.py", line 43, in get_deprovision_handler
    if "Clear Linux" in distro_full_name:
    TypeError: argument of type 'int' is not iterable
    , duration=0
    2022-11-10T18:07:37.856601Z WARNING Daemon Daemon Daemon ended with exception -- Sleep 15 seconds and restart daemon


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.