You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./generate-peer.sh exits with
bash: crypto-config/fabric-ca-server-config-org1.yaml: Is a directory
Seems that envSubst "templates/fabric-ca-server-template.yaml" "crypto-config/fabric-ca-server-config-$ORG.yaml" "export LDAP_BASE_DN=${LDAP_BASE_DN}"
expects the crypto-config/fabric-ca-server-config-$ORG.yaml to be a file, but when the ca serice is started, scripts try to mount it as a directory.
May be the $DOMAIN var is missing? envSubst "templates/fabric-ca-server-template.yaml" "crypto-config/fabric-ca-server-config-$ORG.$DOMAIN.yaml" "export LDAP_BASE_DN=${LDAP_BASE_DN}"
The text was updated successfully, but these errors were encountered:
So how this all could be reproduced.
I use freshly installed Ubuntu 18.04.3 LTS on my vps (I also get this problem on the AWS EC2) with apt-get update && apt-get upgrade
Then I create the 'ubuntu' user and add it to sudoers.
After that I just follow the fabric-starter installation instructions:
Then I logout/login as the ubuntu and clone the fabric-starter:
git clone https://github.com/olegabu/fabric-starter
cd ./fabric-starter/
The first step is OK:
./clean.sh
./generate-orderer.sh
docker-compose -f docker-compose-orderer.yaml up
Then I open another console and run the ./generate-peer.sh
It exits with the following error:
...
Execute: docker-compose -f ./docker-compose.yaml run --rm cli.peer bash -c export LDAP_BASE_DN=dc=example,dc=com && envsubst <templates/fabric-ca-server-template.yaml >crypto-config/fabric-ca-server-config-org1.yaml && chown 1000 crypto-config/fabric-ca-server-config-org1.yaml
WARNING: Found orphan containers (www.example.com, cli.example.com, orderer.example.com) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Starting pre-install.example.com ... done
Starting ca.org1.example.com ... done
Starting peer0.org1.example.com ... done
bash: crypto-config/fabric-ca-server-config-org1.yaml: Is a directory
Error occurred. See console output above.
And yes, that's so: the crypto-config/fabric-ca-server-config-org1.yaml is the directory. If I delete it and create the empty file the ./generate-peer.sh fills it with yaml but then it tries to mount the fabric-ca-server-config-org1.yaml, it occures to be a file and the script exits with error nevertheless.
Explicit exporting the COMPOSE_PROJECT_NAME, ORG and all the stuff does not help either.
./generate-peer.sh exits with
bash: crypto-config/fabric-ca-server-config-org1.yaml: Is a directory
Seems that
envSubst "templates/fabric-ca-server-template.yaml" "crypto-config/fabric-ca-server-config-$ORG.yaml" "export LDAP_BASE_DN=${LDAP_BASE_DN}"
expects the crypto-config/fabric-ca-server-config-$ORG.yaml to be a file, but when the ca serice is started, scripts try to mount it as a directory.
May be the $DOMAIN var is missing?
envSubst "templates/fabric-ca-server-template.yaml" "crypto-config/fabric-ca-server-config-$ORG.$DOMAIN.yaml" "export LDAP_BASE_DN=${LDAP_BASE_DN}"
The text was updated successfully, but these errors were encountered: