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

Using plugin-tee causes better-sqlite3 to report an error. #1499

Open
arthursjy opened this issue Dec 27, 2024 · 6 comments
Open

Using plugin-tee causes better-sqlite3 to report an error. #1499

arthursjy opened this issue Dec 27, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@arthursjy
Copy link

arthursjy commented Dec 27, 2024

When I use plugin-tee, I get an error: TypeError: The database connection is not open.
I'm using version v0.1.7-alpha.1(node v23.3.0) and here is my configuration:
image
image
image
and run pnpm rebuild better-sqlite3 doesn't help!

@arthursjy arthursjy added the bug Something isn't working label Dec 27, 2024
@HashWarlock
Copy link
Collaborator

Can you confirm this only happens in the TEE plugin? Are you running the TEE Simulator alongside the agent as well based on the documentation?

If TEE Simulator is not running. Make sure to start docker, pull latest simulator image and run it

docker pull phalanetwork/tappd-simulator:latest
docker run --rm -p 8090:8090 phalanetwork/tappd-simulator:latest

@arthursjy
Copy link
Author

@HashWarlock Yes, I have the docker container running locally.
When I remove the value of plugin @elizaos/plugin-tee inside the character file, the project works fine, but when I add this tee plugin and run it again, it reports this better-sqlite3 error.

@HashWarlock
Copy link
Collaborator

@HashWarlock Yes, I have the docker container running locally. When I remove the value of plugin @elizaos/plugin-tee inside the character file, the project works fine, but when I add this tee plugin and run it again, it reports this better-sqlite3 error.

Interesting, I will take a look into this then. My initial thoughts are do we need to remove the TEE checks at the beginning when loading the plugins into the Agent in agent/src/index.ts.

@HashWarlock
Copy link
Collaborator

I've seen others have other problems with this as well. I'm checking past builds to find out when the problem was introduced.

@AIFlowML
Copy link
Contributor

AIFlowML commented Jan 3, 2025

Interesting for TEE

@HashWarlock
Copy link
Collaborator

Can this potentially be due to the plugin being loaded twice? Can you remove this line and try again? https://github.com/elizaOS/eliza/blob/main/agent%2Fsrc%2Findex.ts#L574

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
None yet
Development

No branches or pull requests

3 participants