surrealdb / surrealist

Surrealist is the ultimate way to visually manage your SurrealDB database
https://surrealist.app/
MIT License
1.06k stars 81 forks source link

Can't connect to remote database after upgrading to v2.0 #197

Closed mimib00 closed 4 months ago

mimib00 commented 4 months ago

Describe the bug I just installed v2.0 on M1 2021 MacBook Pro and for some reason, I can't connect to my remote database. before it was working just fine but now it's not working

To Reproduce Steps to reproduce the behavior: Just click connect and an error "Connection failed" appears.

Expected behavior it should connect to my remote database

Environment: M1 2021 MacBook Pro

laldevfr commented 4 months ago

Hi, same issue as you. I have a surrealdb running in a DigitalOcean droplet : SurrealDB command-line interface and server 1.3.1 for linux on x86_64 and with Surrealist V2.0 (M1 2021 Macbook air) i can't connect to it (To noticed with http endpoint signin it's work fine).

To noticed, i just read this on github readme :

image
laldevfr commented 4 months ago

To noticed, i config https on my remote server and after it's work fine.

macjuul commented 4 months ago

Were you using the web app or the desktop app to make connections?

laldevfr commented 4 months ago

for me it's the desktop app.

Micnubinub commented 4 months ago

Same on MacOS, desktop app, 1.4.2 Anyone have any pointers on a config that works for putting surreal behind nginx? this seems to not be working

image
laldevfr commented 4 months ago

it's work me with : /etc/nginx/proxy_params

proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

And location :

location /  {
          proxy_pass http://0.0.0.0:8000;
          include proxy_params;        
  }

For now i didn't use a subpath like /db because it's not working for me.

mimib00 commented 4 months ago

@macjuul I'm using the

Were you using the web app or the desktop app to make connections?

I'm using Desktop app and connecting to this database was working fine on older versions but when I installed this v2.0 it stopped working

macjuul commented 4 months ago

Could you check if the logging console contains any errors?

Instructions on how to open can be found here

Micnubinub commented 4 months ago

Ah, it looks like surreal is removing the /db, so what should be domain.com/db/version & domain.com/db/rpc becomes domain.com/version domain.com/version & domain.com/rpc

mimib00 commented 4 months ago

include proxy_params;

This is the screenshot of the errors I got. Screenshot 2024-04-24 at 9 02 34 PM

ReziaBanks commented 4 months ago

Currently facing the same issue Screenshot 2024-04-24 at 5 45 47 PM

laldevfr commented 4 months ago

@ReziaBanks can you try to replace your ip by your_domain.com ?

mimib00 commented 4 months ago

I was able to fix it by just reconfiguring my Nginx file