Error: Failed to get history on workflow id with Error Details: context deadline exceeded

I’m unable to show or cancel particular active workflow:

tctl  -ad $HOST  -ns "viola" wf show -w dfea06cd-5e6c-4451-b5cc-0bf6c10b1129 -r 782cd633-1c46-4559-b079-e305b4319b96
Error: Failed to get history on workflow id: dfea06cd-5e6c-4451-b5cc-0bf6c10b1129, run id: 782cd633-1c46-4559-b079-e305b4319b96.
Error Details: context deadline exceeded
('export TEMPORAL_CLI_SHOW_STACKS=1' to see stack traces)

with stack traces:

Stack trace:
goroutine 1 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
	runtime/debug/stack.go:16 +0x19
go.temporal.io/server/tools/cli.printError({0xc000150380, 0x79}, {0x2aa9220, 0xc0004e1398})
	go.temporal.io/server/tools/cli/util.go:394 +0x22a
go.temporal.io/server/tools/cli.ErrorAndExit({0xc000150380, 0x35}, {0x2aa9220, 0xc0004e1398})
	go.temporal.io/server/tools/cli/util.go:405 +0x28
go.temporal.io/server/tools/cli.showHistoryHelper(0xc0000c58c0, {0x7ffeefbff3c9, 0x24}, {0x7ffeefbff3f1, 0x24})
	go.temporal.io/server/tools/cli/workflowCommands.go:113 +0x2dc
go.temporal.io/server/tools/cli.ShowHistory(0xc0000c58c0)
	go.temporal.io/server/tools/cli/workflowCommands.go:79 +0x6c
go.temporal.io/server/tools/cli.newWorkflowCommands.func1(0xc0000c58c0)
	go.temporal.io/server/tools/cli/workflow.go:40 +0x19
github.com/urfave/cli.HandleAction({0x24482a0, 0x286bda0}, 0x4)
	github.com/urfave/cli@v1.22.5/app.go:526 +0x50
github.com/urfave/cli.Command.Run({{0x27b761e, 0x4}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x27d9e48, 0x15}, {0x0, ...}, ...}, ...)
	github.com/urfave/cli@v1.22.5/command.go:173 +0x652
github.com/urfave/cli.(*App).RunAsSubcommand(0xc0000bce00, 0xc0000c5600)
	github.com/urfave/cli@v1.22.5/app.go:405 +0x9ec
github.com/urfave/cli.Command.startApp({{0x27c023d, 0x8}, {0x0, 0x0}, {0xc0005104c0, 0x1, 0x1}, {0x27e175b, 0x19}, {0x0, ...}, ...}, ...)
	github.com/urfave/cli@v1.22.5/command.go:372 +0x6e9
github.com/urfave/cli.Command.Run({{0x27c023d, 0x8}, {0x0, 0x0}, {0xc0005104c0, 0x1, 0x1}, {0x27e175b, 0x19}, {0x0, ...}, ...}, ...)
	github.com/urfave/cli@v1.22.5/command.go:102 +0x808
github.com/urfave/cli.(*App).Run(0xc0000bc8c0, {0xc000136000, 0x10, 0x10})
	github.com/urfave/cli@v1.22.5/app.go:277 +0x705
main.main()
	./main.go:37 +0x33

How to go about trying to understand what the problem is or force deleting it?

Hey @viola,
There is not enough information provided to help with the problem. The error you are getting is “context deadline error” which just indicates the tctl call is timing out to retrieve the history for workflow execution. Can you provide more information about the setup? Also make sure you have don’t have connectivity issues. Any logs from the server would help too. Please include the version of Temporal Server and tctl when you provide this information.