SAP-samples / hana-shine-xsa

SAP HANA Interactive Education for SAP HANA Extended Application Services, Advanced Model (SHINE for XS Advanced) is an education content to learn, develop, and deploy SAP HANA XS Advanced Model application and is a successor of SHINE for XS Classic.
Apache License 2.0
115 stars 111 forks source link

Deploy fails "shine-user-container" #11

Closed draschke closed 7 years ago

draschke commented 7 years ago

Hi Stephen, thanks for the hint with ui5, it solved my issue.

But now I'm struggeling with: Could not validate services: Service "DIRASCHK_shine-user-container" Can't deploy it.

I was doing this in my mta: parameters: service-name: DIRASCHK_shine-user-container config: schema: DIRASCHK_SHINE_USER_SCHEMA

Uploading 1 files: T:\com.sap.refapps.shine_1.3.4.mtar File upload finished

Starting process xs2-deploy... Starting monitoring... Validating parameters... Processing MTA archive... Processing MTA extension descriptors... Detecting MTA major schema version... MTA schema version: 3.1.0 Detecting deploy target... Detected deploy target "orgname DEV" Validating and merging descriptors... Detecting deployed MTA... No deployed MTA detected Collecting system parameters... New MTA version: 1.3.4 Building cloud deployment model... Building cloud undeployment model... Validating services to create... Could not validate services: Service "DIRASCHK_shine-user-container" already ex ists, but is bound to application(s), not detected as part of the mta - standalo ne apps : DIRASCHK-x66zgfr1xbao18pb-hana-shine-xsa-user-js, DIRASCHK-x66zgfr1xba o18pb-hana-shine-xsa-user-java Service "DIRASCHK_shine-user-container" already exists, but is bound to applica tion(s), not detected as part of the mta - standalone apps : DIRASCHK-x66zgfr1xb ao18pb-hana-shine-xsa-user-js, DIRASCHK-x66zgfr1xbao18pb-hana-shine-xsa-user-jav a ERR Could not validate services: Service "DIRASCHK_shine-user-container" alre ady exists, but is bound to application(s), not detected as part of the mta - st andalone apps : DIRASCHK-x66zgfr1xbao18pb-hana-shine-xsa-user-js, DIRASCHK-x66zg fr1xbao18pb-hana-shine-xsa-user-java Service "DIRASCHK_shine-user-container" already exists, but is bound to applicat ion(s), not detected as part of the mta - standalone apps : DIRASCHK-x66zgfr1xba o18pb-hana-shine-xsa-user-js, DIRASCHK-x66zgfr1xbao18pb-hana-shine-xsa-user-java

CHERIANS commented 7 years ago

Hi, Looks like you have another app which is bound to service DIRASCHK_shine-user-container. May be the one which was created when you were trying with SHINE in Web IDE. You can do one of the below options

  1. Delete all the service created when you were trying SHINE in Web IDE or
  2. Try deploying SHINE mtar in another space which was not used when you were trying SHINE in Web IDE Best regards Stephen
draschke commented 7 years ago

Got the same issue. _Could not validate services: Service "DIRASCHKshine-user-container" already ex ists, but is bound to application(s), not detected as part of the mta - standalo ne apps : DIRASCHK-x66zgfr1xbao18pb-hana-shine-xsa-user-js, DIRASCHK-x66zgfr1xba o18pb-hana-shine-xsa-user-java

Maybe the name is wrong...? my mta: parameters: service-name: DIRASCHK_shine-user-container config: schema: DIRASCHK_SHINE_USER_SCHEMA

draschke commented 7 years ago

hI Cherians, I don't understand the error message. If I check the console, than I see only one bound js app to the container!? DIRASCHK_shine-user-container hana hdi-shared di-builder, DIRASCHK-x66zgfr1xbao18pb-hana-shine-xsa-user-js

CHERIANS commented 7 years ago

Hi, This app DIRASCHK-x66zgfr1xbao18pb-hana-shine-xsa-user-js seems to be deployed when you did a build and deployment of the SHINE user-js module via Web IDE. As far i understand now you have built the mtar via web ide and trying to deploy the mtar via XSA CLI (xs deploy shine.mtar) Now deploy service is also trying to create the same service ('DIRASCHK_shine-user-container') and sees an unrecognized app 'DIRASCHK-x66zgfr1xbao18pb-hana-shine-xsa-user-js' (which is not a part of mta) its throwing that error. Can you unbind the service 'DIRASCHK_shine-user-container' from all the bound apps. The easiest way to do it is to deploy mtar into another space which you were not using with Web IDE

Best regards Stephen

draschke commented 7 years ago

Hi Stephen, thanks for this nice explanation. Yes, I was doing what you mentioned and come over it. But now I'm struggling with a new issue: The starting of the "site-web" is crashing. But this is what I was keen to see running. site-web_log.txt Please could you check for it. Thanks!

CHERIANS commented 7 years ago

Hi, Thanks for update. What is the xsa version in your system ( run command xs version from XSA CLI). Also have you changed the versions of file @sap/site-entry in package.json from the current version 1.9.6 Best Regards Stephen

draschke commented 7 years ago

v1.0.55

No its "@sap/site-entry": "1.9.6" for the shine content

I also recognized the same behavior by the prototype, if I follow this video: https://www.youtube.com/watch?v=dCbggO5EZQc&feature=youtu.be This is the version of the prototype "@sap/site-entry": "^1.9.1"

draschke commented 7 years ago

Hi Stephen, could solve this problem after an update to XSACPORTALSERV01_1-80002098.ZIP. Now, everything is installed and running. :) Thanks!

CHERIANS commented 7 years ago

Great you could figure out the issue. Thanks for the update Best regards Stephen