whint / messagestore-viewer-cf

https://www.integration-excellence.com/whint-messagestore-viewer-cloud-foundry/
GNU General Public License v3.0
0 stars 0 forks source link

cf deploy command does not exist #4

Open maeglin64 opened 7 months ago

maeglin64 commented 7 months ago

Hello,

I've set the target org and space and then I tried to use the command: cf deploy MessageStoreViewer_1.0.2.mtar

In return I got: 'deploy' is not a registered command. See 'cf help -a'

My CF CLI version: 7.7.9+984062b56.2024-03-07 I tried the same with V8 but I had the same issue.

What CLI version do you use?

I also tried to run command: cf push MessageStoreView -p MessageStoreViewer_1.0.2.mtar and in return I got: `Packaging files to upload... Uploading files... 1.49 KiB / 1.49 KiB [==========================================================================================] 100.00% 1s

Waiting for API to complete processing files...

Staging app and tracing logs... Downloading zero_trust_sidecar_buildpack_1_0... Downloading nodejs_buildpack... Downloading sap_java_buildpack... Downloading php_buildpack... Downloading sap_java_buildpack_jakarta_2_4... Downloaded php_buildpack Downloading sap_java_buildpack_1_90... Downloaded nodejs_buildpack Downloading sap_java_buildpack_1_87... Downloaded zero_trust_sidecar_buildpack_1_0 Downloading sap_java_buildpack_jakarta... Downloaded sap_java_buildpack_jakarta_2_4 Downloading sap_java_buildpack_1_88... Downloaded sap_java_buildpack Downloading nginx_buildpack... Downloaded sap_java_buildpack_jakarta Downloading java_buildpack... Downloaded nginx_buildpack Downloading zero_trust_sidecar_buildpack... Downloaded sap_java_buildpack_1_90 Downloading sap_java_buildpack_jakarta_2_2... Downloaded sap_java_buildpack_1_88 Downloading go_buildpack... Downloaded sap_java_buildpack_1_87 Downloading python_buildpack... Downloaded java_buildpack Downloading zero_trust_sidecar_buildpack_1_1... Downloaded go_buildpack Downloading binary_buildpack... Downloaded zero_trust_sidecar_buildpack Downloading staticfile_buildpack... Downloaded zero_trust_sidecar_buildpack_1_1 Downloaded python_buildpack Downloaded sap_java_buildpack_jakarta_2_2 Downloaded binary_buildpack Downloaded staticfile_buildpack Cell ... creating container for instance ... Security group rules were updated Cell ... successfully created container for instance ... Downloading app package... Downloaded app package (7.4M) Finalizing Java application... BuildpackCompileFailed - App staging failed in the buildpack compile phase FAILED`

maeglin64 commented 7 months ago

I was finally able to install the app. Here are my notes: 1) I had to install MTA CF CLI plugin as mentioned here (it should be mentioned in the README as the plugin is not preinstalled in CF): https://community.sap.com/t5/technology-blogs-by-sap/deploying-a-mtar-application-on-sap-cloud-platform-cloud-foundry-account/ba-p/13353957 2) During mtar installation I got following error: `#2.0#2024 04 16 14:40:34.554#Z#DEBUG#com.sap.cloud.lm.sl.xs2.14dc05e3-fbff-11ee-8061-eeee0a94d7a1.MessageStoreViewer.stageAppTask#

org.cloudfoundry.multiapps.controller.persistence.services.ProcessLogger########flowable-async-job-executor-thread-50211

[PollStageAppStatusExecution] [MessageStoreViewer] 82d37d78-d1ca-4c8f-8824-48a55be37b0f [2024-04-16T14:40:31.898432] ERROR Unable to install node: no match found for 16.X in [18.18.2 18.19.0 20.10.0 20.11.0] (STDOUT, STG)#`

I solved it by editing the mtar file. I removed engine node from package.json file.