Questions tagged [mongobee]

19 questions
9
votes
1 answer

MongoDB update validator

I have a collection that looks like this: { "_id": "5c90e8736441c96cc8e5c703", "meta": { "schemaVersion": 1, "locHint": { "region": "150", "country": "GBR" } }, "name": "My test study" } And the following…
frunza
  • 287
  • 3
  • 9
4
votes
2 answers

Caused by: java.lang.NoSuchMethodError: org.springframework.data.mongodb.core.MongoTemplate.(Lcom/mongodb/Mongo;Ljava/lang/String;)V

While trying to run Spring-boot application (v2.1.0) getting below error: Description: An attempt was made to call the method org.springframework.data.mongodb.core.MongoTemplate.(Lcom/mongodb/Mongo;Ljava/lang/String;)V but it does not exist.…
Nisarg Patil
  • 1,509
  • 1
  • 16
  • 27
4
votes
4 answers

Reading of DBname.system.indexes failed on Atlas cluster by mongobee after getting connected

I have a Jhipster Spring boot project. Recently I shifted from mlabs standalone sandboxes to Atlas cluster sandbox M0 Free tier replica set. It even worked and I had made some database operations on it. But now for some reason then there is a read…
Artist
  • 93
  • 1
  • 10
3
votes
1 answer

Error creating bean with name 'mongoTemplate' defined in class path resource Mongobee

Using the Mongobee for Data Migration creating and error as Error creating bean with name 'mongoTemplate' defined in class path resource Migration configuration @Configuration public class ProductMigration { private final Environment…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
3
votes
3 answers

Getting not authorized for query on testdb.system.indexes src/mongo/db/commands/find_cmd.cpp 170 in mongo 4.2

I have recently upgraded to mongo 4.2.0 from 4.0.2. On previous version user was able to access system.indexes but after upgrade, user is not able to access system.indexes collection. User already has readWrite role. Also, I tried giving dbAdmin but…
Amit Sadafule
  • 431
  • 5
  • 15
3
votes
0 answers

How to update existing MongoDB Collection Validation?

I have created a MongoDB Collection using the following code, I want to update this collection add a new column named "username" and also want to change the data type of roleId from String to Long. Please advice how to do this in Java Mongo API fun…
Mohanraj
  • 587
  • 4
  • 21
2
votes
0 answers

An attempt was made to call a method that does not exist, mongo-java-driver , mongobee

I am using MongoBee for migration, getting exception on mongoTemplate.insertAll(airports); @ChangeLog(order = "001") public class DbChangeLog001 { @ChangeSet(order = "001", id = "seedProduct", author = "San") public void…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
2
votes
4 answers

UnsatisfiedDependencyException when creating MongoTemplate bean

Using the Mongobee for Migration with spring mongo plugins { id 'org.springframework.boot' version '2.3.1.RELEASE' id 'io.spring.dependency-management' version '1.0.9.RELEASE' id 'java' } group = 'fete.bird' version =…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
2
votes
2 answers

What Version Control tools are available for MongoDB

I'm planning to integrate mongodb based migration tool in my spring boot application which is having spring-data dependency in project. I found main two libraries 1) Mongobee 2) Mongock. I need some feedback which one should i choose ? Thanks in…
Ketan Jariwala
  • 225
  • 4
  • 12
1
vote
0 answers

Mongobee stuck several minutes before to quit

I'm currently using mongobee to update a mongoDB database. An update can take up to a few minutes however it seems that the real behaviour of mongobee itself only lasts for a few seconds and after that the java process stay stuck for a few minutes…
Matthew
  • 459
  • 2
  • 5
  • 16
1
vote
0 answers

Mongobee MongoQueryException: there are no users authenticated

a spring boot application uses mongobee and mongodb, the spring data config is as below: spring: data: mongodb: uri: mongodb://james:xxxxxxx@localhost:27017/?authSource=admin database: shortvideo the mongodb is…
James Hao
  • 765
  • 2
  • 11
  • 40
0
votes
0 answers

Listen to changes on Model only once

I have a NodeJS server that has the following Mongoose Schema: const mongoose = require("mongoose"); const EventSchema = new mongoose.Schema( { _id: mongoose.Schema.Types.ObjectId, type: String, time: Date, …
ololo
  • 1,326
  • 2
  • 14
  • 47
0
votes
1 answer

How to test change unit in mongock with its multiple attributes/lifecycle methods?

We recently migrated from MongoBee to Mongock, and with Mongock 5 version the @ChangeLog and @ChangeSet are depricated. Writing the @ChangeUnit is easy enough and rollback methods are very helpful. However, I'm unable to figure out how to write a…
Captain Levi
  • 804
  • 7
  • 18
0
votes
1 answer

How to disable throwExceptionIfCannotObtainLock in mongock

Used the traditional approach of running mongock - https://www.mongock.io/quick-start#traditional-builder-approach @Bean public MongockSpring5.MongockInitializingBeanRunner changockSpring5(ApplicationContext springContext, MongoClient mongoClient)…
Boat
  • 515
  • 2
  • 8
  • 28
0
votes
1 answer

MongoDB - Updating the collection periodically during application start-up

I have a requirement where i need to create one mongoDB collection. That collection will hold NAICS code and description which will be updated by NAICS Association every five years. They release in excel and we need to update our collection. This…
Mohan
  • 699
  • 1
  • 11
  • 27
1
2