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

Running kupo twice with same configuration results in configuration mismatch error #86

Closed
1 of 4 tasks
nielstron opened this issue Nov 17, 2022 · 1 comment
Closed
1 of 4 tasks
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@nielstron
Copy link
Contributor

What Git revision are you using? release v2.2.0

What operating system are you using, and which version?

  • Linux / Ubuntu
  • Linux / Other
  • OSX
  • Windows

Describe what the problem is?

I run

kupo \
  --ogmios-host $OGMIOS_HOST \
  --ogmios-port $OGMIOS_PORT \
  --since 39916796.e72579ff89dc9ed325b723a33624b596c08141c7bd573ecfff56a1f7229e4d09 \
  --match "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/*" \
  --match "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/*" \
  --match "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" \
  --match "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ" \
  --workdir ./kupo/db \
  --prune-utxo \
  --port 1445 \
  --defer-db-indexes

twice. The second time I get

{"severity":"Info","timestamp":"2022-11-17T16:50:51.913915825Z","thread":"15","message":{"Database":{"tag":"DatabaseCurrentVersion","currentVersion":9}},"version":"v2.2.0"}
{"severity":"Warning","timestamp":"2022-11-17T16:50:51.914228606Z","thread":"15","message":{"Database":{"tag":"DatabaseDeferIndexes","warning":"Creation of lookup indexes has been deferred: synchronization will be faster but many queries will also be a lot longer. Consider installing indexes once synchronization is done to speed up queries."}},"version":"v2.2.0"}
{"severity":"Error","timestamp":"2022-11-17T16:50:51.914394811Z","thread":"15","message":{"Configuration":{"tag":"ConfigurationInvalidOrMissingOption","hint":"Configuration patterns are different from previously known patterns. Restarting a running server using different command-line patterns is not allowed for it may likely be an error. If you do intent do dynamically manage patterns, please use the HTTP API instead of the command-line options."}},"version":"v2.2.0"}
kupo: ConflictingOptionsException "Configuration patterns are different from previously known patterns. Restarting a running server using different command-line patterns is not allowed for it may likely be an error. If you do intent do dynamically manage patterns, please use the HTTP API instead of the command-line options."

The issue seems to be the duplicated pattern. After removing it, the second time starts fine.

What should be the expected behavior?

Some more useful error message ;)

@KtorZ
Copy link
Member

KtorZ commented Nov 17, 2022

Ho. Good point. Patterns should probably be compared as a set.

@KtorZ KtorZ added bug Something isn't working good first issue Good for newcomers labels Nov 17, 2022
@KtorZ KtorZ closed this as completed in c2a80d7 Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants