Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on postbash script #2

Open
tranzmatt opened this issue Apr 3, 2024 · 2 comments
Open

Build error on postbash script #2

tranzmatt opened this issue Apr 3, 2024 · 2 comments

Comments

@tranzmatt
Copy link

I'm trying to build this example, both with the AI Workbench GUI and the nvwb cli binary and am getting the following error:

#20 311.6    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.6/85.6 kB 3.2 MB/s eta 0:00:00
#20 311.6 Downloading pymilvus-2.3.1-py3-none-any.whl (168 kB)
#20 311.6    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 168.9/168.9 kB 8.5 MB/s eta 0:00:00
#20 311.7 Downloading grpcio-1.58.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.3 MB)
#20 311.8    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 37.2 MB/s eta 0:00:00
#20 313.9 Installing collected packages: grpcio, anyio, pymilvus
#20 313.9   Attempting uninstall: grpcio
#20 313.9     Found existing installation: grpcio 1.62.1
#20 313.9     Uninstalling grpcio-1.62.1:
#20 313.9       Successfully uninstalled grpcio-1.62.1
#20 314.3 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
#20 314.3 chromadb 0.4.22 requires fastapi>=0.95.2, which is not installed.
#20 314.3 chromadb 0.4.22 requires onnxruntime>=1.14.1, which is not installed.
#20 314.3 chromadb 0.4.22 requires uvicorn[standard]>=0.18.3, which is not installed.
#20 314.3 grpcio-reflection 1.62.1 requires grpcio>=1.62.1, but you have grpcio 1.58.0 which is incompatible.
#20 314.3 grpcio-status 1.62.1 requires grpcio>=1.62.1, but you have grpcio 1.58.0 which is incompatible.
#20 314.3 text-generation-server 1.4.5 requires typer<0.7.0,>=0.6.1, but you have typer 0.12.0 which is incompatible.
#20 314.3 Successfully installed anyio-4.3.0 grpcio-1.58.0 pymilvus-2.3.1
#20 314.3 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#20 314.6 groupadd: GID '1001' already exists
#20 ERROR: process "/bin/bash /opt/project/build/postBuild.bash" did not complete successfully: exit code: 4
------
 > [16/17] RUN ["/bin/bash", "/opt/project/build/postBuild.bash"]:
314.3 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
314.3 chromadb 0.4.22 requires fastapi>=0.95.2, which is not installed.
314.3 chromadb 0.4.22 requires onnxruntime>=1.14.1, which is not installed.
314.3 chromadb 0.4.22 requires uvicorn[standard]>=0.18.3, which is not installed.
314.3 grpcio-reflection 1.62.1 requires grpcio>=1.62.1, but you have grpcio 1.58.0 which is incompatible.
314.3 grpcio-status 1.62.1 requires grpcio>=1.62.1, but you have grpcio 1.58.0 which is incompatible.
314.3 text-generation-server 1.4.5 requires typer<0.7.0,>=0.6.1, but you have typer 0.12.0 which is incompatible.
314.3 Successfully installed anyio-4.3.0 grpcio-1.58.0 pymilvus-2.3.1
314.3 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
314.6 groupadd: GID '1001' already exists
------
Containerfile:60
--------------------
  58 |     COPY --chown=$NVWB_UID:$NVWB_GID  ["postBuild.bash", "/opt/project/build/"]
  59 |     
  60 | >>> RUN ["/bin/bash", "/opt/project/build/postBuild.bash"]
  61 |     
  62 |     USER $NVWB_USERNAME
--------------------
ERROR: failed to solve: process "/bin/bash /opt/project/build/postBuild.bash" did not complete successfully: exit code: 4

This is on an NVidia DGX box running the latest release.

@Damilare1
Copy link

Damilare1 commented Sep 13, 2024

For anyone else with this error, I was able to get pass this by modifying the L26-27 on the PostBuild script to:

sudo -E chown workbench /mnt/milvus
sudo -E chown workbench /data

After which the build process was completed and I was able to run the chat in the browser.

@larky
Copy link

larky commented Sep 15, 2024

that worked for me / thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants