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

Cannot start in ultra light mode? #4937

Closed
Cafe137 opened this issue Dec 21, 2024 · 1 comment · Fixed by #4938
Closed

Cannot start in ultra light mode? #4937

Cafe137 opened this issue Dec 21, 2024 · 1 comment · Fixed by #4938
Labels
needs-triaging new issues that need triaging

Comments

@Cafe137
Copy link

Cafe137 commented Dec 21, 2024

Context

2.3.1

Summary

Some steps were moved out of the SwapEnable condition in this commit: 1f0c3f6#diff-515b2d0691202c4ea5e578ec896258ae9c440c381b608ed1eb7116a27847057dL492

It seems InitChequebookFactory, or chequebookFactory.ERC20Address are called for ultra light mode now, shutting down the Bee node during startup sequence:

"time"="2024-12-21 18:42:50.040629" "level"="info" "logger"="node" "msg"="bee version" "version"="2.3.1-67cc9b77"
"time"="2024-12-21 18:42:50.098554" "level"="info" "logger"="node" "msg"="swarm public key" "public_key"="034dac0d64b646254228c6ff4d797bb24dc874f6734b345657f7b05a4983d16e93"
"time"="2024-12-21 18:42:50.154441" "level"="debug" "logger"="node" "msg"="using existing libp2p key"
"time"="2024-12-21 18:42:50.216656" "level"="debug" "logger"="node" "msg"="using existing pss key"
"time"="2024-12-21 18:42:50.216686" "level"="info" "logger"="node" "msg"="pss public key" "public_key"="0276a23a6dd136309ce972a189e502c624f5544be75159dab12d81e3049c1dda55"
"time"="2024-12-21 18:42:50.216697" "level"="info" "logger"="node" "msg"="using ethereum address" "address"="0xfB67fff961D0F8f9c94b2d44de32c59B15EA11b7"
"time"="2024-12-21 18:42:50.251070" "level"="info" "logger"="node" "msg"="using overlay address" "address"="254d0189262aff04c18772e5a83576a2deaea2ad6e84af4c4b2528bf2f8cc900"
"time"="2024-12-21 18:42:50.251098" "level"="info" "logger"="node" "msg"="starting with a disabled chain backend"
"time"="2024-12-21 18:42:50.251294" "level"="info" "logger"="node" "msg"="using chain with network network" "chain_id"=100 "network_id"=1
"time"="2024-12-21 18:42:50.271399" "level"="info" "logger"="node" "msg"="using default factory address" "chain_id"=100 "factory_address"="0xC2d5A532cf69AA9A1378737D8ccDEF884B6E7420"
"time"="2024-12-21 18:42:50.271440" "level"="error" "logger"="node" "msg"="got error, shutting down..." "error"="factory fail: disabled chain backend"
"time"="2024-12-21 18:42:50.271456" "level"="info" "logger"="node" "msg"="starting debug & api server" "address"="127.0.0.1:1633"
"time"="2024-12-21 18:42:50.271581" "level"="error" "logger"="node" "msg"="failed to build bee node" "error"="factory fail: disabled chain backend"

Expected behavior

Can start with a disabled chain backend

Actual behavior

Please see summary

Steps to reproduce

This is my configuration

api-addr: 127.0.0.1:1633
verbosity: 5
swap-enable: false
mainnet: true
full-node: false
cors-allowed-origins: '*'
use-postage-snapshot: false
resolver-options: https://cloudflare-eth.com
data-dir: /Users/aron/Library/Application Support/Swarm Desktop/data-dir
password: 2984c394-3594-44e3-b9d2-f8c786b24675
storage-incentives-enable: false
chequebook-enable: false

Possible solution

https://github.com/ethersphere/bee/pull/4936/files

I can start in ultra light mode with this, but there might have been a reason these steps were moved out of the check in the first place.

@Cafe137 Cafe137 added the needs-triaging new issues that need triaging label Dec 21, 2024
@aranyia
Copy link
Contributor

aranyia commented Dec 23, 2024

@istae Could you have a look at this?

@istae istae linked a pull request Dec 24, 2024 that will close this issue
4 tasks
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

Successfully merging a pull request may close this issue.

2 participants