Coder Social home page Coder Social logo

Waagent crash about walinuxagent HOT 8 CLOSED

azure avatar azure commented on June 3, 2024
Waagent crash

from walinuxagent.

Comments (8)

yuezh avatar yuezh commented on June 3, 2024

@vnorbix, did you do any proxy config to waagent? Such as:
HttpProxy.Host=None
HttpProxy.Port=None

from walinuxagent.

vnorbix avatar vnorbix commented on June 3, 2024

@yuezh, thanks for your response. HttpProxy is not present in the config, here's my full config I'm using:
Role.StateConsumer=None
Role.ConfigurationConsumer=None
Role.TopologyConsumer=None
Provisioning.Enabled=y
Provisioning.DeleteRootPassword=y
Provisioning.RegenerateSshHostKeyPair=n
Provisioning.SshHostKeyPairType=rsa
Provisioning.MonitorHostName=n
Provisioning.DecodeCustomData=n
Provisioning.ExecuteCustomData=n
ResourceDisk.Format=y
ResourceDisk.Filesystem=ext4
ResourceDisk.MountPoint=/mnt/resource
ResourceDisk.EnableSwap=y
ResourceDisk.SwapSizeMB=2048
LBProbeResponder=y
Logs.Verbose=n
OS.RootDeviceScsiTimeout=300
OS.OpensslPath=None

Do you think a verbose log would help you?

from walinuxagent.

lizzha avatar lizzha commented on June 3, 2024

@vnorbix, does cloud-init runs in your VM?

from walinuxagent.

vnorbix avatar vnorbix commented on June 3, 2024

@lizzha, yes, it seems to be, but I found this in cloud-init.log:

Nov 16 13:45:57 [CLOUDINIT] util.py[DEBUG]: Cloud-init v. 0.7.7 running 'init-local' at Mon, 16 Nov 2015 12:45:57 +0000. Up 35.65 seconds.
...
Nov 16 13:45:58 [CLOUDINIT] util.py[WARNING]: No instance datasource found! Likely bad things to come!
Nov 16 13:45:58 [CLOUDINIT] util.py[DEBUG]: No instance datasource found! Likely bad things to come!#012Traceback (most recent call last):#12 File "/usr/bin/cloud-init", line 253, in main_init#012 init.fetch()#12 File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 336, in fetch#012 return self._get_data_source()#12 File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 264, in _get_data_source#012 pkg_list, self.reporter)#12 File "/usr/lib/python3/dist-packages/cloudinit/sources/init.py", line 274, in find_source#012 raise DataSourceNotFoundException(msg)#012cloudinit.sources.DataSourceNotFoundException: Did not find any data source, searched classes: (DataSourceAzureNet)
Nov 16 13:45:58 [CLOUDINIT] util.py[DEBUG]: Reading from /proc/uptime (quiet=False)
Nov 16 13:45:58 [CLOUDINIT] util.py[DEBUG]: Read 11 bytes from /proc/uptime
Nov 16 13:45:58 [CLOUDINIT] util.py[DEBUG]: cloud-init mode 'init' took 0.412 seconds (0.42)
Nov 16 13:45:58 [CLOUDINIT] handlers.py[DEBUG]: finish: init-network: SUCCESS: searching for network datasources

from walinuxagent.

lizzha avatar lizzha commented on June 3, 2024

@vnorbix Seems there's conflict between cloud-init and waagent in provisioning.

Have you ever tried to set
Provisioning.Enabled=n
ResourceDisk.Format=n
in waagent.conf, and then provision the VM?

from walinuxagent.

vnorbix avatar vnorbix commented on June 3, 2024

@lizzha, I changed the config file, shut down the VM (deallocated), then started it, no changes, the same error lines are in the logs.

from walinuxagent.

lizzha avatar lizzha commented on June 3, 2024

@vnorbix , could you please try following steps:

  1. Make sure the config file contains
    Provisioning.Enabled=n
    ResourceDisk.Format=n
  2. run command # sudo waagent -deprovision
  3. shut down the VM
  4. capture the VM image
  5. create a new VM from the captured image

If this cannot resolve the issue, could you please provide detailed steps of how you update your VM and update waagent, so that we could try to repro and take a look?

from walinuxagent.

vnorbix avatar vnorbix commented on June 3, 2024

@lizzha, thanks for the suggestion, this solution worked! Now waagent is running without problems. I can now also register the VM to recovery services, that was my initial issue.

So, next time it would be recommanded to recreate the VM when waagent will be updated (major version changes) with the OS, right?

from walinuxagent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.