-
联系方式No response 1Panel 版本社区版:v1.10.11-lts 问题描述OpenResty 无法启动,报错 重现步骤前往应用商店安装 OpenResty,安装成功后点击启动 期待的正确结果No response 相关日志输出服务内部错误: stderr: Container 1Panel-openresty-Lb0D Starting Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/ext_overlay/Configs/1Panel/1panel/apps/openresty/openresty/conf/nginx.conf" to rootfs at "/usr/local/openresty/nginx/conf/nginx.conf": mount /ext_overlay/Configs/1Panel/1panel/apps/openresty/openresty/conf/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type 附加信息截图 |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
什么操作系统和架构?什么机器? |
Beta Was this translation helpful? Give feedback.
-
x86_64 的架构,是 iStoreOS 中通过 Docker 的方式安装的 1Panel |
Beta Was this translation helpful? Give feedback.
-
可以先尝试手动创建应用的安装目录。 |
Beta Was this translation helpful? Give feedback.
-
应该是IstoreOS安装时映射的问题,iStoreOS启动1Panel时设置的Docker映射里有 所以1Panel在内部创建的OpenResty目录 而1Panel使用Docker创建OpenResty容器的时候,使用的是宿主机的目录,所以找不到文件 解决办法: IstoreOS里面编辑1panel的那个容器,新增一个 |
Beta Was this translation helpful? Give feedback.
-
今天偶然发现 1panel 里显示的文件,但是在宿主机里就成了目录了,我怀疑就是这个的问题 |
Beta Was this translation helpful? Give feedback.
-
1Panel 给 OpenResty 创建的配置文件在 1Panel 里面看是正常的,但是在宿主机里全是文件夹。在宿主机里手动替换为正确的配置文件后 OpenResty 就能正确运行了。 但是目前 1Panel 看到的 OpenResty 配置文件和宿主机上真实存在的配置文件仍然不是同一个。 对1Panel 的网站设置进行编辑没有任何作用。而且 1Panel 里看到的配置文件到底存放在宿主机的哪里依旧未知。 |
Beta Was this translation helpful? Give feedback.
-
我记得这个问题我改了,后来才看到的你的 ISSUE,应该好了吧? |
Beta Was this translation helpful? Give feedback.
-
设备绿联,系统是最新的pro,同样的问题。 |
Beta Was this translation helpful? Give feedback.
已解决,停止原先的容器,删除宿主机内
/ext_overlay/Configs/1Panel/1panel
目录,新建一个容器添加下面的挂载路径,启动后执行容器内的/app/reinstall.sh
就可以了