Zato: error: unrecognized arguments: --odb_type postgresql --odb_host localhost --odb_port 5432

Hi Everyone,

I am working with Zato on Docker. Since one week everything worked fine. I got the following error when trying to run even basic docker run with zato image

Command

sudo 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

Result

latest: Pulling from zatosource/zato-3.2-quickstart
Digest: sha256:f7018c0e825be2ff803a98e75c0c4d5e8511d7a8ec8e2259ed04f1f04d8998aa
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 [Make sure that PostgreSQL is started (02)] *******************************************************************************************************************************************************
changed: [localhost]

TASK [Make sure that MySQL 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.pmgr6emv9qaowzaq5xke'    --cluster_name ''    --verbose\n", "delta": "0:00:01.183636", "end": "2022-04-21 15:47:24.557735", "msg": "non-zero return code", "rc": 2, "start": "2022-04-21 15:47:23.374099", "stderr": "/bin/sh: 2: /opt/zato/env/qs-1/zato-qs-stop.sh: not found\nusage: zato [-h] [--version]\n            {apispec,ca,cache,check-config,component-version,create,create-rest-channel,create-wsx-channel,create-wsx-outconn,crypto,decrypt,delete,delete-rest-channel,delete-wsx-channel,encrypt,enmasse,hash,from-config,hl7,set-ide-password,info,openapi,pubsub,reset-totp-key,set-admin-invoke-password,quickstart,service,sso,start,stop,update,wait}\n            ...\nzato: error: unrecognized arguments: --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.pmgr6emv9qaowzaq5xke --cluster_name ", "stderr_lines": ["/bin/sh: 2: /opt/zato/env/qs-1/zato-qs-stop.sh: not found", "usage: zato [-h] [--version]", "            {apispec,ca,cache,check-config,component-version,create,create-rest-channel,create-wsx-channel,create-wsx-outconn,crypto,decrypt,delete,delete-rest-channel,delete-wsx-channel,encrypt,enmasse,hash,from-config,hl7,set-ide-password,info,openapi,pubsub,reset-totp-key,set-admin-invoke-password,quickstart,service,sso,start,stop,update,wait}", "            ...", "zato: error: unrecognized arguments: --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.pmgr6emv9qaowzaq5xke --cluster_name "], "stdout": "", "stdout_lines": []}

PLAY RECAP *********************************************************************************************************************************************************************************************
localhost                  : ok=34   changed=23   unreachable=0    failed=1    skipped=19   rescued=0    ignored=0   

A little help to debug this would be great. Thank you very much guyz

Can you check it with the latest image? Thank you.

Hi,

Thank you very much for your help. It works really smoothly now.

Thanks again