question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to initiate Azure Backup on SLE 15

See original GitHub issue

We are having problems initiating a backup of our VM running SLE 15.

The error message we get on Azure portal is ExtensionSnapshotFailedNoNetwork We’ve set NSG rules allowing outbound access to Azure storage but still end up with this error. Logs on the VM itself give some information, but don’t know if that helps pinpoint the problem.

waagent --version
WALinuxAgent-2.2.36 running on sles 15
Python: 3.6.5
Goal state agent: 2.2.37

From /var/log/azure/Microsoft.Azure.RecoveryServices.VMSnapshotLinux/extension.log

2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Failed to construct ConfigurationProvider, which may due to the old wala code.
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]GetBlobProperties: Failed to get blob properties with error: __init__() takes exactly 2 arguments (1 given), stack trace: Traceback (most recent call last):
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/blobwriter.py", line 207, in GetBlobProperties
2019/03/01 17:58:35     http_util = HttpUtil(self.hutil)
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/HttpUtil.py", line 43, in __init__
2019/03/01 17:58:35     Config = waagent.ConfigurationProvider()
2019/03/01 17:58:35 TypeError: __init__() takes exactly 2 arguments (1 given)
2019/03/01 17:58:35 
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]GetBlobProperties: retry times is 3
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Failed to construct ConfigurationProvider, which may due to the old wala code.
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]GetBlobProperties: Failed to get blob properties with error: __init__() takes exactly 2 arguments (1 given), stack trace: Traceback (most recent call last):
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/blobwriter.py", line 207, in GetBlobProperties
2019/03/01 17:58:35     http_util = HttpUtil(self.hutil)
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/HttpUtil.py", line 43, in __init__
2019/03/01 17:58:35     Config = waagent.ConfigurationProvider()
2019/03/01 17:58:35 TypeError: __init__() takes exactly 2 arguments (1 given)
2019/03/01 17:58:35 
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]GetBlobProperties: retry times is 2
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Failed to construct ConfigurationProvider, which may due to the old wala code.
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]GetBlobProperties: Failed to get blob properties with error: __init__() takes exactly 2 arguments (1 given), stack trace: Traceback (most recent call last):
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/blobwriter.py", line 207, in GetBlobProperties
2019/03/01 17:58:35     http_util = HttpUtil(self.hutil)
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/HttpUtil.py", line 43, in __init__
2019/03/01 17:58:35     Config = waagent.ConfigurationProvider()
2019/03/01 17:58:35 TypeError: __init__() takes exactly 2 arguments (1 given)
2019/03/01 17:58:35 
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]GetBlobProperties: retry times is 1
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]GetBlobType: Blob-Type :BlockBlob
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Failed to construct ConfigurationProvider, which may due to the old wala code.
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Failed to committing the log with error: __init__() takes exactly 2 arguments (1 given), stack trace: Traceback (most recent call last):
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/blobwriter.py", line 67, in WriteBlockBlob
2019/03/01 17:58:35     http_util = HttpUtil(self.hutil)
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/HttpUtil.py", line 43, in __init__
2019/03/01 17:58:35     Config = waagent.ConfigurationProvider()
2019/03/01 17:58:35 TypeError: __init__() takes exactly 2 arguments (1 given)
2019/03/01 17:58:35 
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]retry times is 3
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Failed to construct ConfigurationProvider, which may due to the old wala code.
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Failed to committing the log with error: __init__() takes exactly 2 arguments (1 given), stack trace: Traceback (most recent call last):
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/blobwriter.py", line 67, in WriteBlockBlob
2019/03/01 17:58:35     http_util = HttpUtil(self.hutil)
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/HttpUtil.py", line 43, in __init__
2019/03/01 17:58:35     Config = waagent.ConfigurationProvider()
2019/03/01 17:58:35 TypeError: __init__() takes exactly 2 arguments (1 given)
2019/03/01 17:58:35 
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]retry times is 2
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Failed to construct ConfigurationProvider, which may due to the old wala code.
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Failed to committing the log with error: __init__() takes exactly 2 arguments (1 given), stack trace: Traceback (most recent call last):
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/blobwriter.py", line 67, in WriteBlockBlob
2019/03/01 17:58:35     http_util = HttpUtil(self.hutil)
2019/03/01 17:58:35   File "/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9147.0/main/HttpUtil.py", line 43, in __init__
2019/03/01 17:58:35     Config = waagent.ConfigurationProvider()
2019/03/01 17:58:35 TypeError: __init__() takes exactly 2 arguments (1 given)
2019/03/01 17:58:35 
2019/03/01 17:58:35 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]retry times is 1

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
christiansetzercommented, Sep 7, 2020

Over a year has passed by since this issue was reported. I am still encountering a similar error and cannot initiate backups on my images

2020/09/07 07:11:23 File “/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9167.0/main/Utils/HandlerUtil.py”, line 406, in get_machine_id 2020/09/07 07:11:23 machine_id = mi.stored_identity()[1:-1] 2020/09/07 07:11:23 TypeError: ‘NoneType’ object has no attribute ‘getitem’ 2020/09/07 07:11:23 2020/09/07 07:11:23 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Unique Machine Id : 2020/09/07 07:11:23 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]partition count : 0, total used size : 0, is storage space present : False, is size computation failed : False 2020/09/07 07:11:23 [Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0]Failed to retrieve the unique machine id with error: ‘NoneType’ object has no attribute ‘getitem’, stack trace: Traceback (most recent call last): 2020/09/07 07:11:23 File “/var/lib/waagent/Microsoft.Azure.RecoveryServices.VMSnapshotLinux-1.0.9167.0/main/Utils/HandlerUtil.py”, line 406, in get_machine_id 2020/09/07 07:11:23 machine_id = mi.stored_identity()[1:-1] 2020/09/07 07:11:23 TypeError: ‘NoneType’ object has no attribute ‘getitem

The machine-id is generated on boot and also available under /etc/machine-id and /var/lib/dbus/machine-id.

I just wanted to know, if the original problem was solved, then I would open up a issue for this myself.

waagent --version WALinuxAgent-2.2.45 running on sles 15.1 Python: 3.6.10 Goal state agent: 2.2.45

0reactions
JozoSlejkocommented, Apr 16, 2019

@soumyapattnaik Could we have an update on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot backup errors with Azure VMs - Microsoft Learn
In this article, learn how to troubleshoot errors encountered with backup and restore of Azure virtual machines.
Read more >
Azure Recovery Services Backup VM Snapshot Fails
Error: Unable to save backup policy. Selected items list for Backup is large or selected items have long path names. Please retry operation...
Read more >
unraid move vm disk - Ramozzi & Friends
Start the VM and the space is automagically added to the system. use. ... In-Place restore of disks in IaaS VMs is a...
Read more >
Druva vs avepoint - Sport Castellano Reports
You'll get the most needed features and be up and running in less than 15 minutes. It will not protect you against acci...
Read more >
Bulk update azure ad users
Open Active Directory Users and Computers, click on the Users, ... 15 Jan 2021 #connecting to the Azure AD Connect-AzureAD #importing the CSV...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found