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

Database Connection Error When Using Image Generation Plugin #2158

Closed
daizhengxue opened this issue Jan 11, 2025 · 1 comment
Closed

Database Connection Error When Using Image Generation Plugin #2158

daizhengxue opened this issue Jan 11, 2025 · 1 comment

Comments

@daizhengxue
Copy link
Contributor

Database Connection Error When Using Image Generation Plugin

Bug Description

When installing and using the @elizaos/plugin-image-generation plugin, the application crashes with a database connection error, even though the plugin itself doesn't directly use database functionality.

Steps to Reproduce

  1. Install the image generation plugin
  2. Start the agent with the plugin enabled

Error Message

TypeError: The database connection is not open
at Database.prepare (/Users/xxx/eliza/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
at SqliteDatabaseAdapter.getParticipantsForAccount (file:///Users/xxx/eliza/packages/adapter-sqlite/dist/index.js:137:30)
at AgentRuntime.ensureParticipantExists (file:///Users/xxx/eliza/packages/core/dist/index.js:29863:57)

Stack Trace Analysis

The error occurs in:

  1. packages/adapter-sqlite/dist/index.js:137:30
  2. packages/core/dist/index.js:29863:57
  3. Specifically in AgentRuntime.ensureParticipantExists

Additional Context

  • The application works fine without the image generation plugin
  • The error seems to be triggered by the core's participant management system, not directly by the plugin
  • No database configuration is required in the documentation for the image plugin

Environment

  • Node.js: v23.5.0
  • Package Manager: pnpm
@daizhengxue daizhengxue added the bug Something isn't working label Jan 11, 2025
@AIFlowML AIFlowML added Need Feedback and removed bug Something isn't working labels Jan 12, 2025
@AIFlowML
Copy link
Collaborator

Node.js: v23.5.0 i not think is the supporte one.
But we need more data.

What DB ?
What ElizaOS verision ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants