# Mender deployments migration error

**URL:** <https://hub.mender.io/t/mender-deployments-migration-error/4773>\
**Category:** General Discussions\
**Tags:** mender-server\
**Created:** [March 21, 2022, 5:26pm UTC](https://hub.mender.io/t/mender-deployments-migration-error/4773 "2022-03-21T17:26:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mflynn56](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mflynn56](https://hub.mender.io/u/mflynn56)\
**Post date:** [March 21, 2022, 5:26pm UTC](https://hub.mender.io/t/mender-deployments-migration-error/4773/1 "2022-03-21T17:26:51Z")

</div>

With virgin installation via docker-compose of 3.2.1, at startup get following error from mender-deployments and continuous restarts.  
WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping  
WARNING: docker.mender.io.crt does not contain exactly one certificate or CRL: skipping  
time=“2022-03-21T16:41:58Z” level=info msg="‘presign.secret’ not configured. Generating a random secret." file=main.go func=main.doMain.func1 line=99  
time=“2022-03-21T16:41:58Z” level=info msg=“Deployments Service starting up” file=main.go func=main.cmdServer line=138  
time=“2022-03-21T16:41:58Z” level=info msg=“automigrate is ON, will apply migrations” file=migrations.go func=mongo.Migrate line=48  
time=“2022-03-21T16:41:58Z” level=info msg=“migrating deployment\_service” file=migrations.go func=mongo.MigrateSingle line=70  
time=“2022-03-21T16:41:58Z” level=info msg=“migration to version 1.2.1 skipped” db=deployment\_service file=migrator\_simple.go func=“migrate.(\*SimpleMigrator).Apply” line=125  
time=“2022-03-21T16:41:58Z” level=info msg=“migration to version 1.2.2 skipped” db=deployment\_service file=migrator\_simple.go func=“migrate.(\*SimpleMigrator).Apply” line=125  
time=“2022-03-21T16:41:58Z” level=info msg=“migration to version 1.2.3 skipped” db=deployment\_service file=migrator\_simple.go func=“migrate.(\*SimpleMigrator).Apply” line=125  
time=“2022-03-21T16:41:58Z” level=info msg=“migration to version 1.2.4 skipped” db=deployment\_service file=migrator\_simple.go func=“migrate.(\*SimpleMigrator).Apply” line=125  
time=“2022-03-21T16:41:58Z” level=info msg=“migration to version 1.2.5 skipped” db=deployment\_service file=migrator\_simple.go func=“migrate.(\*SimpleMigrator).Apply” line=125  
time=“2022-03-21T16:41:58Z” level=info msg=“migration to version 1.2.6 skipped” db=deployment\_service file=migrator\_simple.go func=“migrate.(\*SimpleMigrator).Apply” line=125  
time=“2022-03-21T16:41:58Z” level=info msg=“migration to version 1.2.7 skipped” db=deployment\_service file=migrator\_simple.go func=“migrate.(\*SimpleMigrator).Apply” line=125  
time=“2022-03-21T16:41:58Z” level=info msg=“DB migrated to version 1.2.7” db=deployment\_service file=migrator\_simple.go func=“migrate.(\*SimpleMigrator).Apply” line=140  
InternalServerError: Internal Server Error  
status code: 500, request id: , host id:

---

<div class="post-metadata">

**Author:** ![kevin.gardthausen\_dh](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kevin.gardthausen_dh/32/756_2.png) [@kevin.gardthausen\_dh](https://hub.mender.io/u/kevin.gardthausen_dh)\
**Post date:** [April 4, 2022, 4:44pm UTC](https://hub.mender.io/t/mender-deployments-migration-error/4773/2 "2022-04-04T16:44:58Z")

</div>

Good Day!

I’m getting the extact same problem with v3.2.1. The deployments services keeps restarting. Any news on how to fix this?

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![kevin.gardthausen\_dh](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kevin.gardthausen_dh/32/756_2.png) [@kevin.gardthausen\_dh](https://hub.mender.io/u/kevin.gardthausen_dh)\
**Post date:** [April 4, 2022, 4:56pm UTC](https://hub.mender.io/t/mender-deployments-migration-error/4773/3 "2022-04-04T16:56:55Z")

</div>

Update: Chaning the version of 3.2.1 to 3.2.x for mender-deployments in the docker-compose.yml has fixed the issue for me.

# 

```
# mender-deployments
#
mender-deployments:
    image: mendersoftware/deployments:mender-3.2.x

```

---

<div class="post-metadata">

**Author:** ![alfrunes](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/alfrunes/32/703_2.png) [@alfrunes](https://hub.mender.io/u/alfrunes)\
**Post date:** [April 5, 2022, 7:25am UTC](https://hub.mender.io/t/mender-deployments-migration-error/4773/4 "2022-04-05T07:25:28Z")

</div>

@mflynn56 Hi, I hope I’m not too late, and I apologize for the late reply.  
The issue you’re having seems to be related to an internal server error returned from the Minio service (I know, the logs are not very obvious in this case).  
Could you please check if the Minio service is healthy and responding correctly?

- You can start by probing the [liveliness endpoint](https://docs.min.io/minio/baremetal/monitoring/healthcheck-probe.html#node-liveness) on the container.

---

<div class="post-metadata">

**Author:** ![alfrunes](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/alfrunes/32/703_2.png) [@alfrunes](https://hub.mender.io/u/alfrunes)\
**Post date:** [April 5, 2022, 7:30am UTC](https://hub.mender.io/t/mender-deployments-migration-error/4773/5 "2022-04-05T07:30:40Z")

</div>

Hi @kevin.gardthausen_dh

Glad that it worked out for you. But I think the issue is not related to the deployments service - in fact, there should be no difference between the 3.2.1 and 3.2.x image in this case.  
Please see my last comment.

---

<div class="post-metadata">

**Author:** ![kevin.gardthausen\_dh](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kevin.gardthausen_dh/32/756_2.png) [@kevin.gardthausen\_dh](https://hub.mender.io/u/kevin.gardthausen_dh)\
**Post date:** [April 5, 2022, 9:15am UTC](https://hub.mender.io/t/mender-deployments-migration-error/4773/6 "2022-04-05T09:15:46Z")

</div>

Good Day!

I had another Mender installation where my fix did not work but when I changed the storage URL to match the Mender URL it started up fine.
