SAP-samples / btp-cap-multitenant-saas

Sample project that demonstrates how to setup a multitenant application for a Software-as-a-Service scenario, leveraging the Kyma and Cloud Foundry Runtimes of the SAP Business Technology Platform. Developers learn how to implement their own CAP (mtxs) based SaaS app including an SaaS API and integration with various essential SAP BTP service of...
Apache License 2.0
93 stars 43 forks source link

Subscription failed: “Please contact the owner of application/service vendortracker with appName: vendortracker -myOrg. It failed its asynchronous callback and responded with message: Tenant creation failed.“ #42

Closed SyedBabaTajuddinHussaini closed 5 months ago

SyedBabaTajuddinHussaini commented 5 months ago

1 2 3

Looking forward to receiving assistance from the experts.

Regards, Syed

alperdedeoglu commented 5 months ago

Can you share the response from network?

SyedBabaTajuddinHussaini commented 5 months ago

image

SyedBabaTajuddinHussaini commented 5 months ago

{ "name": "vendortracker-myOrg", "title": "vendortracker", "description": "Vendor Tracker Application by Taj", "shortDescription": "Vendor Tracker Application by Taj", "type": "APPLICATION", "license": "FREE", "state": "SUBSCRIBE_FAILED", "isAccountLicensed": true, "url": "", "applicationId": "vendortracker-myOrg!t0012", "applicationCoordinates": { "serviceCategories": [ { "name": "Category" } ] }, "createdDate": "1718200944323", "modifiedDate": "1718200948161", "stateDetails": { "message": "Please contact the owner of application/service vendortracker with appName: vendortracker-myOrg. It failed its asynchronous callback and responded with message: Tenant creation failed." }, "authenticationProvider": "XSUAA", "supportsParametersUpdates": false, "supportsPlanUpdates": false },

alperdedeoglu commented 5 months ago

Do you see any logs on the susaas-srv application after subscription? Is request reaching to the application?

SyedBabaTajuddinHussaini commented 5 months ago

@alperdedeoglu,

Thank you for your quick response.

my susaas-srv applciation log is empty image

SyedBabaTajuddinHussaini commented 5 months ago

susaas-mtx > logs: image

alperdedeoglu commented 5 months ago

Do you have a separate application for mtx?

SyedBabaTajuddinHussaini commented 5 months ago

Yes, I have separate application for mtx. Screenshot from application provider subaccount: image

alperdedeoglu commented 5 months ago

I see, you are trying to develop a multitenant application but your question is actually not really related with our repository. But I will try to help you as much as I can.

I would first unsubscribe and undeploy from everything. Update the cds-dk to the latest.

To create a new project from scratch execute the commands below:

cds init vendor-tracker --add nodejs,mta,mtx,hana,tiny-sample
cd vendor-tracker
npm install
mbt build
cf deploy mta_archives/*

And after deployment, please try a new subscription.

Hint: Keep your saas-registry app name variable as simple as you can, no capital letters or weird characters for a smooth experience. this might cause issues later on approuter XSUAA integration.

SyedBabaTajuddinHussaini commented 5 months ago

Thank you so much. I will try to follow the steps as you have mentioned above.