Uploaded image for project: 'Corda'
  1. CORDA-2641

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

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: Corda 4, Corda Enterprise 4 RC06
    • Fix versions: Corda 4.1
    • Components: None
    • Labels:
      None

      Description

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

      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
      
      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 ...

        Attachments

          Activity

            People

            • Assignee:
              stefan.iliev Stefan Iliev
              Reporter:
              Przemyslaw.Bak Przemyslaw Bak
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: