gray-holiday-49040
08/22/2025, 8:09 AMsrc/agent.py
0.780 Caused by: No such file or directory (os error 2)
------
build failed for iad.ocir.io/axyci3pr8vxm/production-cloud-agents:p-3l8568mrvxk-ca-j9ashtjuwjbp-v20250822080759: failed to solve: process "/bin/sh -c uv run src/agent.py download-files" did not complete successfully: exit code: 2
(agent-starter-python) PS C:\Users\3d3n2\agent-starter-python>clean-doctor-99713
08/22/2025, 7:03 PMrefined-appointment-81829
08/22/2025, 7:23 PMuv run src/agent.py download-files. The specific error is No such file or directory (os error 2), which suggests that the file src/agent.py does not exist in the expected location within the Docker container.
Here are a few steps you can take to troubleshoot and resolve this issue:
1. Check File Paths: Ensure that the src/agent.py file is indeed located in the src directory relative to the Docker build context. The Dockerfile should have a COPY command that correctly copies the necessary files into the container. If your Dockerfile is similar to the one in the documentation, make sure that the COPY command is correctly set up to include the src directory.
2. Verify Dockerfile: If you are using a Dockerfile similar to the one provided in the documentation, ensure that it includes the necessary commands to copy your application files into the container. For example, the COPY command should look something like this:
COPY . .
This command copies all files from the current directory into the working directory of the container. Make sure that your src directory is included in this context.
3. Check Build Context: When you run the lk agent deploy command, ensure that you are in the correct directory that contains the Dockerfile and the src directory. The build context should include all necessary files.
4. Permissions: The warning about the permissions for the config file (C:\Users\3d3n2/.livekit/cli-config.yaml) suggests that the file may not have the correct permissions. While this may not directly cause the build failure, it's good practice to ensure that the permissions are set correctly. You can change the permissions using:
chmod 600 C:\Users\3d3n2/.livekit/cli-config.yaml
5. Inspect the Docker Image: If the build process is still failing, you can try running the Docker image interactively to inspect the filesystem and verify whether src/agent.py exists:
docker run -it <your-image-name> /bin/sh
6. This will allow you to navigate the filesystem within the container and check for the presence of the src/agent.py file.
If you continue to experience issues, please provide more details about your Dockerfile and the structure of your project directory.
Notes:
⢠Ensure that your Dockerfile is correctly set up to copy all necessary files into the container.
⢠The error indicates a missing file, so verifying the file paths and build context is crucial.
⢠The warning about the config file permissions may not be directly related to the build failure but should be addressed for best practices.loud-breakfast-60455
08/22/2025, 7:23 PMsrc/agent.py exist in your codebase? What is your entrypoint?clean-doctor-99713
08/22/2025, 7:34 PMbrave-memory-83727
08/24/2025, 10:58 AMbrave-memory-83727
08/24/2025, 11:07 AMbrave-memory-83727
08/24/2025, 1:42 PMstrong-dress-64642
08/25/2025, 6:12 PMstrong-dress-64642
08/25/2025, 6:13 PMrefined-appointment-81829
08/25/2025, 6:29 PM.env local & agent.py into root directory
2. remove src/ in 2 locations at the bottom of the Dockerfile
Depending on your setup you may only need to move agent.py as the env file is probably already in root in most cases.strong-dress-64642
08/26/2025, 2:53 AMv2.5.2 which is rolling out shortly to Homebrew and Wingetbrave-memory-83727
09/04/2025, 1:03 AM.env.* files in the src folder. This doesnt seem to be an issue when using wsl.brave-memory-83727
09/04/2025, 1:05 AMstrong-dress-64642
09/04/2025, 1:06 AMlk agent update-secretsstrong-dress-64642
09/04/2025, 1:07 AMbrave-memory-83727
09/04/2025, 1:12 AMRUN python src/main.py download-files keeps failing as the main.py loads all my other modules and they all require the the env to be loaded otherwise they throw an error.strong-dress-64642
09/04/2025, 1:13 AMstrong-dress-64642
09/04/2025, 1:14 AMdownload-files commandstrong-dress-64642
09/04/2025, 1:16 AMbrave-memory-83727
09/04/2025, 1:18 AMdownload-files but the way the code is usually structured forces me to.
Yeah I am not really manually passing a lot of env variables, just some of my database and aws keys.brave-memory-83727
09/04/2025, 1:20 AM.dockerignore was the one that was ignoring files.
Its very counter intuitive to strip all the .gitignore files as well, but I understand why you guys do it.brave-memory-83727
09/04/2025, 1:22 AM.json file that cannot be passed via the secret.
the GOOGLE_APPLICATION_CREDENTIALS just has the path of the .json file.strong-dress-64642
09/04/2025, 1:23 AMbrave-memory-83727
09/04/2025, 1:25 AMstrong-dress-64642
09/04/2025, 1:26 AMelegant-businessperson-51313
09/07/2025, 4:03 PM=> [internal] load remote build context 2.6s
=> copy /context / 3.6s
=> [internal] load metadata for ghcr.io/astral-sh/uv:python3.13-bookworm-slim 0.2s
=> [ 1/10] FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim@sha256:efe2350aa848bc60720f136d94f47480095d8231b17547e4369f6bc97df59701 0.0s
=> => resolve ghcr.io/astral-sh/uv:python3.13-bookworm-slim@sha256:efe2350aa848bc60720f136d94f47480095d8231b17547e4369f6bc97df59701 0.0s
=> CACHED [ 2/10] RUN adduser --disabled-password --gecos "" --home "/app" --shell "/sbin/nologin" --uid "10001" appuser 0.0s
=> CACHED [ 3/10] RUN apt-get update && apt-get install -y gcc g++ python3-dev && rm -rf /var/lib/apt/lists/* 0.0s
=> CACHED [ 4/10] WORKDIR /app 0.0s
=> CACHED [ 5/10] COPY pyproject.toml uv.lock ./ 0.0s
=> CACHED [ 6/10] RUN mkdir -p src 0.0s
=> CACHED [ 7/10] RUN uv sync --locked 0.0s
=> [ 8/10] COPY . . 6.8s
=> [ 9/10] RUN chown -R appuser:appuser /app 30.1s
=> ERROR [10/10] RUN uv run "src/agent.py" download-files 0.2s
------
> [10/10] RUN uv run "src/agent.py" download-files:
0.165 error: Failed to query Python interpreter at `/app/.venv/bin/python3`
0.165 Caused by: Exec format error (os error 8)
------
build failed for iad.ocir.io/axyci3pr8vxm/production-cloud-agents:p-4tr7wk3lnn7-ca-bauk2yngfuyp-v20250907160124: failed to solve: process "/bin/sh -c uv run \"src/agent.py\" download-files" did not complete successfully: exit code: 2strong-dress-64642
09/07/2025, 4:06 PM.venv to your .dockerignore. you're uploading your virtual env and the container is trying to use all your local dependencies and binaries instead of what's appropriate for the target machinestrong-dress-64642
09/07/2025, 4:06 PMelegant-businessperson-51313
09/07/2025, 4:09 PMstrong-dress-64642
09/07/2025, 4:10 PMelegant-businessperson-51313
09/07/2025, 5:44 PMstrong-dress-64642
09/07/2025, 6:09 PMelegant-businessperson-51313
09/07/2025, 6:10 PMelegant-businessperson-51313
09/07/2025, 6:18 PMstrong-dress-64642
09/07/2025, 6:20 PMstrong-dress-64642
09/07/2025, 6:20 PMelegant-businessperson-51313
09/07/2025, 6:23 PMstrong-dress-64642
09/07/2025, 6:33 PMus-east for agent deployments, but the team is actively working on region pinning to any region where LiveKit already has SFU nodes. You'll just specify the region(s) you want in livekit.toml or via CLI parameter during deployment