Giter VIP home page Giter VIP logo

Comments (10)

linggao avatar linggao commented on July 18, 2024

@Al-tekreeti Is the arch amd64? Did the postgres container start in a healthy condition? I have this on my ubuntu 18 node, (NAME="Ubuntu" VERSION="18.04.5 LTS (Bionic Beaver)").

$docker ps |grep postgres
f1596ba35327   postgres:9                                    "docker-entrypoint.sā€¦"   50 minutes ago   Up 50 minutes (healthy)   5432/tcp    

from devops.

Al-tekreeti avatar Al-tekreeti commented on July 18, 2024

@linggao Yes, all containers are healthy except Agbot. Sometimes vault container goes unhealthy, but if I restart the system using the flags -S and -s, it becomes healthy. The problem is only in Agbot container that keeps in a restarting state (does not reach unhealthy state even). It is ubuntu 20.04 not 18.04 as I mentioned earlier, sorry about that. Please see the following commands outputs:

$ uname -m
x86_64

$docker ps |grep postgres
3f462df198da postgres:latest "docker-entrypoint.sā€¦" 4 days ago Up 9 minutes (healthy) 5432/tcp postgres

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal

from devops.

linggao avatar linggao commented on July 18, 2024

@Al-tekreeti Can you show me how you start the all-in-one management hub? Your env variables for it?

from devops.

Al-tekreeti avatar Al-tekreeti commented on July 18, 2024

I forked the repo then I started it using the following command:
$ sudo ./deploy-mgmt-hub.sh

I don't pass any environment variables to it, but when the command finish execution it prints out the following tokens:

EXCHANGE_ROOT_PW=TEVUNLQzuQ3KNjYDfwveyEmjpnDZjU
EXCHANGE_HUB_ADMIN_PW=1W5VhfVxqja8e3hGYJyB8vepbWIsNO
EXCHANGE_SYSTEM_ADMIN_PW=qmbM5b6XAPI1cpHbLUBFMTPSVFv7lS
AGBOT_TOKEN=SMDCzgY8b8Irl7xdl5t6aAgYdcHp6F
EXCHANGE_USER_ADMIN_PW=Pe2UlU2RSinxeiDOp4fmEiXiAWNIB7
HZN_DEVICE_TOKEN=Z8Z3BbnDjlrUTYwZcEKGqSrRVJngkQ
VAULT_UNSEAL_KEY=BcbKa05euWxuWdkocZGvS2yijhvTumt236EFK1bloEE=
VAULT_ROOT_TOKEN=s.7zoHVzZNCIN0iCRzN9M1f0rg

from devops.

linggao avatar linggao commented on July 18, 2024

@Al-tekreeti I think it is the version of the postgres image (postgres:latest) that caused the problem. Please try to start the management hub with the following command for now.

export POSTGRES_IMAGE_TAG=9
sudo -sE ./deploy-mgmt-hub.sh
(where -E is used to preserve the env variable of the parent)

from devops.

Al-tekreeti avatar Al-tekreeti commented on July 18, 2024

@linggao Did not fix the issue and it still pulling postgres with "latest" tag.

from devops.

linggao avatar linggao commented on July 18, 2024

@Al-tekreeti That means the POSTGRES_IMAGE_TAG env variable is not taken. Please make sure you clean all the leftover containers before restart. (docker ps -a)
And please make sure to use the flag -sE for sudo command. Or you can use the following command:

sudo POSTGRES_IMAGE_TAG=9 ./deploy-mgmt-hub.sh

Anyway, find a way in your env to make the script take the POSTGRES_IMAGE_TAG env variable.
It seems that the latest release of postgres image broke the code.

from devops.

Al-tekreeti avatar Al-tekreeti commented on July 18, 2024

@linggao It did fix the issue. All containers now are healthy. Thanks a lot!

from devops.

linggao avatar linggao commented on July 18, 2024

@Al-tekreeti Good to hear. Btw, I tested POSTGRES_IMAGE_TAG=13, it works too. It is the version 14 which was released on 09/30/2021 that broke the code. We will stay with 13 for now. I will make a change in the deploy-mgmt-hub.sh to use 13 as default. Thanks for reporting this issue.

from devops.

Al-tekreeti avatar Al-tekreeti commented on July 18, 2024

You welcome! closing the issue.

from devops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.