Init Container Fails If User Present With External DB #10

Closed
opened 2020-08-25 19:26:23 +00:00 by sstubbs · 7 comments
sstubbs commented 2020-08-25 19:26:23 +00:00 (Migrated from gitea.com)

Hi,

I'm reinstalling the chart. I've tried both deleting and reinstalling the chart and upgrading it. The problem is the init container seems to keep failing as the user is already present in the database. Any ideas on how this can be fixed? The init container shouldn't run again with every reinstallation. This will also be a problem for upgrades of the container image in the future.

Hi, I'm reinstalling the chart. I've tried both deleting and reinstalling the chart and upgrading it. The problem is the init container seems to keep failing as the user is already present in the database. Any ideas on how this can be fixed? The init container shouldn't run again with every reinstallation. This will also be a problem for upgrades of the container image in the future.
luhahn commented 2020-08-26 06:38:34 +00:00 (Migrated from gitea.com)

Hi, that is odd. We added a backup, that if the user is present, we only change the password. I'll check that today and get back to you.

Hi, that is odd. We added a backup, that if the user is present, we only change the password. I'll check that today and get back to you.
luhahn commented 2020-08-26 07:39:30 +00:00 (Migrated from gitea.com)

Okay, so is the first start successfull?
Can you post the output of the init container?

I've found a bug, which could have impact on the behavior you're experiencing. But it should not have anything to do with the admin user creation. That works fine on upgrades/reinstall/delete whatever :D.

Okay, so is the first start successfull? Can you post the output of the init container? I've found a bug, which could have impact on the behavior you're experiencing. But it should not have anything to do with the admin user creation. That works fine on upgrades/reinstall/delete whatever :D.
luhahn commented 2020-08-26 08:11:58 +00:00 (Migrated from gitea.com)

I just pushed version 1.4.1-r1 on novumrgi chart repo. This might fix this error. It would be great if you can test this.

Feel free to contact me on discord directly, so we can resolve this Issue quickly :)

I just pushed version 1.4.1-r1 on novumrgi chart repo. This might fix this error. It would be great if you can test this. Feel free to contact me on discord directly, so we can resolve this Issue quickly :)
sstubbs commented 2020-08-28 19:45:50 +00:00 (Migrated from gitea.com)

Sorry for the late reply on this. Still having the same issue with this using version 1.4.1-r1. Thanks that would be great what discord should I join?

Sorry for the late reply on this. Still having the same issue with this using version 1.4.1-r1. Thanks that would be great what discord should I join?
techknowlogick commented 2020-08-28 19:59:35 +00:00 (Migrated from gitea.com)

discord.gg/gitea

discord.gg/gitea
sstubbs commented 2020-08-30 20:24:58 +00:00 (Migrated from gitea.com)

This seems to be working now. Weird that it seems to run through all these checks in the init container and the main container each time it starts. Not the end of the world but it would be nice if this startup was a bit quicker.

This seems to be working now. Weird that it seems to run through all these checks in the init container and the main container each time it starts. Not the end of the world but it would be nice if this startup was a bit quicker.
luhahn commented 2020-09-21 15:37:16 +00:00 (Migrated from gitea.com)

I think this can be closed now @sstubbs?

I think this can be closed now @sstubbs?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunny/helm-chart#10
No description provided.