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

bug: Relayed messages are not stored when running nwaku with docker compose #2380

Closed
fbarbu15 opened this issue Jan 29, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@fbarbu15
Copy link
Contributor

To reproduce

  1. Setup a RLN RELAY node as described here (the only thing I changes is the nwaku version in docker compose yaml. I used harbor.status.im/wakuorg/nwaku:v0.24.0)
  2. Publish some messages like in the guide
  3. Query the messages using the store protocol like in the guide

Actual behavior

No message found, and I see in the logs errors : failed to insert message topics="waku archive" tid=1 file=archive.nim:121 err="failed prepare in runStmt: ERROR: column \"messagehash\" of relation \"messages\" does not exist\nLINE 1: INSERT INTO messages (id, messageHash, storedAt, contentTopi...\n ^\n"

Docker logs

nwaku_docker_logs.txt

@fbarbu15 fbarbu15 added the bug Something isn't working label Jan 29, 2024
@fbarbu15
Copy link
Contributor Author

Duplicate of #2196

@fbarbu15 fbarbu15 marked this as a duplicate of #2196 Jan 30, 2024
@Ivansete-status
Copy link
Collaborator

Hi @fbarbu15 ! While checking this issue I realised that this isn't related to #2196

In this case, the version harbor.status.im/wakuorg/nwaku:v0.24.0 is expecting the database to have the messageHash column. This issue happens because we missed to properly implement a migration script that will adapt the table and add the appropriate messageHash column.

The simpler fix for you in this case is just completely remove your local database and start it again.

Sorry for the inconvenience and let me know if any other issue happens, and thanks for submitting this btw!

@fbarbu15
Copy link
Contributor Author

Worked, thanks!

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
Archived in project
Development

No branches or pull requests

2 participants