Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
All solutions
    • All solutions for Managed Service for Kubernetes
    • Fixing the "timed out waiting for the condition" error when mounting a PVC
    • Resolving the "timed out waiting for the condition" error when mounting a volume with a large number of files
    • Hosts of the Managed Service for Kubernetes node groups stay in the Reconciling status for a long time
    • Constant restarts of the kube-dns-autoscaler pod
    • Number of nodes in the group fails to decrease
    • Resolving the "Multi-Attach error for volume" error
    • Resolving the "DEADLINE_EXCEEDED" error
    • Adding and updating Linux SSH keys on Managed Services for Kubernetes node group hosts
    • Assigning static external IP addresses for Managed Service for Kubernetes cluster nodes
    • Granting internet access to Kubernetes nodes
    • How to change the network or subnet for an MDB cluster
    • How to create an internal Ingress controller

In this article:

  • Issue description
  • Diagnostics and error reproduction
  • Solution
  1. Managed Kubernetes
  2. Resolving the "timed out waiting for the condition" error when mounting a volume with a large number of files

Resolving the "timed out waiting for the condition" error when mounting a volume with a large number of files

Written by
Yandex Cloud
Updated at November 27, 2023
  • Issue description
  • Diagnostics and error reproduction
  • Solution

Issue descriptionIssue description

When launching a pod, you see this error:

Warning FailedMount 49s kubelet Unable to attach or mount volumes: unmounted volumes=[jenkins-home], unattached volumes jenkins-home jenkins config kube-api-access-2ldxk sc-config-volume admin-secret jenkins-additional-secrets jenkins-cache tmp-volume[]: timed out waiting for the condition

Diagnostics and error reproductionDiagnostics and error reproduction

Analyze the system logs:

journalctl -t kernel --no-pager --since "today"
journalctl --system --no-pager --since "today"
journalctl -u kubelet --no-pager --since "today"

The kubelet system service logs include, at a time close to the launch of the problem pod, you see the message: If the volume has a lot of files then setting volume ownership could be slow...

SolutionSolution

The reason behind the long mounting time is the large number of files on the target file system. By default, the fsgroup configuration is recursively set at each volume mount. Details about the error are given on its discussion page in the Kubernetes git repository.

We recommend setting up the security context for the pod using the following guide.

Was the article helpful?

Previous
Fixing the "timed out waiting for the condition" error when mounting a PVC
Next
Hosts of the Managed Service for Kubernetes node groups stay in the Reconciling status for a long time
Yandex project
© 2025 Yandex.Cloud LLC