Unable to create deployment to a specific device group on Mender 2.5

I’ve got Mender 2.5 running in an on-premises setup and have been able to successfully create deployments to upgrade my devices previously.

However, now that I’ve started putting devices into groups, I’m not able to create a deployment that targets a single group. I am getting a 500 Internal Server Error in the browser when it tries to create the deployment by posting to https://MY_DOMAIN/api/management/v1/deployments/deployments/group/MY_GROUP_NAME.

The server side logs are complaining “tenant ID not present in the context”:

{"log":"time=\"2020-10-27T10:24:06Z\" level=error msg=\"Resource not found\" file=view.go func=\"view.(*RESTView).RenderError\" line=53 request_id=fe42a1ae-b2bd-4a29-84fa-01d7af968873 user_id=3bbc5856-1b09-5bb4-b752-1e8ae37eeccb\n","stream":"stderr","time":"2020-10-27T10:24:06.597063177Z"}
{"log":"time=\"2020-10-30T16:12:03Z\" level=error msg=\"tenant ID not present in the context\" file=app.go func=\"app.(*Deployments).CreateDeployment\" line=694 request_id=0cec51c2-607d-48c0-b3b1-dcfc72f7a1f8 user_id=3bbc5856-1b09-5bb4-b752-1e8ae37eeccb\n","stream":"stderr","time":"2020-10-30T16:12:03.386154821Z"}
{"log":"time=\"2020-10-30T16:12:03Z\" level=error msg=\"Internal error\" file=view.go func=\"view.(*RESTView).RenderInternalError\" line=58 request_id=0cec51c2-607d-48c0-b3b1-dcfc72f7a1f8 user_id=3bbc5856-1b09-5bb4-b752-1e8ae37eeccb\n","stream":"stderr","time":"2020-10-30T16:12:03.386180857Z"}
{"log":"time=\"2020-10-30T16:13:02Z\" level=error msg=\"tenant ID not present in the context\" file=app.go func=\"app.(*Deployments).CreateDeployment\" line=694 request_id=17c23fb9-7492-4d84-9f53-41b3f366743d user_id=3bbc5856-1b09-5bb4-b752-1e8ae37eeccb\n","stream":"stderr","time":"2020-10-30T16:13:02.840036003Z"}
{"log":"time=\"2020-10-30T16:13:02Z\" level=error msg=\"Internal error\" file=view.go func=\"view.(*RESTView).RenderInternalError\" line=58 request_id=17c23fb9-7492-4d84-9f53-41b3f366743d user_id=3bbc5856-1b09-5bb4-b752-1e8ae37eeccb\n","stream":"stderr","time":"2020-10-30T16:13:02.840047736Z"}
{"log":"time=\"2020-10-30T16:13:53Z\" level=error msg=\"tenant ID not present in the context\" file=app.go func=\"app.(*Deployments).CreateDeployment\" line=694 request_id=4101e896-4f15-4f9a-8fad-55ed095e8efe user_id=3bbc5856-1b09-5bb4-b752-1e8ae37eeccb\n","stream":"stderr","time":"2020-10-30T16:13:53.801140265Z"}
{"log":"time=\"2020-10-30T16:13:53Z\" level=error msg=\"Internal error\" file=view.go func=\"view.(*RESTView).RenderInternalError\" line=58 request_id=4101e896-4f15-4f9a-8fad-55ed095e8efe user_id=3bbc5856-1b09-5bb4-b752-1e8ae37eeccb\n","stream":"stderr","time":"2020-10-30T16:13:53.801161179Z"}

I thought tenant IDs were only required for hosted Mender, not on-premises.

Thanks in advance for any help.

Think you are seeing the same thing as was discussed here, Unable to create deployment for static groups

@mirzak: Yes after upgrading deployments and inventory as shown at that link, I was able to create a deployment (browser receives a 201 Created response code), and the deployment succeeded. Thanks!