Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] #6674

Open
DannyJanmaat opened this issue Mar 3, 2025 · 3 comments
Open

[Bug] #6674

DannyJanmaat opened this issue Mar 3, 2025 · 3 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@DannyJanmaat
Copy link

📦 Platform

Self hosting Docker

📦 Deploymenet mode

server db(lobe-chat-database image)

📌 Version

v1.68.3

💻 Operating System

Windows

🌐 Browser

Edge

🐛 Bug Description

Windows 11 Enterprise.
WSL-2 Ubuntu. Latest updates. Clean install.

https://github.com/lobehub/lobe-chat/blob/main/docker-compose/setup.sh

docker-compose up -d

ERROR: Invalid interpolation format for "entrypoint" option in service "minio": "/bin/sh -c "
minio server /etc/minio/data --address ':${MINIO_PORT}' --console-address ':9001' &
MINIO_PID=$!
while ! curl -s http://localhost:${MINIO_PORT}/minio/health/live; do
echo 'Waiting for MinIO to start...'
sleep 1
done
sleep 5
mc alias set myminio http://localhost:${MINIO_PORT} ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD}
echo 'Creating bucket ${MINIO_LOBE_BUCKET}'
mc mb myminio/${MINIO_LOBE_BUCKET}
wait $MINIO_PID
"

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

Solution:

#!/bin/bash

Create a backup of the original file

cp docker-compose.yml docker-compose.yml.backup

Change the name property to version and services

sed -i '1s/name: lobe-chat-database/version: '''3.8'''/' docker-compose.yml

Fix the dollar sign escaping in the minio service

sed -i 's/MINIO_PID=\$!/MINIO_PID=$$!/g' docker-compose.yml
sed -i 's/wait \$MINIO_PID/wait $$MINIO_PID/g' docker-compose.yml

Fix the dollar sign escaping in the lobe service

sed -i 's/LOBE_PID=\$!/LOBE_PID=$$!/g' docker-compose.yml
sed -i 's/wait \$LOBE_PID/wait $$LOBE_PID/g' docker-compose.yml
sed -i 's/if [ $(wget/if [ $$(wget/g' docker-compose.yml
sed -i 's/printf.*%s''' \$(wget/printf '''%s''' $$(wget/g' docker-compose.yml
sed -i 's/{print \$4}/{print $$4}/g' docker-compose.yml
sed -i 's/if [ $(wget/if [ $$(wget/g' docker-compose.yml

echo "Docker Compose file has been updated. A backup was saved as docker-compose.yml.backup"

@DannyJanmaat DannyJanmaat added the 🐛 Bug Something isn't working | 缺陷 label Mar 3, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Mar 3, 2025
@lobehubbot
Copy link
Member

👀 @DannyJanmaat

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Mar 3, 2025

Hey @DannyJanmaat! I'm here to help you with bug fixes, answer questions, and guide you on becoming a contributor. Let's tackle this issue together while we wait for a human maintainer.

To resolve the "Invalid interpolation format for 'entrypoint' option in service 'minio'" error, ensure that all environment variables used in the entrypoint section are correctly defined in your .env file. The error typically occurs when an environment variable is not set or is incorrectly formatted.

In the docker-compose.yml, the entrypoint for the minio service uses several environment variables:

entrypoint: >
  /bin/sh -c "
    minio server /etc/minio/data --address ':${MINIO_PORT}' --console-address ':9001' &
    MINIO_PID=\$!
    while ! curl -s http://localhost:${MINIO_PORT}/minio/health/live; do
      echo 'Waiting for MinIO to start...'
      sleep 1
    done
    sleep 5
    mc alias set myminio http://localhost:${MINIO_PORT} ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD}
    echo 'Creating bucket ${MINIO_LOBE_BUCKET}'
    mc mb myminio/${MINIO_LOBE_BUCKET}
    wait \$MINIO_PID
  "

Check that the following variables are defined in your .env file:

  • MINIO_PORT
  • MINIO_ROOT_USER
  • MINIO_ROOT_PASSWORD
  • MINIO_LOBE_BUCKET

Ensure there are no syntax errors or missing values in the .env file. If any of these variables are missing or incorrectly formatted, it could lead to the interpolation error [1].

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

Copy link

dosubot bot commented Mar 3, 2025

To resolve the "Invalid interpolation format for 'entrypoint' option in service 'minio'" error, ensure that all environment variables used in the entrypoint section are correctly defined in your .env file. The error typically occurs when an environment variable is not set or is incorrectly formatted.

In the docker-compose.yml, the entrypoint for the minio service uses several environment variables:

entrypoint: >
  /bin/sh -c "
    minio server /etc/minio/data --address ':${MINIO_PORT}' --console-address ':9001' &
    MINIO_PID=\$!
    while ! curl -s http://localhost:${MINIO_PORT}/minio/health/live; do
      echo 'Waiting for MinIO to start...'
      sleep 1
    done
    sleep 5
    mc alias set myminio http://localhost:${MINIO_PORT} ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD}
    echo 'Creating bucket ${MINIO_LOBE_BUCKET}'
    mc mb myminio/${MINIO_LOBE_BUCKET}
    wait \$MINIO_PID
  "

Check that the following variables are defined in your .env file:

  • MINIO_PORT
  • MINIO_ROOT_USER
  • MINIO_ROOT_PASSWORD
  • MINIO_LOBE_BUCKET

Ensure there are no syntax errors or missing values in the .env file. If any of these variables are missing or incorrectly formatted, it could lead to the interpolation error [1].

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

2 participants