Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for Serverless Containers
    • Resolving the `Code 502 Message Error during function invocation` error
    • Resolving the `Service account is not available` error
    • Resolving the `user container exec format error` error
    • Resolving the `No space left on device` error
    • How to set up a static IP address

In this article:

  • Issue description
  • Solution
  • If the issue persists
  1. Serverless Containers
  2. Resolving the `user container exec format error` error

Fixing the user container exec format error error

Written by
Yandex Cloud
Updated at December 17, 2025
  • Issue description
  • Solution
  • If the issue persists

Issue descriptionIssue description

When attempting to start a container in Serverless Containers, you see the following error in its logs:

"errorMessage":"user container finished with error: fork/exec /usr/local/bin/python3: exec format error","errorType":"UserCodeError"}

SolutionSolution

We recommend building a container with the architecture explicitly set to --platform=linux/amd64.

For more information about the Serverless Containers runtime, see this article.

If the issue persistsIf the issue persists

If the above actions did not help, create a support ticket. Provide the following information in your ticket:

  1. ID of your container in Serverless Containers.
  2. Full error message from the container execution log.

Was the article helpful?

Previous
Resolving the `Service account is not available` error
Next
Resolving the `No space left on device` error
© 2025 Direct Cursus Technology L.L.C.