Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install block at step 43/51 #7

Open
arkhan444 opened this issue Sep 26, 2019 · 3 comments
Open

Install block at step 43/51 #7

arkhan444 opened this issue Sep 26, 2019 · 3 comments

Comments

@arkhan444
Copy link

Bonjour,

Nouvellement nommé DPD au sein de mon entreprise, je suis à la recherche d'une solution de gestion de mes registres et PIA. Je souhaite tester PIALAB.

J'ai un problème d'installation à l'étape 43/51.
I'm having trouble installing at step 43/51

getv "/smtp/default/...>: error calling getv: key does not exist: /smtp/default/sender

Je suis sur un Debian 10.1 + Docker fraîchement installé.
It's on a new installation of Debian 10.0 + Docker

Voici le détail de l'étape 43

`Step 43/51 : RUN cd /usr/share/pialab-back && echo '\n' >> etc/confd/templates/env.tmpl && echo "MAILER_SENDER=no-reply@pialab.io" >> etc/confd/templates/env.tmpl && BUILDENV=${BUILDENV} Suffix=${NAME} CLIENTURL=${FRONTURL} ./bin/ci-scripts/set_env_with_etcd.sh && ./bin/ci-scripts/set_pgpass.sh
---> Running in b6760ed44815

  • export ETCDCTL_API=3
  • ETCDCTL_API=3
  • '[' '!' -f shuf.nbr ']'
  • openssl rand -hex 6
  • '[' -z pialab ']'
    ++ echo pialab
    ++ sed 's/\W//g'
    ++ tr '[:upper:]' '[:lower:]'
  • Suffix=pialab
  • '[' -z '' ']'
  • Prefix=/pialabback/build/pialab
  • '[' -z 172.19.0.2 ']'
  • ETCDENDPOINT=--endpoints=http://172.19.0.2:2379
  • '[' -z '' ']'
  • ETCDCTLCMD=etcdctl
  • '[' -z dev ']'
  • '[' -z '' ']'
  • SYMFONYENV=dev
  • '[' -z '' ']'
  • SYMFONYCORSALLOW='#^https?://localhost:?[0-9]*$'
  • '[' -n http://localhost:8042/front ']'
    ++ echo http://localhost:8042/front
    ++ sed -e 's:.//::g'
    ++ sed -e 's:/.
    ::g'
    ++ sed -e 's/:.*//g'
    ++ sed -e 's/./\./g'
  • CLIENTURLREGEX=localhost
  • SYMFONYCORSALLOW='^https?://localhost:?[0-9]*$'
  • '[' -z '' ']'
  • DatabaseVersion=5.7
  • '[' -z '' ']'
  • DatabaseName=pia_db_pialab
  • '[' -z '' ']'
  • DatabaseUser=pia_user_pialab
  • '[' -z '' ']'
    ++ openssl rand -hex 8
  • DatabasePassword=31b4f9b5ecef0348
  • '[' -z '' ']'
  • MailerUrl=smtp://127.0.0.1:1025
  • '[' -z '' ']'
  • MailerSender=no-reply@pialab.io
  • '[' -z '' ']'
  • MailerSenderName='PiaLab Account Manager'
  • '[' -z http://localhost:8042/front ']'
    ++ openssl rand -hex 24
  • CLIENT_ID=d3b49d85be246e973c435b7bde9b701dfd0da3a834cef668
  • '[' -n '' ']'
    ++ openssl rand -hex 24
  • CLIENT_SECRET=9abd16dcaac60b567bf025648ebaea884990279b854a490f
  • '[' -n '' ']'
  • '[' -z '' ']'
  • ServerName=pialab.io
  • '[' -n '' ']'
  • '[' -z '' ']'
  • BackDirectory=/usr/share/pialab-back/public
  • '[' -z '' ']'
  • BackSSLCertificateFile=/etc/ssl/pialab.crt
  • '[' -z '' ']'
  • BackSSLCertificateKeyFile=/etc/ssl/pialab.key
    ++ etcdctl get /default/postgres/hostname --print-value-only --endpoints=http://172.19.0.2:2379
  • postgreshost=172.19.0.3
    ++ etcdctl get /default/postgres/root/username --print-value-only --endpoints=http://172.19.0.2:2379
  • postgresuser=postgres
    ++ etcdctl get /default/postgres/root/password --print-value-only --endpoints=http://172.19.0.2:2379
  • postgrespass=postgres24
  • '[' -n '' ']'
  • '[' -n '' ']'
  • '[' -n '' ']'
    ++ etcdctl get /default/selenium/hostname --print-value-only --endpoints=http://172.19.0.2:2379
  • SeleniumHost=selenium.not.needed.here
  • etcdctl put /pialabback/build/pialab/selenium/hostname selenium.not.needed.here --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/postgres/hostname 172.19.0.3 --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/postgres/root/username postgres --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/postgres/root/password postgres24 --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/postgres/default/version 5.7 --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/postgres/default/dbname pia_db_pialab --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/postgres/default/username pia_user_pialab --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/postgres/default/password 31b4f9b5ecef0348 --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/smtp/default/url smtp://127.0.0.1:1025 --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/smtp/default/sender no-reply@pialab.io --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/smtp/default/sender/name PiaLab Account Manager --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/symfony/env dev --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/symfony/cors/allow '^https?://localhost:?[0-9]*$' --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/client/url http://localhost:8042/front --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/client/id d3b49d85be246e973c435b7bde9b701dfd0da3a834cef668 --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/client/secret 9abd16dcaac60b567bf025648ebaea884990279b854a490f --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/apache/servername pialab.io --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/apache/directory /usr/share/pialab-back/public --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/apache/certificate/file /etc/ssl/pialab.crt --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl put /pialabback/build/pialab/apache/certificate/key /etc/ssl/pialab.key --endpoints=http://172.19.0.2:2379
    OK
    ++ hostname -i
  • currentip=172.19.0.4
  • etcdctl put /pialabback/build/pialab/url/addr 172.19.0.4:8000 --endpoints=http://172.19.0.2:2379
    OK
  • etcdctl get --prefix /pialabback/build/pialab --endpoints=http://172.19.0.2:2379
    /pialabback/build/pialab/apache/certificate/file
    /etc/ssl/pialab.crt
    /pialabback/build/pialab/apache/certificate/key
    /etc/ssl/pialab.key
    /pialabback/build/pialab/apache/directory
    /usr/share/pialab-back/public
    /pialabback/build/pialab/apache/servername
    pialab.io
    /pialabback/build/pialab/client/id
    d3b49d85be246e973c435b7bde9b701dfd0da3a834cef668
    /pialabback/build/pialab/client/secret
    9abd16dcaac60b567bf025648ebaea884990279b854a490f
    /pialabback/build/pialab/client/url
    http://localhost:8042/front
    /pialabback/build/pialab/postgres/default/dbname
    pia_db_pialab
    /pialabback/build/pialab/postgres/default/password
    31b4f9b5ecef0348
    /pialabback/build/pialab/postgres/default/username
    pia_user_pialab
    /pialabback/build/pialab/postgres/default/version
    5.7
    /pialabback/build/pialab/postgres/hostname
    172.19.0.3
    /pialabback/build/pialab/postgres/root/password
    postgres24
    /pialabback/build/pialab/postgres/root/username
    postgres
    /pialabback/build/pialab/selenium/hostname
    selenium.not.needed.here
    /pialabback/build/pialab/smtp/default/sender
    no-reply@pialab.io
    /pialabback/build/pialab/smtp/default/sender/name
    PiaLab
    /pialabback/build/pialab/smtp/default/url
    smtp://127.0.0.1:1025
    /pialabback/build/pialab/symfony/cors/allow
    ^https?://localhost:?[0-9]*$
    /pialabback/build/pialab/symfony/env
    dev
    /pialabback/build/pialab/url/addr
    172.19.0.4:8000
  • confd -onetime -backend etcdv3 -node http://172.19.0.2:2379 -confdir ./etc/confd -log-level debug -prefix /pialabback/build/pialab
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: INFO Backend set to etcdv3
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: INFO Starting confd
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: INFO Backend source(s) set to http://172.19.0.2:2379
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Loading template resources from confdir ./etc/confd
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Found template: etc/confd/conf.d/acceptance.suite.toml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Loading template resource from etc/confd/conf.d/acceptance.suite.toml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Found template: etc/confd/conf.d/apache.example.conf.toml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Loading template resource from etc/confd/conf.d/apache.example.conf.toml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Found template: etc/confd/conf.d/api.suite.toml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Loading template resource from etc/confd/conf.d/api.suite.toml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Found template: etc/confd/conf.d/env.toml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Loading template resource from etc/confd/conf.d/env.toml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Retrieving keys from store
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Key prefix set to /pialabback/build/pialab
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Got the following map from store: map[/pialabback/build/pialab/url/addr:172.19.0.4:8000 /pialabback/build/pialab/selenium/hostname:selenium.not.needed.here]
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Using source template etc/confd/templates/acceptance.suite.yml.tmpl
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Compiling source template etc/confd/templates/acceptance.suite.yml.tmpl
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Comparing candidate config to tests/acceptance.suite.yml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: INFO Target config tests/acceptance.suite.yml out of sync
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Overwriting target config tests/acceptance.suite.yml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: INFO Target config tests/acceptance.suite.yml has been updated
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Retrieving keys from store
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Key prefix set to /pialabback/build/pialab
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Got the following map from store: map[/pialabback/build/pialab/apache/certificate/file:/etc/ssl/pialab.crt /pialabback/build/pialab/apache/certificate/key:/etc/ssl/pialab.key /pialabback/build/pialab/apache/servername:pialab.io /pialabback/build/pialab/apache/directory:/usr/share/pialab-back/public]
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Using source template etc/confd/templates/apache.example.conf.tmpl
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Compiling source template etc/confd/templates/apache.example.conf.tmpl
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Comparing candidate config to apache.example.conf
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: INFO Target config apache.example.conf out of sync
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Overwriting target config apache.example.conf
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: INFO Target config apache.example.conf has been updated
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Retrieving keys from store
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Key prefix set to /pialabback/build/pialab
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Got the following map from store: map[/pialabback/build/pialab/url/addr:172.19.0.4:8000]
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Using source template etc/confd/templates/api.suite.yml.tmpl
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Compiling source template etc/confd/templates/api.suite.yml.tmpl
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Comparing candidate config to tests/api.suite.yml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: INFO Target config tests/api.suite.yml out of sync
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Overwriting target config tests/api.suite.yml
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: INFO Target config tests/api.suite.yml has been updated
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Retrieving keys from store
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Key prefix set to /pialabback/build/pialab
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Got the following map from store: map[/pialabback/build/pialab/postgres/default/version:5.7 /pialabback/build/pialab/symfony/cors/allow:^https?://localhost:?[0-9]*$ /pialabback/build/pialab/postgres/default/username:pia_user_pialab /pialabback/build/pialab/smtp/default/url:smtp://127.0.0.1:1025 /pialabback/build/pialab/client/id:d3b49d85be246e973c435b7bde9b701dfd0da3a834cef668 /pialabback/build/pialab/client/secret:9abd16dcaac60b567bf025648ebaea884990279b854a490f /pialabback/build/pialab/client/url:http://localhost:8042/front /pialabback/build/pialab/postgres/root/password:postgres24 /pialabback/build/pialab/postgres/default/dbname:pia_db_pialab /pialabback/build/pialab/postgres/default/password:31b4f9b5ecef0348 /pialabback/build/pialab/url/addr:172.19.0.4:8000 /pialabback/build/pialab/symfony/env:dev /pialabback/build/pialab/postgres/hostname:172.19.0.3 /pialabback/build/pialab/postgres/root/username:postgres]
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Using source template etc/confd/templates/env.tmpl
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: DEBUG Compiling source template etc/confd/templates/env.tmpl
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: ERROR template: env.tmpl:49:16: executing "env.tmpl" at <getv "/smtp/default/...>: error calling getv: key does not exist: /smtp/default/sender
    2019-09-26T09:30:07Z b6760ed44815 confd[225]: FATAL template: env.tmpl:49:16: executing "env.tmpl" at <getv "/smtp/default/...>: error calling getv: key does not exist: /smtp/default/sender
    The command '/bin/sh -c cd /usr/share/pialab-back && echo '\n' >> etc/confd/templates/env.tmpl && echo "MAILER_SENDER=no-reply@pialab.io" >> etc/confd/templates/env.tmpl && BUILDENV=${BUILDENV} Suffix=${NAME} CLIENTURL=${FRONTURL} ./bin/ci-scripts/set_env_with_etcd.sh && ./bin/ci-scripts/set_pgpass.sh' returned a non-zero code: 1

Pouvez-vous m'aider ?`

Cdt,

@FanchTheSystem
Copy link
Contributor

Salut, pialab n'est plus maintenu, je ne sais pas si c'est un bon choix de logiciel.

Concernant l'erreur, je pense que c'est parce que tu n'as pas défini les variables d'environnement comme dans l'exemple:

https://github.com/pia-lab/pialab-docker#example

@arkhan444
Copy link
Author

OK je vais tester tout de suite.
Merci pour l'info, voyant le site commerciale je pensais qu'il était encore maintenu.

@arkhan444
Copy link
Author

J'ai le même message d'erreur. Je ne vois pas ce que je fais mal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants