Closed jwasinger closed 6 years ago
Here's how I got around this:
docker-compose up
, get errorchmod a+rwx -R deployment/ data
Another detail: I'm running these containers on a Virtualbox Ubuntu:Xenial VM hosted on a windows 10 host.
What environment is parity-deploy
known to work in without these volume permission errors? I have a hunch that I will get better results using a VM running on a linux host or running docker directly on the host machine.
@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 docker run myimage
without sudo?
This error happens on parity v2.0.7 and later. With parity v2.0.6 and lower works fine.
@bilonic thanks for that, let me check this.
It is linked to this change in the last release : "Docker: run parity as normal user" https://github.com/paritytech/parity-ethereum/pull/9689
When volumes are mount like this
The folder will be created as root and parity user cannot write/access it.
The solution proposed in https://github.com/paritytech/parity-ethereum/pull/9689 is to create
RUN mkdir -p /home/parity/.local/share/io.parity.ethereum/
in the dockerfile
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: https://github.com/paritytech/parity-deploy/pull/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 stable
and nightly
. I had to change the user to root
to get it working
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.