cube icon indicating copy to clipboard operation
cube copied to clipboard

getting a error "database undefined does not exist" while setting multi tenancy

Open mohitPanwar1996 opened this issue 1 year ago • 4 comments

Hi everyone I am using cube cloud to do POC for our use case but i am struck at setting up the multi tenancy in cube.js file i have configured contextToAppId, contextToOrchestratorId, driverFactory, scheduledRefreshContexts and when i am trying to query the models in the playground its throwing an error database "undefined" does not exist please can anyone can guide me on this in the sql runner i am getting all the tables and data of the respective database that i am setting dynamically i am posting screenshots below.

Screenshot 2024-03-26 at 4 41 14 PM Screenshot 2024-03-26 at 4 42 12 PM Screenshot 2024-03-26 at 4 42 00 PM

mohitPanwar1996 avatar Mar 26 '24 12:03 mohitPanwar1996

Hi @mohitPanwar1996 👋

I've tried to reproduce exactly your setup on the latest Cube version (0.35.7) and it works exactly as it should, correctly picking up the databases based on the security context:

Screenshot 2024-04-04 at 16 06 15 Screenshot 2024-04-04 at 16 06 01

Could you please upgrade to the latest version and double-check?

igorlukanin avatar Apr 04 '24 14:04 igorlukanin

@mohitPanwar1996 Have you tried the latest version? Is this issue still relevant?

igorlukanin avatar May 14 '24 10:05 igorlukanin

Yes, updated to the latest cube version but it is still persistent and happening in the cube cloud only not in cube-core.

On Tue, 14 May 2024 at 16:06, Igor Lukanin @.***> wrote:

@mohitPanwar1996 https://github.com/mohitPanwar1996 Have you tried the latest version? Is this issue still relevant?

— Reply to this email directly, view it on GitHub https://github.com/cube-js/cube/issues/8000#issuecomment-2109858931, or unsubscribe https://github.com/notifications/unsubscribe-auth/BE46EIYPRJXPTQEDUQOC57LZCHSLDAVCNFSM6AAAAABFI3BWHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZHA2TQOJTGE . You are receiving this because you were mentioned.Message ID: @.***>

ghost avatar May 14 '24 10:05 ghost

Could you please email a link to your deployment in Cube Cloud to [email protected]? With your permission, I can check the logs of the deployment.

igorlukanin avatar May 14 '24 10:05 igorlukanin