-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[FATAL] toml: line 732 (last key "sources.relays.cache_file"): Key 'sources.relays.cache_file' has already been defined. #2998
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 2 replies
-
As the error message says, cache_file has been define twice in the relay section.
Beta Was this translation helpful? Give feedback.
All reactions
-
No, i cant find duplicate entry. Something else is the reason ??
Beta Was this translation helpful? Give feedback.
All reactions
-
I'd suggest starting from the example file, and making incremental changes, testing each of them individually.
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.