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

bee printconfig gives wrong info #4850

Open
cobordism opened this issue Oct 5, 2024 · 3 comments
Open

bee printconfig gives wrong info #4850

cobordism opened this issue Oct 5, 2024 · 3 comments
Assignees
Labels
needs-triaging new issues that need triaging

Comments

@cobordism
Copy link

Context

$ /usr/bin/bee version
2.1.0-de7eccc1
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

Summary

bee was installed via apt install bee=2.1.0 and started via systemctl.
The configuration file is in /etc/bee/bee.yaml

Expected behaviour

I expect bee printconfig to return the configuration of the running bee... or at least sudo bee printconfig.
At the very very least I would expect sudo -u bee bee printconfig to print the correct config of the running bee and for the documentation to call out the need for sudo -u bee.

Actual behavior

bee printconfig prints the default configuration and completely ignores the configuration in /etc/bee that the running bee is using.

Steps to reproduce

install bee from apt repository.
Start bee with systemctl start bee.service

note:

$ cat /etc/systemd/system/multi-user.target.wants/bee.service 
[Unit]
Description=Bee - Ethereum Swarm node
Documentation=https://docs.ethswarm.org
After=network.target

[Service]
EnvironmentFile=-/etc/default/bee
NoNewPrivileges=true
User=bee
Group=bee
ExecStart=/usr/bin/bee start --config /etc/bee/bee.yaml
Restart=always
RestartSec=5s

[Install]
WantedBy=multi-user.target

Possible solution

query the running bee to dump its actually used configuration ?

@cobordism cobordism added the needs-triaging new issues that need triaging label Oct 5, 2024
@ldeffenb
Copy link
Collaborator

ldeffenb commented Oct 5, 2024

AFAIK, that is WAD - Working As Designed.

@cobordism cobordism changed the title bee printconfig gives wring info bee printconfig gives wrong info Oct 5, 2024
@cobordism
Copy link
Author

AFAIK, that is WAD - Working As Designed.

then how would I query what the configuration is of the bee client that is currently running?

$ bee -h | grep printconfig
  printconfig Print default or provided configuration in yaml format

Looks like it should print default or provided configuration in yaml format. no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triaging new issues that need triaging
Projects
None yet
Development

No branches or pull requests

4 participants
@ldeffenb @cobordism @acha-bill and others