Skip to content

Fix user-api CrashLoopBackOff: restore config dictionary#41

Open
arikalon1 wants to merge 1 commit intomainfrom
fix/user-api-config-crash-v2
Open

Fix user-api CrashLoopBackOff: restore config dictionary#41
arikalon1 wants to merge 1 commit intomainfrom
fix/user-api-config-crash-v2

Conversation

@arikalon1
Copy link
Copy Markdown
Contributor

Problem

The user-api application is in CrashLoopBackOff with 98+ restarts over 8 hours.

Root Cause

Commit b352481 changed config from a dictionary to None, causing immediate crash on startup:

TypeError: 'NoneType' object is not subscriptable

The application tries to access config["host"] at line 7, but config is None.

Impact

  • Pod user-api-69dd5fdb8c-lrz9t in namespace users cannot start
  • Application completely unavailable since 2026-01-14 22:46 UTC
  • Liveness probe failing at /health endpoint

Solution

Restore the config dictionary with proper host and port values:

config = {"host": "0.0.0.0", "port": 5000}

Testing

After merge, verify pod starts successfully:

kubectl get pods -n users -l app=user-api
kubectl logs -n users -l app=user-api

Fixes the issue introduced in commit b352481.

Fixes CrashLoopBackOff caused by commit b352481 which set config to None.

Root cause: Application crashes on startup with TypeError when trying to 
access config["host"] because config was set to None.

Impact: Pod user-api-69dd5fdb8c-lrz9t has been crashing for 8+ hours 
with 98+ restart attempts.

Solution: Restore config dictionary with host and port values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant