TrueCommand behind Traefik reverse proxy

I’m having a hard time adding systems to TrueCommand. I’m running TrueCommand behind a traefik rev proxy. Everything else seems to be working fine. Any ideas?

{"level":"INFO","ts":"Feb 18 10:57:04.002466","caller":"api/connection.go:46","msg":"Using JSON-RPC API for connection","id":"a06236ca-e29e-4f2e-b2e2-c7849e1966a0","name":"TrueNAS Main","api_version":"v25.10.1"}
{"level":"INFO","ts":"Feb 18 10:58:09.095166","caller":"api/server.go:117","msg":"Restarting server connection after change","id":"a06236ca-e29e-4f2e-b2e2-c7849e1966a0","name":"TrueNAS Main"}
{"level":"INFO","ts":"Feb 18 10:58:09.095418","caller":"api/connection.go:85","msg":"Resetting connection","id":"a06236ca-e29e-4f2e-b2e2-c7849e1966a0","name":"TrueNAS Main"}
{"level":"INFO","ts":"Feb 18 10:58:09.095550","caller":"api/subscriptions.go:103","msg":"Unsubscribing from events on server","id":"a06236ca-e29e-4f2e-b2e2-c7849e1966a0","name":"TrueNAS Main"}
{"level":"INFO","ts":"Feb 18 10:58:09.095618","caller":"api/connection.go:87","msg":"Disconnected from reset","id":"a06236ca-e29e-4f2e-b2e2-c7849e1966a0","name":"TrueNAS Main"}
{"level":"INFO","ts":"Feb 18 10:58:09.174660","caller":"api/connection.go:46","msg":"Using JSON-RPC API for connection","id":"a06236ca-e29e-4f2e-b2e2-c7849e1966a0","name":"TrueNAS Main","api_version":"v25.10.1"}
{"level":"WARN","ts":"Feb 18 10:59:04.003565","caller":"api/methods.go:82","msg":"Timed out sending message","id":"a06236ca-e29e-4f2e-b2e2-c7849e1966a0","time":"2m0s"}
{"level":"WARN","ts":"Feb 18 10:59:04.004007","caller":"api/methods.go:131","msg":"Timed out sending message","id":"a06236ca-e29e-4f2e-b2e2-c7849e1966a0","name":"TrueNAS Main","msg":"core.set_options","id":"cde91746-ef7f-433e-b974-a306e3a743ad","time":"2m0s"}
{"level":"WARN","ts":"Feb 18 10:59:04.004407","caller":"api/connection.go:58","msg":"Failed to set options","server":"a06236ca-e29e-4f2e-b2e2-c7849e1966a0","name":"TrueNAS Main","err":"operation timed out"}
{"level":"WARN","ts":"Feb 18 10:59:04.004608","caller":"internal/server-list.go:187","msg":"Failed to initialize connection to server","id":"a06236ca-e29e-4f2e-b2e2-c7849e1966a0","name":"TrueNAS Main","err":"operation timed out"}

@BooMShanKerX I believe the issue is coming from a bug in 3.2.0 related to recreating the websocket connection recreation to the TrueNAS when using the versioned API, blocking the edit API, which is causing a timeout from Traefik due to a timeout mismatch (1min for Traefik, 2min for TrueCommand), resulting in a 502 before a response is returned from TrueCommand.

Could you one of these options?

  • Use the “legacy client” under API Version instead of “v25.10”
  • Pull docker pull ghcr.io/ixsystems/truecommand:latest and see if you can connect on the latest version (3.3.0, to be released officially in a couple of weeks)

Also make sure the TrueNAS is reachable from within the TrueCommand container.

1 Like

Updating to 3.3.0 did resolve the issue. Thank you.

2 Likes