dify icon indicating copy to clipboard operation
dify copied to clipboard

docker-plugin_daemon-1 don't run up

Open joeshen2021 opened this issue 9 months ago • 1 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.2.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

goroutine 1 [running]: github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x1857285, 0x5}, {0x1896127?, 0xc0001f9008?}, 0x1, {0xc000523f28, 0x1, 0x1}) /app/internal/utils/log/log.go:40 +0x305 github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...) /app/internal/utils/log/log.go:66 main.main() /app/cmd/server/main.go:19 +0x9f 2025/04/10 13:50:13 main.go:19: [PANIC]Error processing environment variables: envconfig.Process: assigning S3_USE_PATH_STYLE to S3UsePathStyle: converting '' to type bool. details: strconv.ParseBool: parsing "": invalid syntax panic: [PANIC]Error processing environment variables: envconfig.Process: assigning S3_USE_PATH_STYLE to S3UsePathStyle: converting '' to type bool. details: strconv.ParseBool: parsing "": invalid syntax

goroutine 1 [running]: github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x1857285, 0x5}, {0x1896127?, 0xc000370408?}, 0x1, {0xc00041ff28, 0x1, 0x1}) /app/internal/utils/log/log.go:40 +0x305 github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...) /app/internal/utils/log/log.go:66 main.main() /app/cmd/server/main.go:19 +0x9f

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

joeshen2021 avatar Apr 10 '25 13:04 joeshen2021

Hello @joeshen2021! 👋 I'm Dosu, your friendly bot here to help you tackle bugs, answer questions, and navigate the contributor landscape while you wait for a human maintainer. Let's get this sorted out together! 😊

The issue with the "docker-plugin_daemon-1" not running is due to a parsing error related to the environment variable S3_USE_PATH_STYLE. The error occurs because an empty string is being converted to a boolean, causing a strconv.ParseBool failure.

To resolve this error, you can:

  1. Modify the docker-compose.yaml file to include default values:

    plugin_daemon:
      environment:
        S3_USE_PATH_STYLE: ${PLUGIN_S3_USE_PATH_STYLE:-false}
    
  2. Alternatively, set the environment variables in your .env file:

    PLUGIN_S3_USE_PATH_STYLE=false
    

These changes will prevent the error: 'strconv.ParseBool: parsing "": invalid syntax' [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

dosubot[bot] avatar Apr 10 '25 13:04 dosubot[bot]