SimpleDino Posted May 7, 2023 Share Posted May 7, 2023 (edited) Hello Unraid community, I've been working on integrating the Stable Diffusion Discord Bot (ausbitbank/stable-diffusion-discord-bot) with the superboki or Sygils container on Unraid, and I've encountered some issues along the way. Despite several attempts to resolve these errors/issues, I've been unsuccessful so far. I've also posted about the issue on the bot's GitHub repo (ausbitbank/stable-diffusion-discord-bot/issues/41). The problem I'm experiencing is that while the Discord bot successfully generates an image upon receiving a prompt, the image doesn't appear in the Discord channel. I can find the generated image in the Invoke Docker container output folder, but the path logic seems to be causing issues. I receive the following error from the Discord bot container: logs: Quote Error: ENOENT: no such file or directory, open '/mnt/user/SD-Outputs/InvokeAI/03-InvokeAI/output:/app/output000011.ac064d6c.2916674852.png'] { errno: -2, code: 'ENOENT', syscall: 'open', path: '/mnt/user/SD-Outputs/InvokeAI/03-InvokeAI/output:/app/output000011.ac064d6c.2916674852.png' } I've made adjustments to the .env file and docker-compose.yaml file, as shown below: .env file: Quote basePath="/mnt/user/SD-Outputs/InvokeAI/03-InvokeAI" dbPath="${basePath}/db" outputPath="${basePath}" docker-compose.yaml: Quote version: '3' services: discord-bot: build: . container_name: stable-diffusion-discord-bot volumes: - /mnt/user/SD-Outputs/InvokeAI/03-InvokeAI/db:/app/db - /mnt/user/SD-Outputs/InvokeAI/03-InvokeAI/output:/app/output environment: - channelID="xxxxx" - adminID="xxxxx" - apiUrl="http://xxxxxxx:9000/" - discordBotKey="xxxxx" # ... rest of the environment variables Dockerfile: Quote FROM node:14 WORKDIR /app COPY package*.json ./ RUN npm install COPY . . CMD ["npm", "start"] I would greatly appreciate it if someone could help me create a working Docker container for the Stable Diffusion Discord Bot that can be integrated with the superboki or Sygils container on the Unraid CA App Store. Any assistance or guidance would be immensely helpful. Thank you in advance! Edited May 7, 2023 by SimpleDino Quote Link to comment
Solution SimpleDino Posted May 27, 2023 Author Solution Share Posted May 27, 2023 (edited) SOLVED https://github.com/ausbitbank/stable-diffusion-discord-bot/issues/41 Volume mapping in docker-compose.yaml did it: volumes: - /mnt/user/appdata/stable-diffusion/outputs/03-InvokeAI:/app/output - ./db:/app/db and setting basepath in .env: basePath="/app/output/" Edited May 27, 2023 by SimpleDino Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.