Web UI with Elasticsearch No history and Stacktrace

The only problem we have no is that we can not see History and StackTrace from the UI

Does your Web UI show any errors on the history page or is it just blank? Could you share a screenshot?
So listing works, and do you get info on the Summary page when you click on one of your listed runids?

Regarding the stack trace, its only available for running workflows. Once a workflow completes, it would not longer be shown.

What do you get when you run:
tctl workflow list --query "WorkflowId=<workflow_id>"

If that gives a failure but you get a result via:

tctl workflow describe --workflow_id <workflow_id>

Then its most likely ES configuration issue.