[PANIC]failed to init dify plugin db: ERROR: function "uuid_generate_v4" already exists with same argument types (SQLSTATE 42723) #107

Closed
opened 2026-02-16 00:19:51 -05:00 by yindo · 1 comment
Owner

Originally created by @jzwyz on GitHub (May 8, 2025).

After I upgraded from version 0.x to version 1.3.1, the plugin_daemon container still failed to start. Check the logs

Use the dify-plugin-daemon 0.0.9-local image

2025/05/08 09:38:42 pool.go:32: [INFO]init routine pool, size: 10000
2025/05/08 09:38:42 init.go:85: [PANIC]failed to init dify plugin db: ERROR: function "uuid_generate_v4" already exists with same argument types (SQLSTATE 42723)
panic: [PANIC]failed to init dify plugin db: ERROR: function "uuid_generate_v4" already exists with same argument types (SQLSTATE 42723)

goroutine 1 [running]:
github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x18909ff, 0x5}, {0x18c23b5?, 0x7?}, 0x1, {0xc0005adce0, 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
github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?)
        /app/internal/db/init.go:85 +0x285
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc00013cc18, 0xc000309008)
        /app/internal/server/server.go:74 +0xd2
main.main()
        /app/cmd/server/main.go:28 +0x125
Originally created by @jzwyz on GitHub (May 8, 2025). After I upgraded from version 0.x to version 1.3.1, the plugin_daemon container still failed to start. Check the logs Use the dify-plugin-daemon 0.0.9-local image ```txt 2025/05/08 09:38:42 pool.go:32: [INFO]init routine pool, size: 10000 2025/05/08 09:38:42 init.go:85: [PANIC]failed to init dify plugin db: ERROR: function "uuid_generate_v4" already exists with same argument types (SQLSTATE 42723) panic: [PANIC]failed to init dify plugin db: ERROR: function "uuid_generate_v4" already exists with same argument types (SQLSTATE 42723) goroutine 1 [running]: github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x18909ff, 0x5}, {0x18c23b5?, 0x7?}, 0x1, {0xc0005adce0, 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 github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?) /app/internal/db/init.go:85 +0x285 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc00013cc18, 0xc000309008) /app/internal/server/server.go:74 +0xd2 main.main() /app/cmd/server/main.go:28 +0x125 ```
yindo added the plugin-daemon label 2026-02-16 00:19:51 -05:00
yindo closed this issue 2026-02-16 00:19:51 -05:00
Author
Owner

@fatelei commented on GitHub (Jan 11, 2026):

it has been fixed

@fatelei commented on GitHub (Jan 11, 2026): it has been fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#107