Skip to content

bug: authentication failed when Sync resource types with Hub #7475

@Marshall-Qiu

Description

@Marshall-Qiu

Describe the bug

Descritpion

I clicked the button Sync resource types with Hub to sync resources from the hub, it shows authentication error

Job log

job=019b720b-8b89-2625-e9fe-1af7fc221cae tag=bun worker=wk-default-p95lh-5KWsF hostname=windmill-workers-default-f84bff95b-p95lh

loaded from local cache: /tmp/windmill/cache/bun/8b2e8836e919f149606021bc0ba6ecb14511b66732a48f84cd5e2d6a329bcbbb


--- BUN BUNDLE SNAPSHOT EXECUTION ---

INFO ! Could not reach API given existing credentials. Attempting to reauth...
INFO Not a TTY, can't login interactively.
56943 |     let errorMsg = error3 instanceof Error ? error3.message : String(error3);
56944 |     if (errorMsg.includes("fetch") || errorMsg.includes("connection") || errorMsg.includes("ECONNREFUSED") || errorMsg.includes("refused"))
56945 |       throw Error(`Network error: Could not connect to Windmill server at ${workspace.remote}`);
56946 |     exports_mod2.info("! Could not reach API given existing credentials. Attempting to reauth...");
56947 |     let newToken = await loginInteractive(workspace.remote);
56948 |       throw Error("Unauthorized: Could not authenticate with the provided credentials");
                         ^
error: Unauthorized: Could not authenticate with the provided credentials
      at requireLogin (/tmp/windmill/cache/bun/8b2e8836e919f149606021bc0ba6ecb14511b66732a48f84cd5e2d6a329bcbbb:56948:18)
      at async pull2 (/tmp/windmill/cache/bun/8b2e8836e919f149606021bc0ba6ecb14511b66732a48f84cd5e2d6a329bcbbb:67782:36)
      at async main3 (/tmp/windmill/cache/bun/8b2e8836e919f149606021bc0ba6ecb14511b66732a48f84cd5e2d6a329bcbbb:70060:14)
      at async run (/tmp/windmill/wk-default-p95lh-5KWsF/019b720b-8b89-2625-e9fe-1af7fc221cae/wrapper.mjs:27:26)
      at processTicksAndRejections (7:39)

To reproduce

  1. Go to Resource page /resources
  2. Click on Add resource on the top right of the page
  3. Click Sync resource types with Hub
  4. See error

Expected behavior

resources sync from the hub successfully

Screenshots

Image

Browser information

Version 143.0.7499.170 (Official Build) (arm64)

Application version

CE v1.599.3

Additional Context

  1. We are self-hosting windmill on k8s cluster, and currently our windmill domain is internal only not accessible by external network
  2. I can get the Script from the hub

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions