Hi everyone,
We are trying to use zato quickstart with docker and we have this error
docker run --pull=always -it --rm -p 22022:22 -p 8183:8183 -p 11223:11223 -p 17010:17010 --name zato-3.2-quickstart ghcr.io/zatosource/zato-3.2-quickstartlatest: Pulling from zatosource/zato-3.2-quickstart
Digest: sha256:8ffacb23083800931be8d976eed84b9a6b23ee85285ff521145daa2515ae466d
Status: Image is up to date for ghcr.io/zatosource/zato-3.2-quickstart:latest
PLAY [all] *************************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************
ok: [localhost]
TASK [Set facts (init)] ************************************************************************************************************************************************************************
ok: [localhost]
TASK [Update and upgrade apt packages (01)] ****************************************************************************************************************************************************
skipping: [localhost]
TASK [Install preliminary packages (01)] *******************************************************************************************************************************************************
skipping: [localhost]
TASK [Install MySQL (01)] **********************************************************************************************************************************************************************
skipping: [localhost]
TASK [Ensure the expected locales are generated (01)] ******************************************************************************************************************************************
skipping: [localhost]
TASK [Configure the firewall (ufw -> basic) (01)] **********************************************************************************************************************************************
skipping: [localhost]
TASK [Configure the firewall (ufw -> local connections) (01)] **********************************************************************************************************************************
skipping: [localhost] => (item=10.0.0.0/8)
skipping: [localhost] => (item=172.16.0.0/12)
skipping: [localhost] => (item=192.168.0.0/16)
TASK [Import the GPG signing key for PostgreSQL 14 (01)] ***************************************************************************************************************************************
skipping: [localhost]
TASK [Import the GPG signing key for Zato 3.2 (01)] ********************************************************************************************************************************************
skipping: [localhost]
TASK [Get the system's codename (01)] **********************************************************************************************************************************************************
skipping: [localhost]
TASK [Add the apt repository for PostgreSQL 14 (01)] *******************************************************************************************************************************************
skipping: [localhost]
TASK [Add the apt repository for Zato 3.2 (01)] ************************************************************************************************************************************************
skipping: [localhost]
TASK [Update apt cache before the installation of packages (01)] *******************************************************************************************************************************
skipping: [localhost]
TASK [Install PostgreSQL 14 (01)] **************************************************************************************************************************************************************
skipping: [localhost]
TASK [Install Zato 3.2 (01)] *******************************************************************************************************************************************************************
skipping: [localhost]
TASK [Prepare work directories for Ansible (01)] ***********************************************************************************************************************************************
skipping: [localhost]
TASK [Install Zato 3.2 updates (01)] ***********************************************************************************************************************************************************
skipping: [localhost]
TASK [Update and upgrade apt packages (02)] ****************************************************************************************************************************************************
changed: [localhost]
TASK [Install NodeJS (for testing) (02)] *******************************************************************************************************************************************************
skipping: [localhost]
TASK [Install Playwright (for testing) (02)] ***************************************************************************************************************************************************
skipping: [localhost]
TASK [Install Geany (for Playwright) (02)] *****************************************************************************************************************************************************
skipping: [localhost]
TASK [Clean up extra installation artifacts (02)] **********************************************************************************************************************************************
changed: [localhost]
TASK [Make sure that PostgreSQL is started (02)] ***********************************************************************************************************************************************
changed: [localhost]
TASK [Make sure that MySQL is started (02)] ****************************************************************************************************************************************************
changed: [localhost]
TASK [Make sure that Redis is started (02)] ****************************************************************************************************************************************************
changed: [localhost]
TASK [Regenerate host SSH keys (02)] ***********************************************************************************************************************************************************
changed: [localhost]
TASK [Restart the SSH server after regenerating its keys (02)] *********************************************************************************************************************************
changed: [localhost]
TASK [Drop the SQL database if it exists (PG -> main) (02)] ************************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL database if it exists (MySQL -> main) (02)] *********************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL database if it exists (PG -> pub/sub) (02)] *********************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL database if it exists (MySQL -> pub/sub) (02)] ******************************************************************************************************************************
ok: [localhost]
TASK [Create the SQL database (PG -> main) (02)] ***********************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL database (MySQL -> main) (02)] ********************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL database (PG -> pub/sub) (02)] ********************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL database (MySQL -> pub/sub) (02)] *****************************************************************************************************************************************
changed: [localhost]
TASK [Drop the SQL user if it exists (PG -> main) (02)] ****************************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL user if it exists (MySQL -> main) (02)] *************************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL user if it exists (PG -> pub/sub) (02)] *************************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL user if it exists (MySQL -> pub/sub) (02)] **********************************************************************************************************************************
ok: [localhost]
TASK [Create the SQL user (PG -> main) (02)] ***************************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL user (MySQL -> main) (02)] ************************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL user (PG -> pub/sub) (02)] ************************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL user (MySQL -> pub/sub) (02)] *********************************************************************************************************************************************
changed: [localhost]
TASK [Grant access to the SQL user (PG -> main) (02)] ******************************************************************************************************************************************
changed: [localhost]
TASK [Grant access to the SQL user (PG -> pub/sub) (02)] ***************************************************************************************************************************************
changed: [localhost]
TASK [Configure PostgreSQL to listen on all interfaces (02)] ***********************************************************************************************************************************
changed: [localhost]
TASK [Enable password-based SSH connections (02)] **********************************************************************************************************************************************
ok: [localhost]
TASK [Allow for SSH connections to be established from anywhere (02)] **************************************************************************************************************************
changed: [localhost]
TASK [Restart PostgreSQL after its configuration was changed (02)] *****************************************************************************************************************************
changed: [localhost]
TASK [Restart MySQL after its configuration was changed (02)] **********************************************************************************************************************************
changed: [localhost]
TASK [Restart the SSH server after its configuration was changed (02)] *************************************************************************************************************************
changed: [localhost]
TASK [Set the SSH password for user 'zato' (02)] ***********************************************************************************************************************************************
changed: [localhost]
TASK [Install HashiCorp Vault (02)] ************************************************************************************************************************************************************
skipping: [localhost]
TASK [Make sure all the previous processes started by user zato are stopped (02)] **************************************************************************************************************
changed: [localhost]
TASK [Start HashiCorp Vault (dev) (02)] ********************************************************************************************************************************************************
skipping: [localhost]
TASK [Make sure any previous environment is deleted (02)] **************************************************************************************************************************************
changed: [localhost]
TASK [Create a quickstart environment (02)] ****************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "PATH=$PATH:~/current/bin &&\n/opt/zato/env/qs-1/zato-qs-stop.sh || true &&\nrm -rf /opt/zato/env/qs-1 &&\nzato quickstart /opt/zato/env/qs-1 --odb-type postgresql --odb-host localhost --odb-port 5432 --odb-db-name zato_db_main1 --odb-user zato_user_main1 --odb-password 'zato.db.main.89kj5c5p172nva1vf9fu' --cluster-name '' --verbose\n", "delta": "0:00:00.003737", "end": "2022-12-07 17:43:17.601443", "msg": "non-zero return code", "rc": 127, "start": "2022-12-07 17:43:17.597706", "stderr": "/bin/sh: 2: /opt/zato/env/qs-1/zato-qs-stop.sh: not found\n/bin/sh: 4: zato: not found", "stderr_lines": ["/bin/sh: 2: /opt/zato/env/qs-1/zato-qs-stop.sh: not found", "/bin/sh: 4: zato: not found"], "stdout": "", "stdout_lines": []}
PLAY RECAP *************************************************************************************************************************************************************************************
localhost : ok=36 changed=25 unreachable=0 failed=1 skipped=21 rescued=0 ignored=0
Could you, guyz, help us on this please ?
Thank again
dsuch
December 7, 2022, 6:02pm
#2
Hello @louistwiice ,
can you tell me what the operating system on the host is?
Regards.
Hi @dsuch
We use Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-65-generic x86_64)
Regards
dsuch
December 7, 2022, 7:49pm
#4
Can you check it now? Thanks.
It works now!!
Thank you very much
Hi @dsuch ,
The same problem happens again today.
docker run --pull=always -it --rm -p 22022:22 -p 8183:8183 -p 11223:11223 -p 17010:17010 \
> --name zato-3.2-quickstart \
> ghcr.io/zatosource/zato-3.2-quickstart
latest: Pulling from zatosource/zato-3.2-quickstart
eaead16dc43b: Already exists
310b0c495d0f: Pull complete
9a838c7032a4: Pull complete
de1df0b77b96: Pull complete
4f7b702fe852: Pull complete
3b14b12e2e44: Pull complete
c9ae7a5a5d1d: Pull complete
fd80d277db4c: Pull complete
4b3fd3d1e53e: Pull complete
c4f636f2dd4d: Pull complete
215215470d23: Pull complete
ec14c20280e2: Pull complete
Digest: sha256:dd51fd9f9d32feb97786f0825811c7213483dd3562a533c9deea13e9110c3ad2
Status: Downloaded newer image for ghcr.io/zatosource/zato-3.2-quickstart:latest
PLAY [all] *************************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************
ok: [localhost]
TASK [Set facts (init)] ************************************************************************************************************************************************************************
ok: [localhost]
TASK [Update and upgrade apt packages (01)] ****************************************************************************************************************************************************
skipping: [localhost]
TASK [Install preliminary packages (01)] *******************************************************************************************************************************************************
skipping: [localhost]
TASK [Install MySQL (01)] **********************************************************************************************************************************************************************
skipping: [localhost]
TASK [Ensure the expected locales are generated (01)] ******************************************************************************************************************************************
skipping: [localhost]
TASK [Configure the firewall (ufw -> basic) (01)] **********************************************************************************************************************************************
skipping: [localhost]
TASK [Configure the firewall (ufw -> local connections) (01)] **********************************************************************************************************************************
skipping: [localhost] => (item=10.0.0.0/8)
skipping: [localhost] => (item=172.16.0.0/12)
skipping: [localhost] => (item=192.168.0.0/16)
TASK [Import the GPG signing key for PostgreSQL 14 (01)] ***************************************************************************************************************************************
skipping: [localhost]
TASK [Import the GPG signing key for Zato 3.2 (01)] ********************************************************************************************************************************************
skipping: [localhost]
TASK [Get the system's codename (01)] **********************************************************************************************************************************************************
skipping: [localhost]
TASK [Add the apt repository for PostgreSQL 14 (01)] *******************************************************************************************************************************************
skipping: [localhost]
TASK [Add the apt repository for Zato 3.2 (01)] ************************************************************************************************************************************************
skipping: [localhost]
TASK [Update apt cache before the installation of packages (01)] *******************************************************************************************************************************
skipping: [localhost]
TASK [Install PostgreSQL 14 (01)] **************************************************************************************************************************************************************
skipping: [localhost]
TASK [Install Zato 3.2 (01)] *******************************************************************************************************************************************************************
skipping: [localhost]
TASK [Prepare work directories for Ansible (01)] ***********************************************************************************************************************************************
skipping: [localhost]
TASK [Install Zato 3.2 updates (01)] ***********************************************************************************************************************************************************
skipping: [localhost]
TASK [Update and upgrade apt packages (02)] ****************************************************************************************************************************************************
changed: [localhost]
TASK [Install NodeJS (for testing) (02)] *******************************************************************************************************************************************************
skipping: [localhost]
TASK [Install Playwright (for testing) (02)] ***************************************************************************************************************************************************
skipping: [localhost]
TASK [Install Geany (for Playwright) (02)] *****************************************************************************************************************************************************
skipping: [localhost]
TASK [Clean up extra installation artifacts (02)] **********************************************************************************************************************************************
changed: [localhost]
TASK [Make sure that PostgreSQL is started (02)] ***********************************************************************************************************************************************
changed: [localhost]
TASK [Make sure that MySQL is started (02)] ****************************************************************************************************************************************************
changed: [localhost]
TASK [Make sure that Redis is started (02)] ****************************************************************************************************************************************************
changed: [localhost]
TASK [Regenerate host SSH keys (02)] ***********************************************************************************************************************************************************
changed: [localhost]
TASK [Restart the SSH server after regenerating its keys (02)] *********************************************************************************************************************************
changed: [localhost]
TASK [Drop the SQL database if it exists (PG -> main) (02)] ************************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL database if it exists (MySQL -> main) (02)] *********************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL database if it exists (PG -> pub/sub) (02)] *********************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL database if it exists (MySQL -> pub/sub) (02)] ******************************************************************************************************************************
ok: [localhost]
TASK [Create the SQL database (PG -> main) (02)] ***********************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL database (MySQL -> main) (02)] ********************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL database (PG -> pub/sub) (02)] ********************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL database (MySQL -> pub/sub) (02)] *****************************************************************************************************************************************
changed: [localhost]
TASK [Drop the SQL user if it exists (PG -> main) (02)] ****************************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL user if it exists (MySQL -> main) (02)] *************************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL user if it exists (PG -> pub/sub) (02)] *************************************************************************************************************************************
ok: [localhost]
TASK [Drop the SQL user if it exists (MySQL -> pub/sub) (02)] **********************************************************************************************************************************
ok: [localhost]
TASK [Create the SQL user (PG -> main) (02)] ***************************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL user (MySQL -> main) (02)] ************************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL user (PG -> pub/sub) (02)] ************************************************************************************************************************************************
changed: [localhost]
TASK [Create the SQL user (MySQL -> pub/sub) (02)] *********************************************************************************************************************************************
changed: [localhost]
TASK [Grant access to the SQL user (PG -> main) (02)] ******************************************************************************************************************************************
changed: [localhost]
TASK [Grant access to the SQL user (PG -> pub/sub) (02)] ***************************************************************************************************************************************
changed: [localhost]
TASK [Configure PostgreSQL to listen on all interfaces (02)] ***********************************************************************************************************************************
changed: [localhost]
TASK [Enable password-based SSH connections (02)] **********************************************************************************************************************************************
ok: [localhost]
TASK [Allow for SSH connections to be established from anywhere (02)] **************************************************************************************************************************
changed: [localhost]
TASK [Restart PostgreSQL after its configuration was changed (02)] *****************************************************************************************************************************
changed: [localhost]
TASK [Restart MySQL after its configuration was changed (02)] **********************************************************************************************************************************
changed: [localhost]
TASK [Restart the SSH server after its configuration was changed (02)] *************************************************************************************************************************
changed: [localhost]
TASK [Set the SSH password for user 'zato' (02)] ***********************************************************************************************************************************************
changed: [localhost]
TASK [Install HashiCorp Vault (02)] ************************************************************************************************************************************************************
skipping: [localhost]
TASK [Make sure all the previous processes started by user zato are stopped (02)] **************************************************************************************************************
changed: [localhost]
TASK [Start HashiCorp Vault (dev) (02)] ********************************************************************************************************************************************************
skipping: [localhost]
TASK [Make sure any previous environment is deleted (02)] **************************************************************************************************************************************
changed: [localhost]
TASK [Create a quickstart environment (02)] ****************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "PATH=$PATH:~/current/bin &&\n/opt/zato/env/qs-1/zato-qs-stop.sh || true &&\nrm -rf /opt/zato/env/qs-1 &&\nzato quickstart /opt/zato/env/qs-1 --odb-type postgresql --odb-host localhost --odb-port 5432 --odb-db-name zato_db_main1 --odb-user zato_user_main1 --odb-password 'zato.db.main.1b4a0dmkdgvr05yqqvv1' --cluster-name '' --verbose\n", "delta": "0:00:00.003920", "end": "2022-12-08 13:32:41.465946", "msg": "non-zero return code", "rc": 127, "start": "2022-12-08 13:32:41.462026", "stderr": "/bin/sh: 2: /opt/zato/env/qs-1/zato-qs-stop.sh: not found\n/bin/sh: 4: zato: not found", "stderr_lines": ["/bin/sh: 2: /opt/zato/env/qs-1/zato-qs-stop.sh: not found", "/bin/sh: 4: zato: not found"], "stdout": "", "stdout_lines": []}
PLAY RECAP *************************************************************************************************************************************************************************************
localhost : ok=36 changed=25 unreachable=0 failed=1 skipped=21 rescued=0 ignored=0
It seems like we trouble comes when we stop and start the container for the second time. Could yo help us on this please ?
Regards
dsuch
December 8, 2022, 2:45pm
#7
How do you stop and start the container? What are the exact commands?
docker-compose stop / docker-compose start
But it think the command docker run --pull=always -it --rm -p 22022:22 -p 8183:8183 -p 11223:11223 -p 17010:17010 --name zato-3.2-quickstart ghcr.io/zatosource/zato-3.2-quickstart
is not related to stop and start container. It is a new image pulled from the registry
because I make sure to delete old container before running the the quickstart command