question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calling `settings_set` writes invalid config in the daemon_settings.yml

See original GitHub issue

daemon_settings.yml before and after passing a valid setting(happens for any setting, either valid or invalid) Specifically lbryum_servers field is overwritten in the python’s list format instead of colon separated

$ cat ~/.lbrynet/daemon_settings.yml
 blockchain_name: lbrycrd_regtest
 download_directory: /home/hackrush/Downloads
 lbryum_servers:
 - localhost:50001
 reflect_uploads: false
 share_usage_data: false
 use_upnp: false

$ lbrynet-cli settings_set --download_directory="/home/hackrush/Downloads" > /dev/null

$ cat ~/.lbrynet/daemon_settings.yml
 blockchain_name: lbrycrd_regtest
 download_directory: /home/hackrush/Downloads
 lbryum_servers:
 - [localhost, 50001]
 reflect_uploads: false
 share_usage_data: false
 use_upnp: false

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tzarebczancommented, Feb 22, 2018

@KamilPiekutowski can you see if this still happens on 0.19 RC37 using his example. You should be able to create that file from scratch with his settings and see if it still messes up the sever list.

0reactions
tzarebczancommented, May 17, 2018

Ran into the same on Windows: If you have a custom lbryum_servers: config in your daemon_settings.yml such as:

{disable_max_key_fee: false, download_directory: 'C:\Users\testaccountclean\Desktop',
 share_usage_data: true,
 lbryum_servers: ["victor.lbry.tech:50001"]}

And then go into app settings to change any persistent settings, i.e. max key fee, the file is then saved as (notice missing curley braces and syntax):

disable_max_key_fee: false
download_directory: C:\Users\testaccountclean\Desktop
lbryum_servers:
- [victor.lbry.tech, 50001]
share_usage_data: true

When restarting the daemon, you get:

Traceback (most recent call last):
  File "lbrynet-daemon-script.py", line 2, in <module>
  File "site-packages\lbrynet\daemon\DaemonControl.py", line 61, in start
  File "site-packages\lbrynet\conf.py", line 532, in load_conf_file_settings
  File "site-packages\lbrynet\conf.py", line 508, in _convert_conf_file_lists
  File "site-packages\lbrynet\conf.py", line 167, in server_list
  File "site-packages\lbrynet\conf.py", line 162, in server_port
AttributeError: 'list' object has no attribute 'split'
Failed to execute script lbrynet-daemon-script

The correct syntax would be:

lbryum_servers:
- "victor.lbry.tech:50001"

or lbryum_servers: ["victor.lbry.tech:50001"]

Read more comments on GitHub >

github_iconTop Results From Across the Web

semgrep reports "invalid configuration file" when running from ...
Describe the bug Fresh install of semgrep from brew reports this error when calling 'semgrep' via cli ➜ ~ semgrep semgrep error: missing ......
Read more >
ISY994 - Invalid config - Configuration
I am new to Home Assistant. I am trying to configure my ISY994i. It is running V5.0.13a I have followed the Instructions on...
Read more >
Prettier: invalid configuration file even though the file is ...
The configuration file that I created through the command "echo .prettierrc.json" created with file format UTF16 and that caused an error ...
Read more >
How to solve the error: "Invalid compiler config file"
Hi Bogdan, we have had no compiler settings in the localsettings.properties. I'd thought the cpptestrace call to generate the bdf before ...
Read more >
How to Fix Errors in YAML (.YML) Config Files - Knowledgebase
Below is a list of common mistakes that people make when configuring YAML files. You should be using spaces instead of tabs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found