helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

WARN: environment contains invalid option 'backup-enabled'

Open mindrunner opened this issue 2 years ago • 6 comments

I see a lot of those warnings in my logs:

Sourcing /home/postgres/.pgbackrest_environment                                                                                                                                                                                                                                                                                                                                         
WARN: environment contains invalid option 'backup-enabled'                                                                                                                                                                                                                                                                                                                              
Sourcing /home/postgres/.pgbackrest_environment                                                                                                                                                                                                                                                                                                                                         
WARN: environment contains invalid option 'backup-enabled'                                                                                                                                                                                                                                                                                                                              
Sourcing /home/postgres/.pgbackrest_environment                                                                                                                                                                                                                                                                                                                                         
WARN: environment contains invalid option 'backup-enabled'                                                                                                                                                                                                                                                                                                                              
Sourcing /home/postgres/.pgbackrest_environment                                                                                                                                                                                                                                                                                                                                         
WARN: environment contains invalid option 'backup-enabled'                                                                                                                                                                                                                                                                                                                              
Sourcing /home/postgres/.pgbackrest_environment                                                                                                                                                                                                                                                                                                                                         
WARN: environment contains invalid option 'backup-enabled'     

It seems like helm chart is setting some environment whicht pgbackrest tries to parse. Similar to https://github.com/pgbackrest/pgbackrest/issues/799

Is that intended? Do I miss some configuration?

mindrunner avatar Jan 07 '23 13:01 mindrunner

@mindrunner This is a non issue, caused by PGBACKREST_BACKUP_ENABLED set by the chart and pgbackrest having no support for a 'backup-enabled' setting.

davidandreoletti avatar Jan 07 '23 17:01 davidandreoletti

Well, it's pretty verbose in my logs. Feels really not necessary to use a variable name which is sort of reserved by another application in the same stack. I mean, warnings are there for a reason, aren't they. Would a PR changing this variable be accepted?

mindrunner avatar Jan 07 '23 18:01 mindrunner

Your suggestion seems like a reasonable fix it. Best to confirm with maintainers.

davidandreoletti avatar Jan 08 '23 06:01 davidandreoletti

I would like to fix this. @nhudson @paulfantom Is this something I can start with?

jleni avatar Feb 05 '23 15:02 jleni

@jleni please if you can, create a PR and I will review when I can.

nhudson avatar Feb 13 '23 15:02 nhudson

is there any update on this ticket? thank you

mshivanna avatar Sep 29 '23 01:09 mshivanna