-
Notifications
You must be signed in to change notification settings - Fork 52
Error upgrading parity data: CannotCreateConfigPath #75
Comments
Here's how I got around this:
Another detail: What environment is |
@jwasinger I normally run them on VM's directly and don't see these issues. Is your user a member of the docker group? e.g. can you run |
This error happens on parity v2.0.7 and later. |
@bilonic thanks for that, let me check this. |
It is linked to this change in the last release : When volumes are mount like this
The folder will be created as root and parity user cannot write/access it. The solution proposed in openethereum/parity-ethereum#9689 is to create
But in our case we will not be able to use -d /parity/data anymore ... |
@branciard please checkout the latest master and try again. Merged a pull request: #77 to fix. |
@branciard any update on this...Or will I just close the issue? |
Yes perfect @ddorgan. I just test and it is ok with the parity user added to docker-compose and new folders targeted. Thanks ! |
Great thanks for the reply. |
This was because of lack of permissions on the volumes. Just notice that the volume might have been created using root user. host1 | Error upgrading parity data: CannotCreateConfigPath |
@armanfatahi yip, fixed in the latest master (when creating from scratch) or do a one time chown for existing setups. |
Issue still persists on version: "3"
services:
parity:
image: parity/parity:nightly
ports:
- 8545:8545
- 8546:8546
- 30303:30303
- 30303:30303/udp
user: root
volumes:
- ./io.parity.ethereum:/root/.local/share/io.parity.ethereum
command: --light --jsonrpc-apis 'web3,eth,pubsub,net,parity,parity_pubsub,traces,rpc,secretstore,shh,shh_pubsub' --jsonrpc-interface 0.0.0.0 --jsonrpc-hosts="all" |
@daithi-coombes thanks, your solution solved the problem |
Here's what I did:
Here's what I see:
I'm running everything as root user on a VM.
The text was updated successfully, but these errors were encountered: