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
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:
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: