[GH-ISSUE #498] [BUG] Cli tool can't show dashboard. #2253

Closed
opened 2026-03-15 19:51:36 +03:00 by kerem · 0 comments
Owner

Originally created by @jaekook-neonesia on GitHub (Jun 22, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/498

Originally assigned to: @hibiken on GitHub.

Describe the bug
Cli tool can't show a dashboard when the password was required.

To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):

  1. ./asynq dash -p *******

  2. Result
    === Queues ===
    active=▇ pending=▇ aggregating=▇ scheduled=▇ retry=▇ archived=▇ completed=▇
    Queue State Size Latency MemoryUsage Processed Failed ErrorRate

NOAUTH Authentication required.

Expected behavior
Showing a dashboard

Environment (please complete the following information):

  • OS: Ubuntu 20.22

Additional context
I checked the cli source code,
inspector hard coded RedisClientOpt.

  • tools/asynq/cmd/dash/dash.go

func Run(opts Options) {
s, err := tcell.NewScreen()
if err != nil {
fmt.Printf("failed to create a screen: %v\n", err)
os.Exit(1)
}
if err := s.Init(); err != nil {
fmt.Printf("failed to initialize screen: %v\n", err)
os.Exit(1)
}
s.SetStyle(baseStyle) // set default text style

var (
	state = State{} // confined in this goroutine only; DO NOT SHARE

	inspector = asynq.NewInspector(asynq.RedisClientOpt{Addr: ":6379"})
Originally created by @jaekook-neonesia on GitHub (Jun 22, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/498 Originally assigned to: @hibiken on GitHub. **Describe the bug** Cli tool can't show a dashboard when the password was required. **To Reproduce** Steps to reproduce the behavior (Code snippets if applicable): 1. ./asynq dash -p ******* 2. Result === Queues === active=▇ pending=▇ aggregating=▇ scheduled=▇ retry=▇ archived=▇ completed=▇ Queue State Size Latency MemoryUsage Processed Failed ErrorRate NOAUTH Authentication required. **Expected behavior** Showing a dashboard **Environment (please complete the following information):** - OS: Ubuntu 20.22 **Additional context** I checked the cli source code, inspector hard coded RedisClientOpt. - tools/asynq/cmd/dash/dash.go func Run(opts Options) { s, err := tcell.NewScreen() if err != nil { fmt.Printf("failed to create a screen: %v\n", err) os.Exit(1) } if err := s.Init(); err != nil { fmt.Printf("failed to initialize screen: %v\n", err) os.Exit(1) } s.SetStyle(baseStyle) // set default text style var ( state = State{} // confined in this goroutine only; DO NOT SHARE inspector = asynq.NewInspector(asynq.RedisClientOpt{Addr: ":6379"})
kerem 2026-03-15 19:51:36 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2253
No description provided.