on 2021 Mar 22 6:26 PM
Tutorials: https://developers.sap.com/tutorials/appstudio-sapui5-create.html
--------------------------
Write here what you need help with Step 7: Deploy the archive to Cloud Foundry
After Right-click on the mtar
file and select Deploy and Deploy MTA Archive I 've got an Error:
Service key "sap-btp-sapui5-app-content-sap-btp-sapui5-html5-repo-host-credentials" for service "sap-btp-sapui5-html5-repo-host" already exists Uploading content module "sap-btp-sapui5-app-content" in target service "sap-btp-sapui5-html5-repo-host"... Error uploading content module "sap-btp-sapui5-app-content" in service "sap-btp-sapui5-html5-repo-host": org.cloudfoundry.multiapps.controller.persistence.services.FileStorageException: com.sap.cloud.lm.sl.xs2.content.client.ContentDeployerException: Internal server error occurred during processing of operation 'Upload File': Upload application content failed { CODE: '1001' } validation error: Error while parsing request; Error: Unknown system error -122: Unknown system error -122, open 'tempFolder/_GYHIelZBFYrE4xWoVAzNcU0.zip' Process failed.
What's wrong?
Please help.
Request clarification before answering.
Hi vladimir.ezopov,
It seems that the newest node dependencies rely on NodeJS v12, but BAS is working with v10 instead.
If you try to issue the following command inside your project's folder:
npm i
You will get an error related to keytar installation:
install libsecret-1.so.0: cannot open shared object file: No such file or directory
I've managed to install v12 and npm v7 in BAS but it is an unsupported method.
So, my suggestion is you open a support ticket with SAP so they can fix this as soon as possible.
Regarding the error you mentioned, I didn't see it with a fresh workspace - just the error I've mentioned above. Even with the error, the MTAR gets built and I am able to deploy it and run.
It could be a temporary error - so if you try again later and you still have the same error, I suggest you open a support ticket so SAP can investigate it further.
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for your answer. Really today I tried to Deploy MTA Archive and it was OK.
But next step 8 I am stuck too because when I go to URL of the deployed app https://<ID>.cpp.cfapps.eu10.hana.ondemand.com/<appID>.sap-btp-sapui52.sapbtpsapui52-1.0.0/ I got an error:
No client with requested id: sb-portal-cf-dt-approuter!t3664
Hi vladimir.ezopov,
How do you create the managed approuter, manually or via UI5 App Template?
Did you notice that the app generator now features the automatic creation of the managed approuter instance. So step 5.5 is no longer needed. My MTA has the following:
ServiceInstanceName: sap-btp-sapui5-html5-app-host-service
Instead of the MTA instruction on step 5.5 which contains:
ServiceInstanceName: sap-btp-sapui5-html5-app-host
This is not an error per se. Just check that the value for ServiceInstanceName has the same value as the parameter service-name you find under the resource sap-btp-sapui5-html5-repo-host (located at the end of the file) like so:
- name: sap-btp-sapui5-html5-repo-host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-name: sap-btp-sapui5-html5-app-host-service
service-plan: app-host
parameters:
deploy_mode: html5-repo
enable-parallel-deployments: true
Build the MTA again and just to make sure you have the latest version deployed, erase all the service instances that this deploy has created before. When you delete the destination and html5 repository instances it will unregister your application at the managed approuter. I believe that since your MTA file had this typo, it id not finding the repository and thus was not able to register the application instance in the managed approuter. After you fix the MTA, rebuild it, delete the instances and redeploy it should work.
Best regards,
Ivan
User | Count |
---|---|
58 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.