erigon
erigon copied to clipboard
panic on startup
System information
Erigon version: ./erigon --version
v2022.09.03
OS & Version: Windows/Linux/OSX
Debian 11 amd64
Commit hash :
32bd69e5316050005e34448ec6b0165f97173d50
Expected behaviour
regularly start up
Actual behaviour
crashing on start up
Steps to reproduce the behaviour
Systemd service
[Unit]
Description=Erigon Node
After=network.target
Wants=network.target
[Service]
User=myuser
Type=simple
Restart=always
RestartSec=5
ExecStart=/usr/local/bin/erigon --config /home/myuser/erigon/erigon-mainnet.toml
[Install]
WantedBy=multi-user.target
erigon-mainnet.toml
chain="mainnet"
datadir="/home/myuser/erigon"
"authrpc.jwtsecret="/home/myuser/erigon/jwtsecret.hex"
"prune.r.before"=11052984
prune="htc"
nat="stun:mystun.mydomain.ltd"
"http.addr"="0.0.0.0"
"authrpc.addr"="0.0.0.0"
"metrics.addr"="0.0.0.0"
"private.api.addr"="0.0.0.0:9090"
port=30304
"http.port"=8546
"authrpc.port"=8552
go version
go version go1.19.1 linux/amd64
Backtrace
[EROR] [09-24|14:58:54.763] catch panic err="interface conversion: interface {} is int64, not string" stack="[main.go:30 panic.go:884 iface.go:262 main.go:110 main.go:51 app.go:526 app.go:286 main.go:35 proc.go:250 asm_amd64.s:1594]"
starting the same config as startup parameters is working... 🤨
/usr/local/bin/erigon --chain=mainnet --datadir=/home/myuser/erigon --authrpc.jwtsecret=/home/myuser/erigon/jwtsecret.hex --prune.r.before=11052984 --prune=htc --nat="stun:relay.hwlegnano.it" --http.addr="0.0.0.0" --authrpc.addr="0.0.0.0" --metrics.addr="0.0.0.0" --private.api.addr="0.0.0.0:9090" --port=30304 --http.port=8546 --authrpc.port=8552
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
Similar area to: #5976
there is a typo in your toml file "authrpc.jwtsecret="/home/myuser/erigon/jwtsecret.hex" you are missing one quotation mark it should be "authrpc.jwtsecret"="/home/myuser/erigon/jwtsecret.hex"