Skip to content

Issue: clearml-agent Fails to Upload Git Repository and Code (Self-Hosted ClearML) #308

Description

@SovoN-Niko

Problem Description
I have a self-hosted ClearML server properly configured. When running tasks locally, Git repository information and code snapshots are captured correctly. However, when attempting to execute tasks remotely via clearml-agent, the agent fails to upload both the repository metadata and the source code.

Error Details
The agent executes but cannot locate the main module, suggesting the code was not properly uploaded:

Running task id [1a5ac3ecd705453a8dc8087c3d818d4b]:
[]$ /root/.clearml/venvs-builds/3.12/bin/python -u ''
Summary - installed python packages:
pip:
- certifi==2026.1.4
- charset-normalizer==3.4.4
- Cython==3.2.4
- distlib==0.4.0
- filelock==3.20.3
- idna==3.11
- platformdirs==4.5.1
- psutil==7.0.0
- requests==2.32.5
- setuptools==68.1.2
- urllib3==2.6.3
- virtualenv==20.36.1
- wheel==0.42.0
Environment setup completed successfully
Starting Task Execution:
/root/.clearml/venvs-builds/3.12/bin/python: can't find '__main__' module in '/root/.clearml/venvs-builds/3.12/code'
Leaving process id 5012

Key Observations
Local execution works fine – Git info and code are properly stored

Remote execution fails – The agent's code directory (/root/.clearml/venvs-builds/3.12/code) appears empty

Both methods tested:

  • clearml-agent-services
  • Direct pip install clearml-agent in container

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions