飞牛OS的docker运行dify中的dify-plugin_daemon-1容器,启动失败。 #8821

Closed
opened 2026-02-21 18:27:55 -05:00 by yindo · 3 comments
Owner

Originally created by @SwiftFloatFlow on GitHub (Mar 1, 2025).

Self Checks

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

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

Download the DIY Main zip file and copy it to Feiniu OS to run,Due to port occupancy issues,Adjusted the. env file:

EXPOSE_NGINX_PORT=10080   

and

EXPOSE_NGINX_SSL_PORT=10443

Also, due to the system's built-in PostgreSQL occupying 5432, the db container failed to start,So adjust the file. env:

DB_PORT=5433 

and

EXPOSE_DB_PORT=5433

Adjust the docker-compose.yaml file:

    ports:
      - '${EXPOSE_DB_PORT:-5433}:5432'  

and DB_PORT: ${DB_PORT:-5433},After starting the build, the db container can start normally,All containers have failed to start except for dify-plugin_daemon-1,The following is the error log of diffy-plugin_daemon-1:

2025/03/01 17:21:15 pool.go:32: [INFO]init routine pool, size: 10000



2025/03/01 17:21:15 /app/internal/db/init.go:17

[error] failed to initialize database, got error failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.22.0.6:5433: connect: connection refused)

2025/03/01 17:21:15 init.go:141: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.22.0.6:5433: connect: connection refused)

panic: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.22.0.6:5433: connect: connection refused)%!(EXTRA *pgconn.ConnectError=failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.22.0.6:5433: connect: connection refused))



goroutine 1 [running]:

github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x15f6a9b, 0x5}, {0x16247ca?, 0x2?}, 0x1, {0xc0005d7d00, 0x1, 0x1})

        /app/internal/utils/log/log.go:40 +0x326

github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...)

        /app/internal/utils/log/log.go:66

github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?)

        /app/internal/db/init.go:141 +0xbb

github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc0000ce900, 0xc0005f3348)

        /app/internal/server/server.go:55 +0xd2

main.main()

        /app/cmd/server/main.go:28 +0xff

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @SwiftFloatFlow on GitHub (Mar 1, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker), Self Hosted (Source) ### Steps to reproduce Download the DIY Main zip file and copy it to Feiniu OS to run,Due to port occupancy issues,Adjusted the. env file: ``` EXPOSE_NGINX_PORT=10080 ``` and ``` EXPOSE_NGINX_SSL_PORT=10443 ``` Also, due to the system's built-in PostgreSQL occupying 5432, the db container failed to start,So adjust the file. env: ``` DB_PORT=5433 ``` and ``` EXPOSE_DB_PORT=5433 ``` Adjust the docker-compose.yaml file: ``` ports: - '${EXPOSE_DB_PORT:-5433}:5432' ``` and DB_PORT: ${DB_PORT:-5433},After starting the build, the db container can start normally,All containers have failed to start except for dify-plugin_daemon-1,The following is the error log of diffy-plugin_daemon-1: ``` 2025/03/01 17:21:15 pool.go:32: [INFO]init routine pool, size: 10000 2025/03/01 17:21:15 /app/internal/db/init.go:17 [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.22.0.6:5433: connect: connection refused) 2025/03/01 17:21:15 init.go:141: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.22.0.6:5433: connect: connection refused) panic: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.22.0.6:5433: connect: connection refused)%!(EXTRA *pgconn.ConnectError=failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.22.0.6:5433: connect: connection refused)) goroutine 1 [running]: github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x15f6a9b, 0x5}, {0x16247ca?, 0x2?}, 0x1, {0xc0005d7d00, 0x1, 0x1}) /app/internal/utils/log/log.go:40 +0x326 github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...) /app/internal/utils/log/log.go:66 github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?) /app/internal/db/init.go:141 +0xbb github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc0000ce900, 0xc0005f3348) /app/internal/server/server.go:55 +0xd2 main.main() /app/cmd/server/main.go:28 +0xff ``` ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 18:27:55 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 1, 2025):

Hey there, @Floatingcolon! 👋 I'm here to help you with bug fixes, answer your questions, and even guide you on how to become a contributor.

A similar issue was reported where the dify-plugin_daemon-1 container failed to start on Feiniu OS due to a connection refused error to the PostgreSQL database at port 5433. The recommended solution was to switch from Dify version 1.0.0-beta1 to version 0.15.3. If the issue persists after changing the version, it is suggested to remove the downloaded Docker images before redeploying [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] commented on GitHub (Mar 1, 2025): <!-- Greeting --> Hey there, @Floatingcolon! 👋 I'm here to help you with bug fixes, answer your questions, and even guide you on how to become a contributor. <!-- Answer --> A similar issue was reported where the `dify-plugin_daemon-1` container failed to start on Feiniu OS due to a connection refused error to the PostgreSQL database at port 5433. The recommended solution was to switch from Dify version 1.0.0-beta1 to version 0.15.3. If the issue persists after changing the version, it is suggested to remove the downloaded Docker images before redeploying <sup>[[1]](https://github.com/langgenius/dify/issues/13922)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/495689a5-bcfb-4679-8b12-cf8df4646b9a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/495689a5-bcfb-4679-8b12-cf8df4646b9a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/495689a5-bcfb-4679-8b12-cf8df4646b9a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/495689a5-bcfb-4679-8b12-cf8df4646b9a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/495689a5-bcfb-4679-8b12-cf8df4646b9a?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/495689a5-bcfb-4679-8b12-cf8df4646b9a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/495689a5-bcfb-4679-8b12-cf8df4646b9a?feedback_type=other)</sup>
Author
Owner

@SwiftFloatFlow commented on GitHub (Mar 2, 2025):

Using work/app/web version 0.15.3,Still unable to run dify-plugin_daemon-1,Same failure log as before:

2025/03/02 16:10:05 pool.go:32: [INFO]init routine pool, size: 10000



2025/03/02 16:10:06 /app/internal/db/init.go:17

[error] failed to initialize database, got error failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.19.0.5:5434: connect: connection refused)

2025/03/02 16:10:06 init.go:103: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.19.0.5:5434: connect: connection refused)

panic: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.19.0.5:5434: connect: connection refused)%!(EXTRA *pgconn.ConnectError=failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.19.0.5:5434: connect: connection refused))



goroutine 1 [running]:

github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x15cf074, 0x5}, {0x15fc583?, 0x2?}, 0x1, {0xc0005bfd00, 0x1, 0x1})

        /app/internal/utils/log/log.go:40 +0x326

github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...)

        /app/internal/utils/log/log.go:66

github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?)

        /app/internal/db/init.go:103 +0xbb

github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc000116918, 0xc00023f348)

        /app/internal/server/server.go:55 +0xd2

main.main()

        /app/cmd/server/main.go:28 +0xff
@SwiftFloatFlow commented on GitHub (Mar 2, 2025): Using work/app/web version 0.15.3,Still unable to run dify-plugin_daemon-1,Same failure log as before: ``` 2025/03/02 16:10:05 pool.go:32: [INFO]init routine pool, size: 10000 2025/03/02 16:10:06 /app/internal/db/init.go:17 [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.19.0.5:5434: connect: connection refused) 2025/03/02 16:10:06 init.go:103: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.19.0.5:5434: connect: connection refused) panic: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.19.0.5:5434: connect: connection refused)%!(EXTRA *pgconn.ConnectError=failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.19.0.5:5434: connect: connection refused)) goroutine 1 [running]: github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x15cf074, 0x5}, {0x15fc583?, 0x2?}, 0x1, {0xc0005bfd00, 0x1, 0x1}) /app/internal/utils/log/log.go:40 +0x326 github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...) /app/internal/utils/log/log.go:66 github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?) /app/internal/db/init.go:103 +0xbb github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc000116918, 0xc00023f348) /app/internal/server/server.go:55 +0xd2 main.main() /app/cmd/server/main.go:28 +0xff ```
Author
Owner

@SwiftFloatFlow commented on GitHub (Mar 2, 2025):

已经成功启动并使用,有同样问题的可以参考网页:https://club.fnnas.com/forum.php?mod=viewthread&tid=15150&highlight=

@SwiftFloatFlow commented on GitHub (Mar 2, 2025): 已经成功启动并使用,有同样问题的可以参考网页:_https://club.fnnas.com/forum.php?mod=viewthread&tid=15150&highlight=_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8821