-
Notifications
You must be signed in to change notification settings - Fork 1.7k
--config flag with custom path doesn't work on new release. #9791
Description
Before filing a new issue, please provide the following information.
- Parity Ethereum version: 2.0.7
- Operating system: Linux
- Installation: docker
- Fully synchronized: yes
- Network: ethereum & ropsten ...
- Restarted: yes
Your issue description goes here below. Try to include actual vs. expected behavior and steps to reproduce the issue.
I've encounter this error from version 2.0.7 and above:
Oct 22 06:58:23 ip-172-31-43-223 docker[8992]: There was an error reading your config file at: /root/.local/share/io.parity.ethereum/config.toml
Oct 22 06:58:23 ip-172-31-43-223 docker[8992]: Config doesn't match any presets [dev, mining, non-standard-ports, insecure, dev-insecure]
My parity config is put at /var/lib/parity-ethereum/config.toml
I ran parity using a systemd service:
[Unit]
Description=Parity Ethereum Node
After=docker.service
Requires=docker.service
[Service]
Restart=on-failure
ExecStart=/usr/bin/docker run --name parity-ethereum \
--publish 8545:8545 \
--publish 30303:30303 \
--publish 30303:30303/udp \
--volume /var/lib/parity-ethereum/:/root/.local/share/io.parity.ethereum/ \
parity/parity:v2.0.7 \
--config /root/.local/share/io.parity.ethereum/config.toml \
--base-path /root/.local/share/io.parity.ethereum/
ExecStop=/usr/bin/docker stop -t 10 parity-ethereum
ExecStopPost=/usr/bin/docker rm -f parity-ethereum
[Install]
WantedBy=default.target
Which is basically equivalent to this command:
docker run --name parity-ethereum
--publish 8545:8545
--publish 30303:30303
--publish 30303:30303/udp
--volume /var/lib/parity-ethereum/:/root/.local/share/io.parity.ethereum/
parity/parity:v2.0.7
--config /root/.local/share/io.parity.ethereum/config.toml
--base-path /root/.local/share/io.parity.ethereum/
I've tried docker tags stable, v2.0.7, v2.0.8, they all shows the same error. I've also tried v2.1.2 and 2.1.3 (which I believe are beta versions).
When I switch to v2.0.6, parity works fine and being able to synchronize without error. I think some how --config flag assume that I use a preset despite the fact that it is a custom config path.