Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FATAL] toml: line 732 (last key "sources.relays.cache_file"): Key 'sources.relays.cache_file' has already been defined. #2998

Unanswered
IntelligenceInside asked this question in Q&A
Discussion options

Alpine linux
Dnscrypt Ver 2.15

starting dnscrypt

[FATAL] toml: line 732 (last key "sources.relays.cache_file"): Key 'sources.relays.cache_file' has already been defined.

You must be logged in to vote

Replies: 2 comments 2 replies

Comment options

As the error message says, cache_file has been define twice in the relay section.

You must be logged in to vote
2 replies
Comment options

No, i cant find duplicate entry. Something else is the reason ??

Comment options

I'd suggest starting from the example file, and making incremental changes, testing each of them individually.

Comment options

Without showing us even the relevant part of your config, all we can do is guess...

Using what you provided in #2941 (reply in thread) as a base, I can cause the error by copying lines 729-738 and pasting over lines 721-730.

Before
717: [sources]
718: 
719: ### An example of a remote source from https://github.com/DNSCrypt/dnscrypt-resolvers
720: 
721: # [sources.public-resolvers]
722: # urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md', 'https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md']
723: # cache_file = '/var/cache/dnscrypt-proxy/public-resolvers.md'
724: # minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
725: # refresh_delay = 72
726: # prefix = ''
727: 
728: ### Anonymized DNS relays
729: 
730: [sources.relays]
731: urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/relays.md', 'https://download.dnscrypt.info/resolvers-list/v3/relays.md']
732: cache_file = '/var/cache/dnscrypt-proxy/relays.md'
733: minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
734: refresh_delay = 72
735: prefix = ''
736: 
737: ### ODoH (Oblivious DoH) servers and relays
738: 
After
717: [sources]
718: 
719: ### An example of a remote source from https://github.com/DNSCrypt/dnscrypt-resolvers
720: 
721: 
722: [sources.relays]
723: urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/relays.md', 'https://download.dnscrypt.info/resolvers-list/v3/relays.md']
724: cache_file = '/var/cache/dnscrypt-proxy/relays.md'
725: minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
726: refresh_delay = 72
727: prefix = ''
728: 
729: ### ODoH (Oblivious DoH) servers and relays
730: 
731: urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/relays.md', 'https://download.dnscrypt.info/resolvers-list/v3/relays.md']
732: cache_file = '/var/cache/dnscrypt-proxy/relays.md'
733: minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
734: refresh_delay = 72
735: prefix = ''
736: 
737: ### ODoH (Oblivious DoH) servers and relays
738: 

I don't want to believe this happened because "remove sources.public-resolvers" was not my suggestion at all, but I can imagine a scenario where this was accidental and someone unfamiliar with TOML syntax and how to correctly uncomment might think everything appears normal at a glance.

Please provide your config that causes the error so we can help properly.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /