docker save langgenius/dify-web:0.15.3 -o dify-web.tar docker save langgenius/dify-api:0.15.3 -o dify-api.tar docker save postgres:15-alpine -o postgres.tar docker save nginx:latest -o nginx.tar docker save langgenius/dify-sandbox:0.2.10 -o dify-sandbox.tar docker save redis:6-alpine -o redis.tar docker save ubuntu/squid:latest -o squid.tar docker save semitechnologies/weaviate:1.19.0 -o weaviate.tar
docker_api_1 /bin/bash /entrypoint.sh Restarting docker_db_1 docker-entrypoint.sh postg ... Up (healthy) 5432/tcp docker_nginx_1 sh -c cp /docker-entrypoin ... Up 0.0.0.0:444->443/tcp,:::444->443/tcp, 0.0.0.0:7002->80/tcp,:::7002->80/tcp docker_plugin_daemon_1 /bin/bash -c /app/entrypoi ... Up 0.0.0.0:5003->5003/tcp docker_redis_1 docker-entrypoint.sh redis ... Up (healthy) 6379/tcp docker_sandbox_1 /main Restarting docker_ssrf_proxy_1 sh -c cp /docker-entrypoin ... Up 3128/tcp docker_weaviate_1 /bin/weaviate --host 0.0.0 ... Up docker_web_1 /bin/sh ./entrypoint.sh Up 3000/tcp docker_worker_1 /bin/bash /entrypoint.sh Restarting
我们可以先查看相关容器日志
docker logs docker_api_1 #若没有设置容器名,把容器名改为容器ID前四位
发现是权限问题:
OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 4: Operation not permitted runtime/cgo: pthread_create failed :Operation not permitted
本地安装模型时失败,提示init environment for plugin langgenius/openai:0.0.26 failed too many times you should consider the package is corrupted or your network is unstable
这个报错与提供插件服务的dockerdocker_plugin_daemon有关,查看容器日志:
docker logs plugin_daemon #若没有设置容器名,把容器名改为容器ID前四位
[ERROR]init environment failed: failed to install dependencies: exit status 2, output: error: Failed to unzip wheel: openai-1.64.0-py3-none-any.whl Caused by: an upstream reader returned an error: io error occurred: HTTP status client error (403 Forbidden) for url (https://pypi.tuna.tsinghua.edu.cn/packages/9a/e6d503e1ea474522b2a15a904bb/openai-1.64.0-py3-none-any.whl) Caused by: io error occurred: HTTP status client error (403 Forbidden) for url (https://pypi.tuna.tsinghua.edu.cn/packages/9a/1a/e62718f311daa26d208800976d7944e5ee64.0-py3-none-any.whl) Caused by: HTTP status client error (403 Forbidden) for url (https://pypi.tuna.tsinghua.edu.cn/packages/9a/1a/e62718f311daa26d208800976d7944e5ee6d503e1ea474522b2a15l)