We're updating the issue view to help you get more done. 

Wrong folder ownership while trying to connect to Testnet using RC* docker image

Description

I am trying to follow https://docs.corda.net/head/docker-image.html#joining-testnet

1 2 3 4 5 6 7 8 9 azureuser@c4vm-1:~/docker$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic azureuser@c4vm-1:~/docker$ docker --version Docker version 18.09.2, build 6247962
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 azureuser@c4vm-1:~/docker$ ls -al total 24 drwxrwxr-x 2 azureuser azureuser 4096 Feb 19 13:48 . drwxr-xr-x 8 azureuser azureuser 4096 Feb 18 15:50 .. docker run -ti -e MY_PUBLIC_ADDRESS=168.61.50.163 -e ONE_TIME_DOWNLOAD_KEY=561764ed-284a-4dfa-8fd8-6573dd5f8eae -e LOCALITY=London -e COUNTRY=GB -v /home/azureuser/docker//config:/etc/corda -v /home/azureuser/docker//certificates:/opt/corda/certificates corda/corda-zulu-5.0-snapshot:latest config-generator --testnet % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 206 0 0 100 206 0 92 0:00:02 0:00:02 --:--:-- 92Warning: Failed to create the file /opt/corda/certificates/certs.zip: Warning: Permission denied 88 4549 87 3819 100 206 1427 76 0:00:03 0:00:02 0:00:01 1504 curl: (23) Failed writing body (0 != 3819) unzip: cannot find or open /opt/corda/certificates/certs.zip, /opt/corda/certificates/certs.zip.zip or /opt/corda/certificates/certs.zip.ZIP. Exception in thread "main" com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'keyStorePassword' at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:156) at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:174) at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:188) at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:193) at com.typesafe.config.impl.SimpleConfig.getValue(SimpleConfig.java:207) at com.typesafe.config.impl.SimpleConfig.getValue(SimpleConfig.java:41) at net.corda.core.ConfigExporter.combineTestNetWithOurConfig(ConfigExporter.kt:21) at net.corda.core.ConfigExporterMain.main(ConfigExporter.kt:73) azureuser@c4vm-1:~/docker$ ls -al total 32 drwxrwxr-x 4 azureuser azureuser 4096 Feb 19 13:50 . drwxr-xr-x 8 azureuser azureuser 4096 Feb 18 15:50 .. drwxr-xr-x 2 root root 4096 Feb 19 13:50 certificates drwxr-xr-x 2 root root 4096 Feb 19 13:50 config

Both folders (certificates and config) are owned by root now.
I have "fixed" it by pre-creating them before docker run but obviously, this is kind of a hack ...

Status

Assignee

Stefan Iliev

Reporter

Przemyslaw Bak

Priority

Medium

Labels

None

Severity

Medium

Fix versions

Ported to...

None

Feature Team

Operational Experience

Affects versions

Corda Enterprise 4 RC06
Corda 4