Solved

Error during Installer.cmd set action=mtinstaller ifscloud remote

  • 30 December 2022
  • 4 replies
  • 258 views

Userlevel 2
Badge +3

Hi, I would like to run Installer.cmd set action=mtinstaller on my ifs cloud remote because certificate expired (values.yaml changes with new certificate)

But mtinstall failed with error:

Fri Dec 30 10:00:18 CET 2022] - INFO: chartVersion not found in properties, using helmChartVersion: 212.3.0
[Fri Dec 30 10:00:18 CET 2022] - INFO: Using existing certificate
[Fri Dec 30 10:00:19 CET 2022] - INFO: Generating symmetric-key. This will only be persisted if the secret, 'symmetric-key' does not exist.
[Fri Dec 30 10:00:20 CET 2022] - INFO: Installing ifs-cloud
[Fri Dec 30 10:00:20 CET 2022] - INFO: Using chart ifscloud/ifs-cloud --version 212.3.0
[Fri Dec 30 10:00:20 CET 2022] - INFO: Doing a dry-run ..
[Fri Dec 30 10:00:20 CET 2022] - INFO: Running helm upgrade
[Fri Dec 30 10:00:20 CET 2022] - SEVERE: "helm upgrade" requires 2 arguments
[Fri Dec 30 10:00:20 CET 2022] - SEVERE: Failed to install ifs-cloud
[Fri Dec 30 10:00:20 CET 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.3.0
INFO: Doing a dry-run ..
INFO: Running helm upgrade
Error: "helm upgrade" requires 2 arguments

Usage:  helm upgrade [RELEASE] [CHART] [flags]
helm.go:94: [debug] "helm upgrade" requires 2 arguments

Usage:  helm upgrade [RELEASE] [CHART] [flags]
helm.sh/helm/v3/cmd/helm/require.ExactArgs.func1
        /home/circleci/helm.sh/helm/cmd/helm/require/args.go:39
github.com/spf13/cobra.(*Command).ValidateArgs
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:978
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:815
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main
        /home/circleci/helm.sh/helm/cmd/helm/helm.go:93
runtime.main
        /usr/local/go/src/runtime/proc.go:203
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1373
SEVERE: Failed to install ifs-cloud

icon

Best answer by Technical Toby 2 January 2023, 16:47

View original

4 replies

Userlevel 7
Badge +11

Hi @lsydarifi

This is directing towards an issue during helm upgrade. Seems like a missing argument issue. Can you check in the values.yaml file, if the helm upgrade arguments are in order. Or can you put the values here so that I might be able to help with that.

Regards,
Charana

Userlevel 2
Badge +3

Thank you for the answer, I found error. I just missed two dashes in command 

 

 Installer.cmd --set action=mtinstaller

should be Installer.cmd --set action=mtinstaller

Thank you for your attetnion

Userlevel 5
Badge +14

Always make sure to use the proper actions

https://docs.ifs.com/techdocs/22r2/070_remote_deploy/010_installing_fresh_system/200_installing_ifs_cloud/035_ifs_cloud_ifsinstaller/020_installer_actions/

 

and the correct way of providing the arguments. Otherwise the installer might interpret things in a wrong way.

 

Great you found it! 

Happy new year ;)

 

Userlevel 5
Badge +14

Thank you for the answer, I found error. I just missed two dashes in command 

 

 Installer.cmd --set action=mtinstaller

should be Installer.cmd --set action=mtinstaller

Thank you for your attetnion

Please do not forget to mark this as an answer for this post.

Reply