Fresh desktop install cannot connect to any servers #1921

Closed
opened 2026-03-22 13:46:22 -05:00 by GiteaMirror · 17 comments
Owner

Originally created by @codevski on GitHub (Feb 27, 2024).

Description

So I have a docker selfhosted instance which works fine in the browser but when I try to setup desktop app I cannot seem to get it to connect. I have also tried connecting to official (saw someone say to test it regarding another issue someone was having and I still cannot connect.

Vikunja Version

"v0.23.0"

Browser and version

Desktop: Both Flatpak and AUR bin 0.23.0-1

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

image

Originally created by @codevski on GitHub (Feb 27, 2024). ### Description So I have a docker selfhosted instance which works fine in the browser but when I try to setup desktop app I cannot seem to get it to connect. I have also tried connecting to official (saw someone say to test it regarding another issue someone was having and I still cannot connect. ### Vikunja Version "v0.23.0" ### Browser and version Desktop: Both Flatpak and AUR bin 0.23.0-1 ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots ![image](https://github.com/go-vikunja/vikunja/assets/1435321/b5d252cf-eb46-4e9e-a8d2-2833cd00edf8)
Author
Owner

@kolaente commented on GitHub (Feb 27, 2024):

Can you check what the API response is when you set the url? (CTRL+Shift+I and then "network")

@kolaente commented on GitHub (Feb 27, 2024): Can you check what the API response is when you set the url? (CTRL+Shift+I and then "network")
Author
Owner

@Protarios commented on GitHub (Mar 1, 2024):

Here a Screenshot from my desktop app. I experience the same issue.
(Replaced the domain name with ---- after the request of couse)

It worked perfect until the update where backend and frontend were moved into one docker container.
Frontend works well in Firefox aswell as android app.

Screenshot_20240301_090152

@Protarios commented on GitHub (Mar 1, 2024): Here a Screenshot from my desktop app. I experience the same issue. (Replaced the domain name with ---- after the request of couse) It worked perfect until the update where backend and frontend were moved into one docker container. Frontend works well in Firefox aswell as android app. ![Screenshot_20240301_090152](https://github.com/go-vikunja/vikunja/assets/11992477/da1defa4-ac94-4cdb-9454-f1d9ead1b398)
Author
Owner

@kolaente commented on GitHub (Mar 1, 2024):

Did you enable cors?

@kolaente commented on GitHub (Mar 1, 2024): Did you enable [cors](https://vikunja.io/docs/config-options/#cors)?
Author
Owner

@Protarios commented on GitHub (Mar 1, 2024):

Let me check. It stopped working, when I updated from the seperate frontend/backend containers to the new integrated one.

@Protarios commented on GitHub (Mar 1, 2024): Let me check. It stopped working, when I updated from the seperate frontend/backend containers to the new integrated one.
Author
Owner

@kolaente commented on GitHub (Mar 1, 2024):

As mentioned in the release notes, the cors settings were changed in that release.

@kolaente commented on GitHub (Mar 1, 2024): As mentioned in the [release notes](https://vikunja.io/blog/2024/02/whats-new-in-vikunja-0.23.0/#configuration-changes), the cors settings were changed in that release.
Author
Owner

@Protarios commented on GitHub (Mar 1, 2024):

I am playing around with cors and port settings a bit, maybe the issue lies there.

This is the exact step in the code where it stops.
Screenshot_20240301_091144

@Protarios commented on GitHub (Mar 1, 2024): I am playing around with cors and port settings a bit, maybe the issue lies there. This is the exact step in the code where it stops. ![Screenshot_20240301_091144](https://github.com/go-vikunja/vikunja/assets/11992477/197ceec7-ef2e-4cb9-af73-49c7530f0ab3)
Author
Owner

@kolaente commented on GitHub (Mar 1, 2024):

The network error from the screenshot you sent before said "CORS Error". That's a pretty strong indication that you didn't enable CORS. Does it work if you enable it?

@kolaente commented on GitHub (Mar 1, 2024): The network error from the screenshot you sent before said "CORS Error". That's a pretty strong indication that you didn't enable CORS. Does it work if you enable it?
Author
Owner

@Protarios commented on GitHub (Mar 1, 2024):

No, but I think the issue may lie within reverse proxy and ports settings.
Only strange that Vikunja App connects without any issue.

@Protarios commented on GitHub (Mar 1, 2024): No, but I think the issue may lie within reverse proxy and ports settings. Only strange that Vikunja App connects without any issue.
Author
Owner

@kolaente commented on GitHub (Mar 1, 2024):

In the dev tools, what's the value of the access-control-allow-origin header in the response of the request to /info?

@kolaente commented on GitHub (Mar 1, 2024): In the dev tools, what's the value of the `access-control-allow-origin` header in the response of the request to `/info`?
Author
Owner

@Protarios commented on GitHub (Mar 1, 2024):

Uploading Screenshot_20240301_102834.png…

@Protarios commented on GitHub (Mar 1, 2024): ![Uploading Screenshot_20240301_102834.png…]()
Author
Owner

@cerealconyogurt commented on GitHub (Mar 3, 2024):

Hey! I have the same issue. I have a self-hosted instance running and working fine in the browser but when I try to setup desktop app I cannot seem to get it to connect. I tried my instance and the official one with both having same access problem.

image

@cerealconyogurt commented on GitHub (Mar 3, 2024): Hey! I have the same issue. I have a self-hosted instance running and working fine in the browser but when I try to setup desktop app I cannot seem to get it to connect. I tried my instance and the official one with both having same access problem. ![image](https://github.com/go-vikunja/vikunja/assets/49502224/c6f6b3b5-8111-4a7c-806b-c73fb7cebfe3)
Author
Owner

@kolaente commented on GitHub (Mar 3, 2024):

@cerealconyogurt What do you see in the dev tools? (ctrl + shift + I)

@kolaente commented on GitHub (Mar 3, 2024): @cerealconyogurt What do you see in the dev tools? (ctrl + shift + I)
Author
Owner

@brunotenisi commented on GitHub (Mar 20, 2024):

I have the same issue. I have a self-hosted instance running and working fine in the browser and in the android app, but when I try to setup desktop app I cannot seem to get it to connect. I tried my instance (flatpak and .RPM) and the official one with both having same access problem.
In the dev tools, there is this error message:
Pasted image

I tried to create the file in the server folder where the Vinkunja container is installed, but I was unsuccessful in activating this cors.

cors:
enable: true
origins:
- "*"

I put it this way, as suggested in the documentation, am I doing something wrong?

@brunotenisi commented on GitHub (Mar 20, 2024): I have the same issue. I have a self-hosted instance running and working fine in the browser and in the android app, but when I try to setup desktop app I cannot seem to get it to connect. I tried my instance (flatpak and .RPM) and the official one with both having same access problem. In the dev tools, there is this error message: ![Pasted image](https://github.com/go-vikunja/vikunja/assets/48738321/5d8afc05-0be3-4d04-9f5f-b20d7aa92e72) I tried to create the file in the server folder where the Vinkunja container is installed, but I was unsuccessful in activating this cors. cors: enable: true origins: - "*" I put it this way, as suggested in the documentation, am I doing something wrong?
Author
Owner

@brunotenisi commented on GitHub (Mar 21, 2024):

I tried to move the config.yml to /etc/vikunja in the server, but without success

@brunotenisi commented on GitHub (Mar 21, 2024): I tried to move the config.yml to /etc/vikunja in the server, but without success
Author
Owner

@kolaente commented on GitHub (Mar 28, 2024):

@brunotenisi Does it work if you set VIKUNJA_CORS_ENABLE? The default value for origins is *.

@kolaente commented on GitHub (Mar 28, 2024): @brunotenisi Does it work if you set `VIKUNJA_CORS_ENABLE`? The default value for origins is `*`.
Author
Owner

@brunotenisi commented on GitHub (Apr 2, 2024):

@brunotenisi Does it work if you set VIKUNJA_CORS_ENABLE? The default value for origins is *.

Hello @kolaente, thank you for reply. I found the answer in a post in the vikunja community, here.

The fix was to add VIKUNJA_CORS_ENABLE: true to the docker compose environment.

After this, had to take the dockers down, and put them up again.

@brunotenisi commented on GitHub (Apr 2, 2024): > @brunotenisi Does it work if you set `VIKUNJA_CORS_ENABLE`? The default value for origins is `*`. Hello @kolaente, thank you for reply. I found the answer in a post in the vikunja community, [here](https://community.vikunja.io/t/vikunja-desktop-not-working-since-upgrade-to-vikunja-vikunja/2048). The fix was to add VIKUNJA_CORS_ENABLE: true to the docker compose environment. After this, had to take the dockers down, and put them up again.
Author
Owner

@codevski commented on GitHub (Jul 18, 2024):

@brunotenisi Does it work if you set VIKUNJA_CORS_ENABLE? The default value for origins is *.

Hello @kolaente, thank you for reply. I found the answer in a post in the vikunja community, here.

The fix was to add VIKUNJA_CORS_ENABLE: true to the docker compose environment.

After this, had to take the dockers down, and put them up again.

Tried this out and can confirm this works. Thanks for the update!

@codevski commented on GitHub (Jul 18, 2024): > > @brunotenisi Does it work if you set `VIKUNJA_CORS_ENABLE`? The default value for origins is `*`. > > Hello @kolaente, thank you for reply. I found the answer in a post in the vikunja community, [here](https://community.vikunja.io/t/vikunja-desktop-not-working-since-upgrade-to-vikunja-vikunja/2048). > > The fix was to add VIKUNJA_CORS_ENABLE: true to the docker compose environment. > > After this, had to take the dockers down, and put them up again. Tried this out and can confirm this works. Thanks for the update!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#1921