posit-dev / posit-dev/team-operator

error in logs: reconcileKeycloak error parsing port from dbUrl

Open
#100 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
10
Forks
1
Avg merge
1d 8h
Merged PRs (30d)
4

Description

On the academy ptd site I was looking at team-operator-controller-manager pod logs and noticed this error

2026-02-26T03:00:21Z    ERROR    error parsing port from dbUrl. Using default of 5432    {"contr │
│ github.com/posit-dev/team-operator/internal/controller/core.(*SiteReconciler).reconcileKeycloak  │
│     /workspace/internal/controller/core/site_controller_keycloak.go:134                          │
│ github.com/posit-dev/team-operator/internal/controller/core.(*SiteReconciler).reconcileResources │
│     /workspace/internal/controller/core/site_controller.go:385                                   │
│ github.com/posit-dev/team-operator/internal/controller/core.(*SiteReconciler).Reconcile          │
│     /workspace/internal/controller/core/site_controller.go:78                                    │
│ sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile              │
│     /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.22.4/pkg/internal/controller/controller.go:216 │
│ sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler       │
│     /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.22.4/pkg/internal/controller/controller.go:461 │
│ sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem    │
│     /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.22.4/pkg/internal/controller/controller.go:421 │
│ sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func1.1.         |
│     /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.22.4/pkg/internal/controller/controller.go:296 |

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at internal/controller/core/site_controller_keycloak.go:134, then follow the reconcileKeycloak call from internal/controller/core/site_controller.go. Determine why parsing dbUrl produces this error and what behavior should be expected when the port is absent or malformed; done means the reported log behavior is corrected and verified without regressions.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.