Deploy Mender on AWS using managed services

Hi everyone,

I’m trying to deploy Mender for testing purpose on AWS with the following components :

  • ECS (for containers)
  • Elasticache (Redis)
  • Managed Elasticsearch
  • DocumentDB (with mongo 3.6 compatibility)

While trying to launch mender-deployments container 1.8.0 (mender 2.2), I have the following message :

time="2020-04-01T13:14:14Z" level=info msg="Deployments Service, version unknown starting up"
time="2020-04-01T13:14:14Z" level=info msg="automigrate is ON, will apply migrations" file=migrations.go func=mongo.Migrate line=48
time="2020-04-01T13:14:14Z" level=info msg="migrating deployment_service" file=migrations.go func=mongo.MigrateSingle line=70
time="2020-04-01T13:14:14Z" level=info msg="applying migration from version 0.0.0 to 1.2.1" db=deployment_service file=migrator_simple.go func="migrate.(*SimpleMigrator).Apply" line=101
time="2020-04-01T13:14:14Z" level=error msg="migration from 0.0.0 to 1.2.1 failed: Index type not supported : text" db=deployment_service file=migrator_simple.go func="migrate.(*SimpleMigrator).Apply" line=106
failed to run migrations: failed to apply migrations: failed to apply migration from 0.0.0 to 1.2.1: Index type not supported : text

with mender-deployments container 1.9.0 (mender 2.3)

time="2020-04-01T11:48:44Z" level=info msg="Deployments Service, version unknown starting up"
time="2020-04-01T11:48:44Z" level=info msg="automigrate is ON, will apply migrations" file=migrations.go func=mongo.Migrate line=48
time="2020-04-01T11:48:44Z" level=info msg="migrating deployment_service" file=migrations.go func=mongo.MigrateSingle line=70
time="2020-04-01T11:48:44Z" level=info msg="applying migration from version 0.0.0 to 1.2.1" db=deployment_service file=migrator_simple.go func="migrate.(*SimpleMigrator).Apply" line=101
time="2020-04-01T11:48:44Z" level=error msg="migration from 0.0.0 to 1.2.1 failed: ns not found" db=deployment_service file=migrator_simple.go func="migrate.(*SimpleMigrator).Apply" line=106
failed to run migrations: failed to apply migrations: failed to apply migration from 0.0.0 to 1.2.1: ns not found

Did you ever experienced this kind of problem ? Or is there any workaround ?

Thanks for your help :slight_smile:

I did not mention that in my previous message but DocumentDB on AWS does not support Text Index (cf https://docs.aws.amazon.com/documentdb/latest/developerguide/mongo-apis.html#mongo-apis-index).

Is there any possibilities to boostrap the data structure of deployment without this index ?