Skip to content

[BUG]: Access denied at the beginning of jobs with MDP Hosted Linux Agent #5413

@MauriceChocoSwiss

Description

@MauriceChocoSwiss

What happened?

On the beginning of the job with a fresh Ubuntu 24.04 agent from the Managed DevOps Pool, it crash because can't access /mnt/vss folder.

I've tried within custom VNet or in isolated VNet, with fresh agent every build or same for multiples builds, with Standard B or D or F VM tier, with Standard or Premium disk tier.

I'm the administrator of the DevOps organization and Azure account.
I've test with a very simple pipeline with only a batch echo "hello World" too but nothing change.

All pipelines works with Microsoft-Hosted agent, but as I use private endpoints for my services with disabled public access I need to use Managed DevOps Pool integrated to my VNet with endpoints.

Tried with Ubuntu 22, same error.

With Windows images version it doesn't start at all, no provisioning with CustomScriptError error.

Versions

Agent ??? can't see the agent version... Ubuntu 24.04, build 20251112.124.1

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

Version controll system

No response

Relevant log output

2025-11-30T22:13:22.0640470Z ##[section]Starting: Job
2025-11-30T22:13:22.0969742Z ##[error]Access to the path '/mnt/vss' is denied.
2025-11-30T22:13:22.0980224Z ##[debug]System.UnauthorizedAccessException: Access to the path '/mnt/vss' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.FileSystem.CreateParentsAndDirectory(String fullPath, UnixFileMode unixCreateMode)
   at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
   at System.IO.Directory.CreateDirectory(String path)
   at Microsoft.VisualStudio.Services.Agent.Worker.JobRunner.RunAsync(AgentJobRequestMessage message, CancellationToken jobRequestCancellationToken) in /mnt/vss/_work/1/s/src/Agent.Worker/JobRunner.cs:line 175
2025-11-30T22:13:22.1003874Z ##[section]Finishing: Job

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions