dbeaver / cloudbeaver

Cloud Database Manager
https://dbeaver.com/
Apache License 2.0
3.5k stars 379 forks source link

Multiple tab #2875

Open Gildraen opened 2 months ago

Gildraen commented 2 months ago

Hi,

I'm working on a small task, but I'm running into an issue, and I'm not sure if it's a limitation or if I'm missing something.

I have two different projects, each using Docker, and both include their own instances of Dockerized CloudBeaver. I start both projects and their respective CloudBeaver instances with different host ports (8973 and 8972). Although the projects are on the same network, the CloudBeaver instances are not on the same network.

The problem is that when I connect to one CloudBeaver instance in my browser, the other one disconnects, and vice versa.

Is there a way to run two Dockerized CloudBeaver instances simultaneously and access both from the same browser?

EvgeniaBzzz commented 2 months ago

Hi @Gildraen Do you use the same workspace for both instances? Could you, please, provide us with logs for the instance with disconnection?

Gildraen commented 2 months ago

Hi @EvgeniaBzzz Workspace are totally separate, each project has is own config, and all cloudbeaver files I'll try to gather some log.. Here, i log in one instance, without problem, go on another, then come back to one, and i have :

io.cloudbeaver.DBWebExceptionAccessDenied: Anonymous access restricted

If i try to logout, i have : not logged in

And i can have this one too : io.cloudbeaver.DBWebException: Connection 'postgres-jdbc-18bdd8d5ff3-6222dcae1bec8374' not found at io.cloudbeaver.model.session.WebSession.getWebConnectionInfo(WebSession.java:579) So i have to refresh the page, login again, and it works, but my second instance won't work anymore, witht the same errors

EvgeniaBzzz commented 2 months ago

Looks like session cookies are overwritten when you run the second instance. We will think about a solution.

As a workaround, please, try to open different instances in diffrent browsers. Or add domains to host file, like: cloudbeaver1 - 127.0.0.1 cloudbeaver2 - 127.0.0.1 and open CB with domain name.

Gildraen commented 1 month ago

Using multiple browser worked I did not try with multiple domain naim, but i will tell you when i do !