Comments (4)
Hello,
can you provide more information about your mongo-db deployment, especially its configuration?
Beside that, please also show the service-definition of "mongo".
Best,
Stefan
from helm-charts.
I have set the log level to debug and I got below logs
time=2021-07-12T06:54:46.957Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[1063]:main | msg=start command line </usr/bin/contextBroker -fg -multiservice -ngsiv1Autocast -disableFileLog>
time=2021-07-12T06:54:46.957Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[937]:logEnvVars | msg=env var ORION_PORT (-port): 1026
time=2021-07-12T06:54:46.957Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[929]:logEnvVars | msg=env var ORION_MONGO_HOST (-dbhost): mongo
time=2021-07-12T06:54:46.958Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[929]:logEnvVars | msg=env var ORION_MONGO_DB (-db): orion
time=2021-07-12T06:54:46.958Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[933]:logEnvVars | msg=env var ORION_USEIPV4 (-ipv4): 1
time=2021-07-12T06:54:46.958Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[933]:logEnvVars | msg=env var ORION_DISABLE_METRICS (-disableMetrics): 1
time=2021-07-12T06:54:46.958Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[1137]:main | msg=Orion Context Broker is running
time=2021-07-12T07:04:42.672Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[220]:mongoConnect | msg=Database Startup Error (cannot connect to mongo - doing 100 retries with a 1000 millisecond interval)
time=2021-07-12T07:04:42.673Z | lvl=FATAL | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=MongoGlobal.cpp[142]:mongoInit | msg=Fatal Error (MongoDB error)
time=2021-07-12T07:04:42.675Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[591]:exitFunc | msg=Orion shutdown completed
from helm-charts.
Hi @wistefan , I have used kompose to deploy mongodb. Below is the yaml file which I have used:
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.22.0 (955b78124)
creationTimestamp: null
labels:
io.kompose.service: mongo
name: mongo
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: mongo
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.22.0 (955b78124)
creationTimestamp: null
labels:
io.kompose.service: mongo
spec:
containers:
- args:
- --nojournal
image: mongo:3.6
name: mongo
resources: {}
restartPolicy: Always
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: mongo
spec:
selector:
io.kompose.service: mongo
ports:
- protocol: TCP
port: 27017
targetPort: 27017
Do we need to deploy mongo via chart only or we can do this way?
from helm-charts.
You can deploy mongo without a chart, too. Does the mongo db require authentication? Since none is configured on orion, it might be the problem. Beside that, you should check if mongo is reachable from the orion pod. You can execute into it and try to connect it via curl.
from helm-charts.
Related Issues (19)
- option '-lmtmp' not recognized HOT 2
- helm chart for orion HOT 1
- Error in installation of Orion broker helm chart HOT 2
- [iotagent-ul] How to enable NGSIv2 in iotagent-ul helmchart? HOT 3
- Keyrock PVC should allow configuration of the storage class HOT 1
- helm dependency build - can't get a valid version for repositories mongodb
- Allow to set ingressClassName
- Helm charts for IoT Agent JSON with more recent versions (e.g. >= 1.19) HOT 2
- Helm chart for Wilma PEP proxy HOT 1
- [api-umbrella] mongodb data persistence HOT 1
- regarding Deployment of helm charts HOT 13
- [keyrock] If themes are not enabled certificates' PVC is not mounted even if it is enabled in Values.yaml. HOT 1
- [iotagent-json]Cannot create new device in mongodb HOT 10
- [orion] Multitenacy config error HOT 1
- [orion] Replica Set only set with multihosts HOT 2
- Domibus HOT 4
- As an operator, I want to to deploy Canis Major via Helm Chart. HOT 2
- Misleading Orion-LD MongoDB Connection SSL-Config
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 helm-charts.