Open lawrence-c opened 5 years ago
I've also attempted the following:
$ systemctl stop walinuxagent
$ rm -rf /var/lib/waagent/Microsoft.Azure.Security*
$ rm -rf /var/log/azure/Microsoft.Azure.Security.AzureDiskEncryptionForLinux/
$ systemctl start walinux agent
and I'm now getting the following error when running
az vm extension set \
--name AzureDiskEncryptionForLinux \
--publisher Microsoft.Azure.Security \
--vm-name [vm-name] \
--resource-group [resource-group]
Deployment failed. Correlation ID: <id> Handler 'Microsoft.Azure.Security.AzureDiskEncryptionForLinux' has reported failure for VM Extension 'AzureDiskEncryptionForLinux' with terminal error code '1007' and error message: '[ExtensionError] Non-zero exit code: 1, extension_shim.sh -c main/handle.py --install
[stdout]
2019/03/12 09:41:34 ERROR:[Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.0]: JSON error processing settings file:
Traceback (most recent call last):
File "main/handle.py", line 1924, in <module>
main()
File "main/handle.py", line 487, in main
install()
File "main/handle.py", line 62, in install
hutil.do_parse_context('Install')
File "/var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.28/main/Utils/HandlerUtil.py", line 204, in do_parse_context
_context = self.try_parse_context()
File "/var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.28/main/Utils/HandlerUtil.py", line 285, in try_parse_context
public_settings_str = self._context._config['runtimeSettings'][0]['handlerSettings'].get('publicSettings')
TypeError: 'NoneType' object has no attribute '__getitem__'
[stderr]
'
Did you ever find a resolution to this issue?
Nope...
Similar to #383.
VM:
The VM has GitLab installed, however I've disabled it (gitlab-ctl stop) so that nothing should be running on the VM. The VM also has an external disk which is acting as an NFS share with another VM (not sure if this is relevant), and is mounted in
/etc/fstab
as so:UUID=<redacted> /media/<name> ext4 defaults 0 0
I attempt to encrypt the VM with the following command:
and get the following error an hour and a half later:
I've attempted installing the extension separately with:
and this also fails after an hour and a half with the error:
I'm not sure if there's something already installed from a previous attempt of encryption which only got half removed? I've tried removing the
Microsoft.Azure.Security__AzureDiskEncryptionForLinux__1.1.0.28.zip
from/var/lib/waagent
but to no avail.Errors include...
and
Also could be related, whenever I try to install the
AzureDiskEncryptionForLinux
extension, I get new mail in/var/mail/root
which says:Any ideas what I can do to resolve this?