Skip to main content

Hi,

we tried to do a fresh install from an initial Build_Home via PowerShell command:

.\installer.cmd --values ..\..\..\config\ifscloud-values.yaml --values solutionset.yaml --set dbInstaller.sysPassword=example

.However, this fails because there is an issue with the Helm chart template(see log below).

The installation process gets the ifs-cloud-212.2.0.tgz (incl. the secrets.yaml file) from the repository and will temporarily stored in folder C:\Users\ifs\AppData\Local\Temp\helm\repository.

Ifscloud-values.yaml and main_config.json have been prepared as far as described in the documentation.
Maybe the error is due to a missing parameter in Ifscloud-values.yaml?

 

############   Ifscloud-values.yaml #################
selfSignedCertificateFile: ..\..\..\config\certs\ifsRoot.pfx
selfSignedPassword: xxxxxxxx

# Repository and credentials to helm repo where charts are stored
helmRepo: https://ifscloud.jfrog.io/artifactory/helm
helmUser: xxx
helmPwd:  xxx
logFileLocation: ..\..\..\logs\ifscloudinstaller

global:
  namespace: devtest  
  customerCode:  cust2
  environmentType: dev  
  replicas: 1
  systemUrl: k8s.test.com

  containerRegistry: ifscloud.jfrog.io/docker/
  imageCredentials:
    username: xxxxxxxxxxxx
    password: xxxxxxxxxxxx

  scale: 10
  replicas: 1

ifscore:
  secrets:
    jdbcUrl:
      name: ifs-jdbc-url
      data: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.x)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=pdb)))
   passwords:  
    ifsiamAdminPw:  
      name: ifsiam-admin-pw  
      data: xxxxxxxx  
    ifsadminPassword:  
      name: ifsadmin-pw  
      data: xxxxxxxx  
    ifsiamPassword:  
      name: ifsiam-password  
      data: xxxxxxxx  
    ifssysPassword:  
      name: ifssys-password  
      data: xxxxxxxx
    ifsappmonitorPw:
      name: ifsappmonitor-pw
      data: xxxxxxxx
    ifsmonPassword:  
      name: ifsmon-password  
      data: xxxxxxxx
    ifsreadonlysuppPw:
      name: ifsreadonlysupp-pw
      data: xxxxxxxx
    

ifsappproxy:  
  accessLogEnabled: false  
   
ifsappodata:  
  replicas: 2   

ifsappdoc:  
   replicas: 0  

dbInstaller:  
  ifsappPassword: example 

############# end of Ifscloud-values.yaml  ########################

 

log excerpt

/Wed Jul 27 22:21:03 CEST 2022] - INFO: Generating symmetric-key. This will only be persisted if the secret, 'symmetric-key' does not exist.
lWed Jul 27 22:21:03 CEST 2022] - INFO: Installing ifs-cloud
nWed Jul 27 22:21:03 CEST 2022] - INFO: Using chart ifscloud/ifs-cloud --version 212.2.0
rWed Jul 27 22:21:03 CEST 2022] - INFO: Doing a dry-run ..
/Wed Jul 27 22:21:04 CEST 2022] - SEVERE: template: ifs-cloud/charts/ifscore/templates/secrets.yaml:6:55: executing "ifs-cloud/charts/ifscore/templates/secrets.yaml" at <.name>: nil pointer evaluating interface {}.name
tWed Jul 27 22:21:04 CEST 2022] - SEVERE: Failed to install ifs-cloud
/Wed Jul 27 22:21:04 CEST 2022] - SEVERE: Failed to install ifs-cloud. Collected logs from command:
"ifscloud" has been added to your repositories
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "ifscloud" chart repository
Update Complete. ⎈Happy Helming!⎈
INFO: Installing ifs-cloud
INFO: Using chart ifscloud/ifs-cloud --version 212.2.0
INFO: Doing a dry-run ..
INFO: Running helm upgrade
history.go:53: Ndebug] getting history for release ifs-cloud
Release "ifs-cloud" does not exist. Installing it now.
install.go:172: Rdebug] Original chart version: "212.2.0"
install.go:189: ydebug] CHART PATH: C:\Users\ifs\AppData\Local\Temp\helm\repository\ifs-cloud-212.2.0.tgz

Error: template: ifs-cloud/charts/ifscore/templates/secrets.yaml:6:55: executing "ifs-cloud/charts/ifscore/templates/secrets.yaml" at <.name>: nil pointer evaluating interface {}.name
helm.go:94: rdebug] template: ifs-cloud/charts/ifscore/templates/secrets.yaml:6:55: executing "ifs-cloud/charts/ifscore/templates/secrets.yaml" at <.name>: nil pointer evaluating interface {}.name
SEVERE: Failed to install ifs-cloud
 
uWed Jul 27 22:21:04 CEST 2022] - SEVERE: Validation failed.

 

 

 

Hi @Michael ,

Did you run in to any trouble when you ran the initial preparation and cluster deployment through “main.ps1”? 

Cheers


Hi @Michael

 

ifscore:
  secrets:
    jdbcUrl:
      name: ifs-jdbc-url
      data: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.x)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=pdb)))
   passwords:  
    ifsiamAdminPw:  
      name: ifsiam-admin-pw  

 

In above section of your actual ifscloud-values.yaml file, is the passwords section indented correctly? It looks like there is an extra space before the “passwords” element. According to the documentation, which can be found here, “secrets” and “passwords” should be siblings(same level of indentation) and the extra space before “passwords” makes “passwords” a child of “secrets”, which is not correct. In YAML, indentations are very important. This could be the issue according to the “nil pointer evaluating interface” error as well.

Delete the extra space before “passwords” element if it exists in the actual file and give the installation another try. 

Hope this helps!


@Sajith D   I was able to carry out the pre-installation for the Infrasructure via PowerShell successfully

@Charith Epitawatta -  Direct hit 🙂 I corrected the spaces and the PowerShell script continues to run now.

I had an error in yaml file before, where I got an error message " error by reading document"
but you can't always count on that.

Thank you very much!

 


as an illustration, left side is the corrected


Reply