Skip to content

When using tingodb, no more events are published after restarting app #154

Open
@gingobaum

Description

Hi,

I wanted to use eventstore with tingodb, since it's the only why for using eventstore with the local filesystem.

When I start my app for the first time, everything works fine. But when I start it again, it does not commit and publish the events. It seems there is an error when committing.

Error: duplicate key error index

The options I pass to eventstore are:

{
	"type": "tingodb",
	"dbPath": "./data/store",
	"eventsCollectionName": "events",
	"snapshotsCollectionName": "snapshots",
	"transactionsCollectionName": "transactions"
}

When I delete the .tingo file and start again, it's all fine.

Any clues what is going wrong?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions