Hi,
my multitenant CAP app throws the following error when I try to access any entity:
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR [cds] - { Error: There is no instance for tenant "e2ae0180-1b7e-417f-8396-1aeb82d88b8a"
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR at im.get (/home/vcap/app/node_modules/@sap/cds-runtime/lib/hana/pool.js:59:31)
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR at /home/vcap/app/node_modules/@sap/instance-manager/lib/service-manager/Backend.js:159:16
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR at /home/vcap/app/node_modules/@sap/instance-manager/lib/service-manager/Client.js:89:14
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR at /home/vcap/app/node_modules/@sap/instance-manager/lib/service-manager/Resource.js:147:14
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR at /home/vcap/app/node_modules/@sap/instance-manager/lib/service-manager/Resource.js:130:5
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR at Request._callback (/home/vcap/app/node_modules/@sap/instance-manager/lib/service-manager/Resource.js:172:7)
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR at Request.self.callback (/home/vcap/app/node_modules/@sap/instance-manager/node_modules/request/request.js:185:22)
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR at Request.emit (events.js:198:13)
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR at Request.<anonymous> (/home/vcap/app/node_modules/@sap/instance-manager/node_modules/request/request.js:1154:10)
2021-04-16T11:55:25.73+0200 [APP/PROC/WEB/0] ERR at Request.emit (events.js:198:13) id: '1727836', level: 'ERROR', timestamp: 1618566925732 }
e2ae0180-1b7e-417f-8396-1aeb82d88b8a is my consumer tenant, and I from the onboardings process logs, the hana container was created and db objects were deployed succesfully. I can also connect to the new DB container and all the tables were created succesfully.
I already checked Simon Gaudek's question CAP Multitenancy - Access to data in handlers, but the error is quite different and doesn't solve my issue.
Any help or suggestions will be appreciated.
Best regards,
Marc