QAnything icon indicating copy to clipboard operation
QAnything copied to clipboard

[BUG] <title>

Open includewins0ck2 opened this issue 2 years ago • 5 comments

最后一步:ERROR: for qanything_local Cannot start service qanything_local: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #1: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy' nvidia-container-cli: mount error: file creation failed: /var/lib/docker/overlay2/2831fdbf603c479596a0fddb8e0db4662c1a01007068c742619ee5c0c625e83a/merged/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1: file exists: unknown 请问这个项目只能docker部署吗,我看说明是说全程可以拔网线安装的

includewins0ck2 avatar Jan 08 '24 09:01 includewins0ck2

Are you using the Windows system? Please refer to our latest submission for modifications. Windows needs to use the new docker-compose.yaml file to start.

xixihahaliu avatar Jan 08 '24 13:01 xixihahaliu

Are you using the Windows system? Please refer to our latest submission for modifications. Windows needs to use the new docker-compose.yaml file to start.

是的,我用的是wsl2 ubuntu 22.04,我马上试试最新的,谢谢

includewins0ck2 avatar Jan 10 '24 07:01 includewins0ck2

Are you using the Windows system? Please refer to our latest submission for modifications. Windows needs to use the new docker-compose.yaml file to start.

是的,我用的是wsl2 ubuntu 22.04,我马上试试最新的,谢谢

Is there still any problem now?

xixihahaliu avatar Jan 11 '24 09:01 xixihahaliu

Running in AWS ec2 instance (instance type is g4dn.xlarge), os is Ubuntu 22.04

Got the same error

image

Starting qanything-container-local ... error

ERROR: for qanything-container-local  Cannot start service qanything_local: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared objectfile: no such file or directory: unknown

ERROR: for qanything_local  Cannot start service qanything_local: failed to create task for container: failedto create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared objectfile: no such file or directory: unknown
ERROR: Encountered errors while bringing up the project.

I have installed NVIDIA Container Toolkit and fix the issue could not select device driver "nvidia" with capabilities: [[gpu]] already

ozbillwang avatar Jan 22 '24 08:01 ozbillwang

Seems Windows WSL supports only Ubuntu 20.04 and 18.04.

image

Let me try with older Ubuntu version 20.04

update

Got same error in ubuntu 20.04

 ⠹ Container qanything-container-local   Starting                                                                                                                    1.1s
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown

add debug logs

$ nvidia-container-cli -k -d /dev/tty info

-- WARNING, the following logs are for debugging purposes only --

I0122 09:31:35.446738 8649 nvc.c:376] initializing library context (version=1.14.3, build=1eb5a30a6ad0415550a9df632ac8832bf7e2bbba)
I0122 09:31:35.446811 8649 nvc.c:350] using root /
I0122 09:31:35.446818 8649 nvc.c:351] using ldcache /etc/ld.so.cache
I0122 09:31:35.446823 8649 nvc.c:352] using unprivileged user 1001:1001
I0122 09:31:35.446852 8649 nvc.c:393] attempting to load dxcore to see if we are running under Windows Subsystem for Linux (WSL)
I0122 09:31:35.447039 8649 nvc.c:395] dxcore initialization failed, continuing assuming a non-WSL environment
W0122 09:31:35.448416 8650 nvc.c:273] failed to set inheritable capabilities
W0122 09:31:35.448462 8650 nvc.c:274] skipping kernel modules load due to failure
I0122 09:31:35.448673 8651 rpc.c:71] starting driver rpc service
I0122 09:31:35.449004 8649 rpc.c:135] driver rpc service terminated with signal 15
nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory
I0122 09:31:35.449052 8649 nvc.c:434] shutting down library context

ref: https://github.com/NVIDIA/nvidia-container-toolkit/issues/154

ozbillwang avatar Jan 22 '24 08:01 ozbillwang