Error message
python3: can’t open file '/app/training.py': [Errno 2] No such file or directory
Error executing the command
[Jul 10, 2025, 5:44 PM]: AO: BeekeeperAI decryption utility successfully decrypted secrets: Algorithm Starting
Cause
This error is generated because run.sh is trying to execute a Python file (/app/training.py) that is not present in the container image.
Typical reasons:
- The expected script (e.g., training.py) was never added to the image.
- The script exists but at a different path than /app/training.py.
- The script name in run.sh does not match the actual file name.
Impact
- The algorithm container starts but cannot execute the main training script.
- Job fails early with “Error executing the command.”
Resolution / Workaround
- Verify file presence in the container
- Open the Dockerfile or build the image locally and run:
docker run -it <image> ls -R /app
- Confirm that training.py (or your actual entrypoint script) exists where run.sh expects it.
- Align run.sh and file paths
- If your script is named differently (e.g., main.py), update run.sh accordingly:
python3 /app/main.py
- If your script is in a subdirectory, adjust the path:
python3 /app/src/training.py
- Update the Dockerfile
- Ensure the script is copied into the image:
COPY training.py /app/training.py
- Rebuild and push the updated image, then re-run the job.
Best practices
- Keep run.sh under version control with the algorithm code.
- Validate container contents locally before submitting to EscrowAI.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article