[GH-ISSUE #2144] Cloudbeaver mongo drivers installation for AKS deployment #641

Closed
opened 2026-03-07 20:52:29 +03:00 by kerem · 0 comments
Owner

Originally created by @rashapudenko on GitHub (Nov 20, 2023).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/2144

Hi,

So I've followed these 2 wiki pages for mongo driver addition:
https://github.com/dbeaver/cloudbeaver/wiki/Build-and-deploy
https://github.com/dbeaver/cloudbeaver/wiki/Adding-new-database-drivers#Drivers-and-bundles

I am trying to build deployment pipeline in Azure Devops for deploying cloudbeaver as Helm chart into AKS.
Pipeline build agent tool versions are the following:

/usr/lib/jvm/java-17-openjdk-amd64/bin/java --version

openjdk 17.0.8.1 2023-08-24
OpenJDK Runtime Environment (build 17.0.8.1+1-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 17.0.8.1+1-Ubuntu-0ubuntu120.04, mixed mode, sharing)

mvn --version

Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)

Found tool in cache: yarn 1.22.21 x64

Build succeeded, build logs can be found in attached file
build_logs.txt

In this files following commands were executed after checking out https://github.com/dbeaver/cloudbeaver @ devel:

cat ./server/drivers/pom.xml <- verification
cat ./server/bundles/io.cloudbeaver.resources.drivers.base/plugin.xml <- verification
cat ./server/drivers/mongodb/pom.xml <- verification
cd ./deploy
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 <- multimple JDK are installed, so I set this var for this step in particular
./build.sh
sed -i '/java.security/d' /path/to/cloudbeaver/deploy/docker/Dockerfile <- our custom build agents doesn't have this dir, so I simply dropped this instruction for now

Followed by Docker image build:
docker-build-logs.txt
Issued docker command here: /usr/bin/docker build -f /path/to/cloudbeaver/deploy/docker/Dockerfile --alotofdefaultlabels -t ***.azurecr.io/cloudbeaver:626331 /path/to/cloudbeaver/deploy

Also succeeded.

After that, Helm deploy also succeeded, where I have (I'll mention only important things IMO):

  1. Configmap with 2 following connections (alongside with others, but mongo connections are failing):
    "mongo-test": { "provider": "mongodb", "driver": "mongodb-jdbc", "name": "mongo-test", "save-password": false, "show-system-objects": false, "read-only": true, "template": true, "configuration": { "host": "***.mongo.cosmos.azure.com", "port": "10255", "url": "***", "type": "dev", "provider-properties": { "@dbeaver-show-non-default-db@": "false" } } }, "mongo-test-2": { "provider": "mongodb", "driver": "mongodb-jdbc", "name": "mongo-test-2", "save-password": false, "show-system-objects": false, "read-only": true, "template": true, "configuration": { "host": "***.mongo.cosmos.azure.com", "port": "10255", "url": "***", "type": "dev", "provider-properties": { "@dbeaver-show-non-default-db@": "false" } } }
    Configmap with these mounts to /opt/cloudbeaver/workspace/GlobalConfiguration/.dbeaver/data-sources.json
  2. Deployment manifest:
    deployment.txt

With image we've built previously Helm deployment succeeds, but pod logs shows the following error:
"17-11-2023 21:36:44.632 [qtp1024240671-28] DEBUG o.j.d.r.DataSourceSerializerModern - Can't find datasource provider mongodb for datasource 'mongo-test'
17-11-2023 21:36:44.632 [qtp1024240671-28] DEBUG o.j.d.r.DataSourceSerializerModern - Can't find driver mongodb-jdbc in datasource provider mongodb for datasource 'mongo-test'. Create new driver"

Would appreciate any help, if more info required - LMK.

Thanks!

Originally created by @rashapudenko on GitHub (Nov 20, 2023). Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/2144 Hi, So I've followed these 2 wiki pages for mongo driver addition: [https://github.com/dbeaver/cloudbeaver/wiki/Build-and-deploy](https://github.com/dbeaver/cloudbeaver/wiki/Build-and-deploy) [https://github.com/dbeaver/cloudbeaver/wiki/Adding-new-database-drivers#Drivers-and-bundles](https://github.com/dbeaver/cloudbeaver/wiki/Adding-new-database-drivers#Drivers-and-bundles) I am trying to build deployment pipeline in Azure Devops for deploying cloudbeaver as Helm chart into AKS. Pipeline build agent tool versions are the following: ### /usr/lib/jvm/java-17-openjdk-amd64/bin/java --version openjdk 17.0.8.1 2023-08-24 OpenJDK Runtime Environment (build 17.0.8.1+1-Ubuntu-0ubuntu120.04) OpenJDK 64-Bit Server VM (build 17.0.8.1+1-Ubuntu-0ubuntu120.04, mixed mode, sharing) ### mvn --version Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) ### Found tool in cache: yarn 1.22.21 x64 Build succeeded, build logs can be found in attached file [build_logs.txt](https://github.com/dbeaver/cloudbeaver/files/13412854/build_logs.txt) In this files following commands were executed after checking out https://github.com/dbeaver/cloudbeaver @ devel: cat ./server/drivers/pom.xml <- verification cat ./server/bundles/io.cloudbeaver.resources.drivers.base/plugin.xml <- verification cat ./server/drivers/mongodb/pom.xml <- verification cd ./deploy JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 <- multimple JDK are installed, so I set this var for this step in particular ./build.sh sed -i '/java.security/d' /path/to/cloudbeaver/deploy/docker/Dockerfile <- our custom build agents doesn't have this dir, so I simply dropped this instruction for now Followed by Docker image build: [docker-build-logs.txt](https://github.com/dbeaver/cloudbeaver/files/13412879/docker-build-logs.txt) Issued docker command here: /usr/bin/docker build -f /path/to/cloudbeaver/deploy/docker/Dockerfile --alotofdefaultlabels -t ***.azurecr.io/cloudbeaver:626331 /path/to/cloudbeaver/deploy Also succeeded. After that, Helm deploy also succeeded, where I have (I'll mention only important things IMO): 1) Configmap with 2 following connections (alongside with others, but mongo connections are failing): ` "mongo-test": { "provider": "mongodb", "driver": "mongodb-jdbc", "name": "mongo-test", "save-password": false, "show-system-objects": false, "read-only": true, "template": true, "configuration": { "host": "***.mongo.cosmos.azure.com", "port": "10255", "url": "***", "type": "dev", "provider-properties": { "@dbeaver-show-non-default-db@": "false" } } }, "mongo-test-2": { "provider": "mongodb", "driver": "mongodb-jdbc", "name": "mongo-test-2", "save-password": false, "show-system-objects": false, "read-only": true, "template": true, "configuration": { "host": "***.mongo.cosmos.azure.com", "port": "10255", "url": "***", "type": "dev", "provider-properties": { "@dbeaver-show-non-default-db@": "false" } } }` Configmap with these mounts to /opt/cloudbeaver/workspace/GlobalConfiguration/.dbeaver/data-sources.json 2) Deployment manifest: [deployment.txt](https://github.com/dbeaver/cloudbeaver/files/13415493/deployment.txt) With image we've built previously Helm deployment succeeds, but pod logs shows the following error: "17-11-2023 21:36:44.632 [qtp1024240671-28] DEBUG o.j.d.r.DataSourceSerializerModern - Can't find datasource provider mongodb for datasource 'mongo-test' 17-11-2023 21:36:44.632 [qtp1024240671-28] DEBUG o.j.d.r.DataSourceSerializerModern - Can't find driver mongodb-jdbc in datasource provider mongodb for datasource 'mongo-test'. Create new driver" Would appreciate any help, if more info required - LMK. Thanks!
kerem 2026-03-07 20:52:29 +03:00
  • closed this issue
  • added the
    x:mongo
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudbeaver#641
No description provided.