[Bug] docker compose无法正常运行casdoor #6360
Replies: 5 comments
-
👀 @sistit Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
Hey @sistit! I'm here to help you with any issues you're facing. I can assist with bug fixes, answer your questions, and guide you to become a contributor. Let's tackle this together! To resolve the error "error mounting '/opt/lobe/init_data.json' to rootfs at '/init_data.json': not a directory," ensure that the volumes:
- ./init_data.json:/init_data.json This means that there should be a file named Additionally, to ensure Casdoor can retrieve the OIDC configuration, verify that the if [ $(wget --timeout=5 --spider --server-response ${AUTH_CASDOOR_ISSUER}/.well-known/openid-configuration 2>&1 | grep -c 'HTTP/1.1 200 OK') -eq 0 ]; then
echo '⚠️Warining: Unable to fetch OIDC configuration from Casdoor'
# Additional logging...
fi Ensure that the URL specified by To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
There already is a file named init_data.json in the same directory as docker-compose.yml.@dosu |
Beta Was this translation helpful? Give feedback.
-
same problem |
Beta Was this translation helpful? Give feedback.
-
这个问题通常是因为你的 LobeChat 容器无法访问到 Casdoor 容器导致的,请检查你的网络连通性。 |
Beta Was this translation helpful? Give feedback.
-
📦 Platform
Self hosting Docker
📦 Deploymenet mode
server db(lobe-chat-database image)
📌 Version
newest
💻 Operating System
Ubuntu
🌐 Browser
Chrome
🐛 Bug Description
首次部署运行bash <(curl -fsSL https://lobe.li/setup.sh) -l zh_CN,文件init_data.json生成成功,但运行docker-compose up提示 error mounting "/opt/lobe/init_data.json" to rootfs at "/init_data.json": mount src=/opt/lobe/init_data.json, dst=/init_data.json, dstFd=/proc/thread-self/fd/8, 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。有意将init_data.json删除并创建同名文件夹,除casdoor外都启动成功,报错提示无法从 Casdoor 获取 OIDC 配置
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions