operator icon indicating copy to clipboard operation
operator copied to clipboard

Error: First path segment in URL cannot contain colon

Open stephan2012 opened this issue 6 months ago • 7 comments

Expected Behavior

After upgrading the Operator from v5.x to v6.0.2, the Tenant yields an error on startup:

$ kubectl logs -n minio-tenant minio-tenant-pool-0-0 
Defaulted container "minio" out of: minio, sidecar, validate-arguments (init)
{"level":"FATAL","time":"2024-08-19T19:49:23.918222436Z","message":"parse \"'https://s3-console.lab2.company.com/'\": first path segment in URL cannot contain colon","error":{"message":"parse \"'https://s3-console.lab2.company.com/'\": first path segment in URL cannot contain colon","source":["cmd/server-main.go:788:cmd.serverMain()"]}}

Changing MINIO_BROWSER_REDIRECT_URL from https://s3-console.lab2.company.com/ to s3-console.lab2.company.com/ does not help:

$ kubectl logs -n minio-tenant minio-tenant-pool-0-0 
Defaulted container "minio" out of: minio, sidecar, validate-arguments (init)
{"level":"FATAL","time":"2024-08-19T19:51:30.623246278Z","message":"unexpected scheme found ","error":{"message":"unexpected scheme found ","source":["cmd/server-main.go:788:cmd.serverMain()"]}}

Current Behavior

See above.

Possible Solution

Fix URL parsing.

Steps to Reproduce (for bugs)

Not sure but possibly it is enough to set MINIO_BROWSER_REDIRECT_URL to a full URL.

Context

Upgrading from v5.x to v6.0.2.

Regression

Not sure.

Your Environment

  • Version used (minio-operator): v6.0.2
  • Environment name and version (e.g. kubernetes v1.17.2): v1.29.7
  • Server type and version: Debian GNU/Linux 12 (Bookworm)
  • Operating System and version (uname -a): Linux n0251 6.9.7+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.7-1~bpo12+1 (2024-07-03) x86_64 GNU/Linux
  • Link to your deployment file: N/A

stephan2012 avatar Aug 19 '24 20:08 stephan2012