Fatal: Failed to create the protocol stack: datadir already used by another process
我在tmux中运行了一个选项卡:
geth --ws --mainnet --syncmode snap
在另一个选项卡中,我试图连接到控制台,并得到以下错误:
$ geth console
INFO [09-02|20:25:33.433] Starting Geth on Ethereum mainnet... INFO [09-02|20:25:33.433] Bumping default cache on mainnet provided=1024 updated=4096INFO [09-02|20:25:33.434] Maximum peer count ETH=50 LES=0 total=50
INFO [09-02|20:25:33.434] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
Fatal: Failed to create the protocol stack: datadir already used by another process
➜ ~ $ geth consoleINFO [09-02|20:26:54.885] Starting Geth on Ethereum mainnet...
INFO [09-02|20:26:54.885] Bumping default cache on mainnet provided=1024 updated=4096
INFO [09-02|20:26:54.886] Maximum peer count ETH=50 LES=0 total=50
INFO [09-02|20:26:54.886] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
Fatal: Failed to create the protocol stack: datadir already used by another process
➜ ~ 发布于 2021-09-03 11:33:26
你得跑
geth attach而不是
geth console附加用于连接到正在运行的实例。Console用于启动实例并将控制台导入该实例。
https://ethereum.stackexchange.com/questions/109262
复制相似问题