-
Notifications
You must be signed in to change notification settings - Fork 894
Closed
Description
What happened?
I've created a VMSS in Azure using the latest Ubuntu 24.04 LTS image ("server" sku).
ADO Agents fail to start with AttributeError: module 'importlib' has no attribute 'load_source'
I tried SSH'ing into a VM instance, and managed to obtain the full error by running handler.sh manually, and I have attached the output below.
Agents seem to work fine rolling back to 22.04.
22.04 python version: 3.10.12
24.04 python version: 3.12.3
Versions
Agent version 1.25.2.0
OS version Ubuntu 24.04 LTS
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 24.04 LTS
Version controll system
No response
Relevant log output
/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-1.25.2.0# ./Handler.sh
Traceback (most recent call last):
File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-1.25.2.0/Utils/WAAgentUtil.py", line 57, in <module>
waagent = imp.load_source('waagent', agentPath)
^^^^^^^^^^^^^^^
AttributeError: module 'importlib' has no attribute 'load_source'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-1.25.2.0/./AzureRM.py", line 9, in <module>
import Utils.HandlerUtil as Util
File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-1.25.2.0/Utils/HandlerUtil.py", line 71, in <module>
from .WAAgentUtil import waagent
File "/var/lib/waagent/Microsoft.VisualStudio.Services.TeamServicesAgentLinux-1.25.2.0/Utils/WAAgentUtil.py", line 64, in <module>
waagent = imp.load_source('waagent', agentPath)
^^^^^^^^^^^^^^^
AttributeError: module 'importlib' has no attribute 'load_source'
jamie-oconnell, whage, tumm0283, Paddy420 and rybal06