Coder Social home page Coder Social logo

xebialabs-community / xld-mongodb-plugin Goto Github PK

View Code? Open in Web Editor NEW
3.0 27.0 3.0 65 KB

The Mongo DB plugin is a XL Deploy plugin that enables executing scripts against a Mongo DB instance.

Home Page: https://xebialabs.com/integrations/mongo-db/

License: MIT License

JavaScript 35.49% FreeMarker 64.51%
xl-deploy mongo mongodb xld

xld-mongodb-plugin's Introduction

MongoDB integration for XL Deploy

Build Status Codacy Badge License MIT standard-readme compliant

The Mongo DB plugin is a XL Deploy plugin that enables executing scripts against a Mongo DB instance.

Installation

Building the Plugin

The gradle wrapper facilitates building the plugin. Use the following command to build using Gradle:

./gradlew clean assemble

The built plugin, along with other files from the build, can then be found in the build folder.

Adding the Plugin to XL Deploy

For the latest instructions on installing XL Deploy plugins, consult the associated documentation on docs.xebialabs.com.

Usage

The configuration items for this plugin:

  1. MongoDB Scripts (type mongodb.MongoDBScripts)
  2. MongoDB Client (type mongodb.MongoDBClient)
  3. Executed MongoDB Scripts (type mongodb.ExecutedMongoDBScripts)

To run MongoDB scripts during a deployment, you must have the MongoDBScripts configuration item in the deployment package and the MongoDBClient defined on the overthere host (infrastructure). Use the docs.xebialabs.com site for more information on deployments and the XL Deploy Unified Deployment Model (UDM).

Contributing

Please review the contributing guidelines for xebialabs-community at http://xebialabs-community.github.io/

License

This community plugin is licensed under the MIT license.

See license in LICENSE.md

xld-mongodb-plugin's People

Contributors

jdewinne avatar ndebuhr avatar pbellocq avatar treydone avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xld-mongodb-plugin's Issues

XL-Deploy MongoDB plugin

Unable to deploy the zipped folder of DB scripts uploaded in XL-Deploy MongoDB Plugin. Also logs are not getting updated for the same

Error when deploying from Linux-based XLD, but not Windows-based XLD

(This might be a duplicate of issue #5, but since that has no details in it, I cannot tell for sure)

We recently moved our XLD instances to run on Linux hosts, in a master/worker setup, rather than running as a single node on a Windows host. After doing so, this plugin appears to have broken.

The error is being received on the mongoDB deployment steps:

Uploading file 0000-EmployeeRetention_HighPerf_HighRisk.js to working directory.
Step failed
com.xebialabs.overthere.RuntimeIOException: Cannot copy local:work/task-20220105T111843813.3375/artifact.2124/mongoscripts.1159/mongoscripts.zip/0000-EmployeeRetention_HighPerf_HighRisk.js to ssh:sudo://user:[email protected]:22/tmp/ot-20220105T111845170/generic_plugin.tmp/0000-Script.js: java.io.IOException: com.xebialabs.overthere.ssh.OverthereFileLocalSourceFile@60c2144f is not a regular file or directory
at com.xebialabs.overthere.ssh.SshScpFile.copyFrom(SshScpFile.java:368)
at com.xebialabs.overthere.ssh.SshElevatedUserFile.copyFrom(SshElevatedUserFile.java:131)
at com.xebialabs.overthere.spi.BaseOverthereFile.copyToDestination(BaseOverthereFile.java:201)
at com.xebialabs.overthere.spi.BaseOverthereFile.copyTo(BaseOverthereFile.java:110)
at com.xebialabs.deployit.plugin.generic.step.BaseStep.uploadToWorkingDirectory(BaseStep.java:182)
at com.xebialabs.deployit.plugin.generic.step.BaseExecutionStep.uploadArtifactIfPresent(BaseExecutionStep.java:128)
at com.xebialabs.deployit.plugin.generic.step.BaseExecutionStep.doExecute(BaseExecutionStep.java:96)
at com.xebialabs.deployit.plugin.generic.step.BaseStep.handleExecute(BaseStep.java:88)
at com.xebialabs.deployit.plugin.generic.step.ScriptExecutionStep.execute(ScriptExecutionStep.java:23)
at com.xebialabs.deployit.engine.tasker.StepExecutingActor.$anonfun$executeStep$3(StepExecutingActor.scala:144)
at com.xebialabs.deployit.engine.tasker.MdcUtils$.withMdc(MdcUtils.scala:16)
at com.xebialabs.deployit.engine.tasker.StepExecutingActor.$anonfun$executeStep$2(StepExecutingActor.scala:134)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
at scala.util.Success.$anonfun$map$1(Try.scala:255)
at scala.util.Success.map(Try.scala:213)
at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:92)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:92)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: com.xebialabs.overthere.ssh.OverthereFileLocalSourceFile@60c2144f is not a regular file or directory
at net.schmizz.sshj.xfer.scp.SCPUploadClient.process(SCPUploadClient.java:80)
at net.schmizz.sshj.xfer.scp.SCPUploadClient.startCopy(SCPUploadClient.java:70)
at net.schmizz.sshj.xfer.scp.SCPUploadClient.copy(SCPUploadClient.java:50)
at net.schmizz.sshj.xfer.scp.SCPUploadClient.copy(SCPUploadClient.java:43)
at com.xebialabs.overthere.ssh.SshScpFile.copyFrom(SshScpFile.java:365)
... 27 more

I have taken the same package generating this error back into an XLD node running on Windows, and again it works fine there, so it does not appear to be an issue with the build of the package.

I did report the issue to Digital.ai, as it feels to me like the issue is within the XLD/overthere code, but they recommended posting the issue here.

Authentication failed

Hi,

Is there any way to set authentication when connecting to MongoDB server?

I tried the plugin but I got an authentication failed.

MongoDB shell version v4.4.6
connecting to: mongodb://hostname:27095/database?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("cf5527b3-3c3a-44df-a386-b6ee5b01b802") }
MongoDB server version: 4.4.6
Error: Authentication failed.

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.