openethereum / parity-deploy

Parity deployment script.
Apache License 2.0
81 stars 52 forks source link

There was an error reading your config file at: /parity/authority.toml #24

Closed daverod24 closed 7 years ago

daverod24 commented 7 years ago

trying to set

./parity-deploy.sh --config aura --nodes 2 --name test image

This is my configuration but being original also gives error

image

the configuration throws two errors:

image

what can be done to solve ??

ddorgan commented 7 years ago

Hi there, Could you run this and check if it helps? Just execute:

rm -rf deployment && ./parity-deploy.sh --config aura --nodes 2 --name test

Let me know if this fixes the issue...

daverod24 commented 7 years ago

the same problem is not fixed.

it says that it is not a file I was reviewing as I can fix it I mount it separately as a volume in a busybox and mount the file perfectly but I do not know what I can do

ddorgan commented 7 years ago

Could you try removing both the deployment and data dir ... looks like something may have changed between when some keys were created and when you're running the container.

daverod24 commented 7 years ago

@ddorgan how to deploy aura??

I made git clone on another pc and try

`git clone https://github.com/paritytech/parity-deploy.git`

then

`./parity-deploy.sh --config aura --nodes 2 --name test`

docker-compose up -d and I get the same error image

daverod24 commented 7 years ago

cuando hago deploy en dev

./parity-deploy.sh --config dev --name test

trabaja bien

ddorgan commented 7 years ago

Which distro are you using? And what version? Also could you maybe tar up the parity-deploy dir and make it available so I can take a look. I sometimes get this if I'm using lots of different configs, but when I rm -rf data deployment docker-compose.yml and re-run parity-deploy.sh it works.

daverod24 commented 7 years ago

I tested it in two distros Linux drodrila-ever 4.9.47-1-MANJARO # 1 SMP PREEMPT Sat Sep 2 07:29:38 UTC 2017 x86_64 GNU / Linux and also Linux testing 4.9.0-3-amd64 # 1 SMP Debian 4.9.30-2 + deb9u2 (2017-06-26) x86_64 GNU / Linux

I'm going to prove what you tell me and I'll tell you

daverod24 commented 7 years ago

I do not know what I did but erased everything I made git clone   and then I did your steps and now is running in local

image

I am missing a test to see if I run in azure container services that I need it there with swarm I was going to ask you how to make the volumes were in azure storage.?

I did something like that image

  I'll try using kubernetes

ddorgan commented 7 years ago

I'm not 100% sure on the azure storage, but once docker-compose can talk to the backend and it's listed, it should just work. I've only ever tried this with kubernetes myself.

Can this issue be closed?

daverod24 commented 7 years ago

the problem persists when I want to have the files in swarm in azure!

in local on my machine if nodes work perfectly

I try to do this for the data to take from my volume of swarm

docker cp deployment / storageazure: / deployment

after

I add the volumes in docker-compose and I get the errors of not finding the file of authority.toml try several configurations, it will be that somehow you can improve that volume management example this:

    volumes:
       - ./deployment/chain/spec.json:/parity/spec.json
       - ./deployment/chain/reserved_peers:/parity/reserved_peers
       - ./deployment/1/password:/parity/password
       - ./deployment/1/authority.toml:/parity/authority.toml
       - ./deployment/1/${NETWORK_NAME}:/parity/data/keys/${NETWORK_NAME}
       - ./data/1:/parity/data

to this that by the way I try but does not take that conf, and gives me the same error:

    volumes:
       - namedvolumeforexample/deployment/chain/:/parity/
       - ./deployment/1/:/parity/
       - ./deployment/1/${NETWORK_NAME}:/parity/data/keys/${NETWORK_NAME}
       - ./data/1:/parity/data

these were the tests last night image

image

image

ddorgan commented 7 years ago

Hi there, As mentioned before, any chance you could tar up the whole directory and put it somewhere so I can take a look. Just want to 1) double check the config and 2) use the same swarm settings.

The actual files are a more useful than screenshots.

Thanks!