Error while creating virtual device on mender production setup (setup done using docker-compose)

I have created mender production setup using docker compose. While creating a virtual device using ./demo --client up this command getting some error :-
Failed to get the ‘JWT’ token from the useradm service.
This is needed in order to upload the demo Artifact.
curl exit code: 22
Retrying in 5…
Failed to get the ‘JWT’ token from the useradm service.
This is needed in order to upload the demo Artifact.
curl exit code: 22
Retrying in 5…

I am unable to debug this.

Hi, has someone encountered any issue like this?

Which version of Mender is this?

Can you, while ./demo --client up is still running, run this in a different terminal:

./demo --client logs > log.txt

The log tends to be massive; usually the best approach is to go to the end of the log and search backwards for “useradm”. See if you can spot any error messages, and feel free to post them here if they don’t make sense to you.