Comments (10)
@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.
@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.
@Al-tekreeti Can you show me how you start the all-in-one management hub? Your env variables for it?
from devops.
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.
@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.
@linggao Did not fix the issue and it still pulling postgres with "latest" tag.
from devops.
@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.
@linggao It did fix the issue. All containers now are healthy. Thanks a lot!
from devops.
@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.
You welcome! closing the issue.
from devops.
Related Issues (20)
- GHA needed to copy Mgmt-Hub documentation to OH Docs HOT 12
- Error: http code 400 from: vaultUnseal HOT 6
- The documentation directory is not showing up! HOT 3
- Generate SBOM information for all Open Horizon components at each release. HOT 2
- HTML formatting errors in docs/readme.md HOT 5
- Move openhorizon-tested-versions.txt to .github repo
- Add new architectures to openhorizon-tested-versions.txt
- Broken link in README.md mgmt-hub/README.md HOT 3
- Hyperlink format is incorrect on All-in-One doc HOT 2
- Fix Mgmt Hub redirect link HOT 2
- deploy-mgmt-hub.sh - Add support for Ubuntu 22.10
- Error running make publish-only: ARCH=amd64 make publish-service-overwrite
- ...
- Encounter Error in ./deploy-mgmt-hub.sh Error: exit code 5 HOT 4
- Create installation instructions for Agent on Windows Subsystem for Linux HOT 1
- Log files are consuming too much disk space. HOT 6
- Version pinning external images such as Mongo and Postgres
- Documentation: Issue 394 in docs - broken links
- Add FDO Support
- Problem with Stopping and Restarting containers. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devops.