Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.19.5 desktop version ​cannot view existing workspaces with self-hosted instance, cannot create workspaces #9581

Closed
1 task done
ATPs opened this issue Jan 8, 2025 · 13 comments

Comments

@ATPs
Copy link

ATPs commented Jan 8, 2025

What happened?

I am running self-hosted instance in version 0.18.5. I used nginx to change the

server {
    listen 80;
    server_name affine.xxx.xxx;

    location / {
        proxy_pass         http://127.0.0.1:3010;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
        }
    }

the web version works good.

I can log in the self-hosted server with desktop client 0.19.5, but cannot view the existing workspaces.

if I try to create new workspaces, I get error message saying "Failed to create workspace".

If I click the "Create" button multiple times, it goes back to the sign in page.

Do I also need to upgrade the backend selfhosted server to 0.19.5? I remember that I tried 0.19.2, but get similar outcome.

Anyone succesfully connected to the selfhosted version?

Distribution version

Windows x64

What browsers are you seeing the problem on if you're using web version?

No response

Are you self-hosting?

  • Yes

Relevant log output

No response

Anything else?

No response

@ATPs ATPs changed the title ​cannot view existing workspaces with self-hosted instance, cannot create workspaces 0.19.5 desktop version ​cannot view existing workspaces with self-hosted instance, cannot create workspaces Jan 8, 2025
@Abdoulaye-Sayouti
Copy link

Me I'm unable to connect Affine Client to my self hosted Affine. I hosted it using docker behind a traefik server in order to use https. I have access to the self hosted Affine 0.19.3 through the web browser using https://localhost:8443/. But using it as Server URL in the Affine client to connect to the self hosted server gives me the "Unable to connect to the server." error.
How did you connect the client to the server ?
image

@ATPs
Copy link
Author

ATPs commented Jan 8, 2025

I have a domain name, and use nginx to point to the server. I used cloudflare to change http to https. IP ip address directly will not work.

@Abdoulaye-Sayouti
Copy link

I see. I tried to create a local domain name setup by adding 127.0.0.1 affine.local in /etc/hosts. But still not working. I don't know if the Affine server must be hosted online

image

@ATPs
Copy link
Author

ATPs commented Jan 8, 2025

I used a url like https://affine.abc.site and it works.

@Abdoulaye-Sayouti
Copy link

Thanks, it's working now. I used nginx and Cloudflare as you did.

@EYHN
Copy link
Member

EYHN commented Jan 9, 2025

@Abdoulaye-Sayouti I think this is because the https on your localhost url and cannot pass the certificate.

@ATPs
Copy link
Author

ATPs commented Jan 9, 2025

Thanks, it's working now. I used nginx and Cloudflare as you did.

can you create and view existing workspace normally?

@Abdoulaye-Sayouti
Copy link

Abdoulaye-Sayouti commented Jan 9, 2025

Thanks, it's working now. I used nginx and Cloudflare as you did.

can you create and view existing workspace normally?

Yes everything is working perfectly. It took me some time but finally got it working. I can view and edit my existing workspace that I had locally.

@Abdoulaye-Sayouti
Copy link

@Abdoulaye-Sayouti I think this is because the https on your localhost url and cannot pass the certificate.

I see, I will try to do it again locally another time to see if I can get it working without using external resources like cloudflare.

@ATPs
Copy link
Author

ATPs commented Jan 9, 2025

Thanks, it's working now. I used nginx and Cloudflare as you did.

can you create and view existing workspace normally?

Yes everything is working perfectly. It took me some time but finally got it working. I can view and edit my existing workspace that I had locally.

that's great... Not sure why it is not working in my case. Do you use the lastest in the server side? also 0.19.5?

@Abdoulaye-Sayouti
Copy link

I tried an Affine client both on Mac and Linux and I can connect to the sever. Yes I'm using the 0.19.5 both on client ans server side.

@Abdoulaye-Sayouti
Copy link

Maybe If I got some time I will try to write a short tutorial on how to do the full process. From deploying the self hosted Affine server and connect it to an Affine client.

@ATPs
Copy link
Author

ATPs commented Jan 16, 2025

I guess i need to do more test. I will test later with the 0.20 official release~

@ATPs ATPs closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants