# Unable to create deployment for static groups

**URL:** <https://hub.mender.io/t/unable-to-create-deployment-for-static-groups/2620>\
**Category:** General Discussions\
**Tags:** mender-server\
**Created:** [October 6, 2020, 9:00am UTC](https://hub.mender.io/t/unable-to-create-deployment-for-static-groups/2620 "2020-10-06T09:00:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![spratesi](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@spratesi](https://hub.mender.io/u/spratesi)\
**Post date:** [October 6, 2020, 9:00am UTC](https://hub.mender.io/t/unable-to-create-deployment-for-static-groups/2620/1 "2020-10-06T09:00:49Z")

</div>

I introduced this problem here: ["Showing 0 of 1 device pending authorization": device missing in authorization interface](https://hub.mender.io/t/showing-0-of-1-device-pending-authorization-device-missing-in-authorization-interface/2529) not knowing if the two issues where related. Since it seems not to be the case I’m opening a new topic for clarity and better issue tracking

Using Mender Open Source 2.5.0

Creating a deployment targeting a group fails with: “Error creating deployment. internal error [Request ID: ac3001e3]”  
Instead if targeting ‘all devices’ there is no error and the deployment goes as expected.

On “Release” tab I click on “CREATE A DEPLOYMENT WITH THIS RELEASE”. Then I select one of the groups I have. Then “NEXT”. Then “CREATE”. Here I have the error.  
If instead I select “All devices” instead of a group the error doesn’t happen.

```auto
set 30 18:44:21 mender run[12181]: mender-deployments_1 | time="2020-09-30T16:44:21Z" level=error msg="tenant ID not present in the context" file=app.go func="app.(*Deployments).CreateDeployment" line
set 30 18:44:21 mender run[12181]: mender-deployments_1 | time="2020-09-30T16:44:21Z" level=error msg="Internal error" file=view.go func="view.(*RESTView).RenderInternalError" line=58 request_id=e8395
set 30 18:44:21 mender run[12181]: mender-deployments_1 | time="2020-09-30T16:44:21Z" level=info msg="500 1078μs POST /api/management/v1/deployments/deployments/group/lorac-dev HTTP/1.1 - Mozilla/5.0   

```

Here the logs of the service from boot, with a failed deployment to a group and a successful deployment to “All devices”:

[https://mega.nz/file/j352UZyT#DwWnO5PBDjtXQS75RLsX6pqhntP2qu9JqkAZA98E-ck](https://mega.nz/file/j352UZyT#DwWnO5PBDjtXQS75RLsX6pqhntP2qu9JqkAZA98E-ck)

The machine has Debian Buster installed, docker and docker-compose from Debian repositories:

```
docker.io==18.09.1+dfsg1-7.1+deb10u2
docker-compose==1.21.0.3

```

I previously run on the same machine v2.4.0 of Mender, and I never encountered this problem.

Thank you for your help

---

<div class="post-metadata">

**Author:** ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://hub.mender.io/u/peter)\
**Post date:** [October 6, 2020, 9:37am UTC](https://hub.mender.io/t/unable-to-create-deployment-for-static-groups/2620/2 "2020-10-06T09:37:57Z")

</div>

Hello @spratesi

thank you for using Mender. It seems to be a bug – we will investigate and fix as soon as possible.

best regards,  
peter

---

<div class="post-metadata">

**Author:** ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://hub.mender.io/u/peter)\
**Post date:** [October 12, 2020, 10:31am UTC](https://hub.mender.io/t/unable-to-create-deployment-for-static-groups/2620/3 "2020-10-12T10:31:27Z")

</div>

the bug has been fixed and it will be the part of upcoming release.  
I am sorry for any inconvenience.

peter

---

<div class="post-metadata">

**Author:** ![spratesi](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@spratesi](https://hub.mender.io/u/spratesi)\
**Post date:** [October 12, 2020, 3:11pm UTC](https://hub.mender.io/t/unable-to-create-deployment-for-static-groups/2620/4 "2020-10-12T15:11:23Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://hub.mender.io/u/peter)\
**Post date:** [October 14, 2020, 5:00pm UTC](https://hub.mender.io/t/unable-to-create-deployment-for-static-groups/2620/5 "2020-10-14T17:00:36Z")

</div>

hello @spratesi

as a workaround could you please change deployments and inventory images in the docker compose file to:

```auto
mendersoftware/deployments:mender-2.5.x
mendersoftware/inventory:mender-2.5.x

```

Please take a [backup](https://docs.mender.io/2.5/server-installation/backup-and-restore) of the installation first.  
I am once again sorry for this.

peter

---

<div class="post-metadata">

**Author:** ![matteog](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@matteog](https://hub.mender.io/u/matteog)\
**Post date:** [October 28, 2020, 12:50pm UTC](https://hub.mender.io/t/unable-to-create-deployment-for-static-groups/2620/6 "2020-10-28T12:50:31Z")

</div>

> [@peter](#):
>
> as a workaround could you please change deployments and inventory images in the docker compose file to:
> 
> mendersoftware/deployments:mender-2.5.x  
> mendersoftware/inventory:mender-2.5.x

Just to explain more to the uninitiated (like me), you need to:

1. delete your old _deployments_ and _inventory_ containers from the system (`docker container ls` and `docker container rm ...`). Be careful to remove the correct ones!
2. change the two lines quoted above in prod.yml from “2.5.0” to “2.5.x”
3. Then re-run `./run pull` and `./run up -d` to recreate the _deployments_ and _inventory_ containers from image version “2.5.x”, which has the necessary corrections.

Cheers!

---

<div class="post-metadata">

**Author:** ![Jerry](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jerry/32/931_2.png) [@Jerry](https://hub.mender.io/u/Jerry)\
**Post date:** [February 22, 2021, 4:55pm UTC](https://hub.mender.io/t/unable-to-create-deployment-for-static-groups/2620/7 "2021-02-22T16:55:12Z")

</div>

Thank you very much, it worked perfectly.  
To be noted : the file to change is **docker-compose.yml** not **prod.yml**
