AppFlowy-IO / AppFlowy

Bring projects, wikis, and teams together with AI. AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data. The best open source alternative to Notion.
https://www.appflowy.io
GNU Affero General Public License v3.0
50.32k stars 3.33k forks source link

[Bug] Unable to login from Linux App Image #4610

Open yangcheng opened 5 months ago

yangcheng commented 5 months ago

Bug Description

Download AppFlowy-0.4.6-linux-x86_64.AppImage , make it executable and run.

Click on "Login with Github" / "Login with Google" /"Login with Discord"

It displayed a "fail" in UI, and console will show the error trace

🐧 x11:~% ./Downloads/AppFlowy-0.4.6-linux-x86_64.AppImage 
Gtk-Message: 09:44:13.255: Failed to load module "colorreload-gtk-module"
Gtk-Message: 09:44:13.278: Failed to load module "window-decorations-gtk-module"
  2024-02-06 09:44:17  INFO  🔥AppFlowy Configuration { app_version: "0.4.6", storage_path: "/home/cheng/.local/share/AppFlowy/data_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk", application_path: "/home/cheng/.local/share/AppFlowy/data", base_url: "https://beta.appflowy.cloud", ws_url: "wss://beta.appflowy.cloud/ws", gotrue_url: "https://beta.appflowy.cloud/gotrue" }                                                          
    at flowy-core/src/lib.rs:92

  2024-02-06T01:44:17.633692Z  INFO flowy_core: 🔥AppFlowy Configuration { app_version: "0.4.6", storage_path: "/home/cheng/.local/share/AppFlowy/data_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk", application_path: "/home/cheng/.local/share/AppFlowy/data", base_url: "https://beta.appflowy.cloud", ws_url: "wss://beta.appflowy.cloud/ws", gotrue_url: "https://beta.appflowy.cloud/gotrue" }                                       
    at flowy-core/src/lib.rs:92

  2024-02-06 09:44:21 ERROR  error: code:Internal msg: calling https://beta.appflowy.cloud/gotrue/settings failed
    at /home/runner/.cargo/git/checkouts/appflowy-cloud-875aed6322f3953d/d23ad1c/libs/client-api/src/http.rs:263

  2024-02-06T01:44:21.053766Z ERROR client_api::http: error: code:Internal msg: calling https://beta.appflowy.cloud/gotrue/settings failed
    at /home/runner/.cargo/git/checkouts/appflowy-cloud-875aed6322f3953d/d23ad1c/libs/client-api/src/http.rs:263

  2024-02-06 09:44:21 ERROR  error: Internal: calling https://beta.appflowy.cloud/gotrue/settings failed
    at flowy-user/src/event_handler.rs:310

  2024-02-06T01:44:21.053807Z ERROR flowy_user::event_handler: error: Internal: calling https://beta.appflowy.cloud/gotrue/settings failed
    at flowy-user/src/event_handler.rs:310

  2024-02-06 09:44:21 ERROR  msg: calling https://beta.appflowy.cloud/gotrue/settings failed

    at dart-ffi/src/lib.rs:179

  2024-02-06T01:44:21.054217Z ERROR dart_ffi: msg: calling https://beta.appflowy.cloud/gotrue/settings failed

    at dart-ffi/src/lib.rs:179

  2024-02-06 09:44:29  INFO  cloud setting: authenticator: AuthenticatorType.appflowyCloud
appflowy: {base_url: https://beta.appflowy.cloud, ws_base_url: wss://beta.appflowy.cloud/ws, gotrue_url: https://beta.appflowy.cloud/gotrue}
supabase: {url: , anon_key: })                                                                                                              

    at dart-ffi/src/lib.rs:175

  2024-02-06T01:44:29.612160Z  INFO dart_ffi: cloud setting: authenticator: AuthenticatorType.appflowyCloud
appflowy: {base_url: https://beta.appflowy.cloud, ws_base_url: wss://beta.appflowy.cloud/ws, gotrue_url: https://beta.appflowy.cloud/gotrue}
supabase: {url: , anon_key: })                                                                                                              

    at dart-ffi/src/lib.rs:175

  2024-02-06 09:44:29 ERROR  Close db failed: FlowyError { code: RecordNotFound, msg: "User is not logged in", payload: [] }
    at flowy-user/src/user_manager/manager.rs:105

  2024-02-06T01:44:29.652581Z ERROR flowy_user::user_manager::manager: Close db failed: FlowyError { code: RecordNotFound, msg: "User is not logged in", payload: [] }                                                                                                                  
    at flowy-user/src/user_manager/manager.rs:105

  2024-02-06 09:44:29  INFO  🔥AppFlowy Configuration { app_version: "0.4.6", storage_path: "/home/cheng/.local/share/AppFlowy/data_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk", application_path: "/home/cheng/.local/share/AppFlowy/data", base_url: "https://beta.appflowy.cloud", ws_url: "wss://beta.appflowy.cloud/ws", gotrue_url: "https://beta.appflowy.cloud/gotrue" }                                                          
    at flowy-core/src/lib.rs:92
    in init

  2024-02-06T01:44:29.659960Z  INFO flowy_core: 🔥AppFlowy Configuration { app_version: "0.4.6", storage_path: "/home/cheng/.local/share/AppFlowy/data_aHR0cHM6Ly9iZXRhLmFwcGZsb3d5LmNsb3Vk", application_path: "/home/cheng/.local/share/AppFlowy/data", base_url: "https://beta.appflowy.cloud", ws_url: "wss://beta.appflowy.cloud/ws", gotrue_url: "https://beta.appflowy.cloud/gotrue" }                                       
    at flowy-core/src/lib.rs:92
    in flowy_core::init

How to Reproduce

screenshot-20240206-094720 Download app image and click on login buttons

Expected Behavior

launch external brower for login, OR show a embed webview for login

Operating System

Ubuntu 22.04,

AppFlowy Version(s)

AppFlowy-0.4.6-linux-x86_64.AppImage

Screenshots

No response

Additional Context

uname - a Linux x11 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

tasnuva1 commented 5 months ago

Yes, I have that issue too. You have to log in as anonymous.

renzoepolo commented 4 months ago

Same problem. A message appears in the window

GDK_GL=gres

. image

Operating System Ubuntu 22.04

AppFlowy Version(s) installed from Snap Store AppFlowy 0.4.3

LucasXu0 commented 4 months ago

@yangcheng the cloud server was down yesterday. do you have the same issue today?

IAAJL commented 4 months ago

Yes I too have this issue. The snap store redirect does not take place. In the aur syore version, i am able to redirect but still face login issues.

yangcheng commented 4 months ago

@LucasXu0 hi, I just back from break. It seems better now, login with google/login with github both opens my browser, but the redict did not work after I click continue. The app stuck in waiting state. screenshot-20240221-121929

ankitkaran99 commented 4 months ago

I am having same problem in Firefox, Chrome is working fine. Firefox is not opening custom protocol.

yangcheng commented 4 months ago

i am using edge

LucasXu0 commented 4 months ago

I guess it's related to the browser protocol. I'm using Chrome, and it works fine. I will try downloading Firefox and Edge to investigate this issue further.

IAAJL commented 4 months ago

Just tried the latest update from aur. Now i was able to login from firefox. Snap update is still at 0.4.3. Will check once updated.

fahimaloy commented 3 months ago

I am still facing the issue, I can only login with an "Anonymous Session" But can't login using any other options like Google/Discord/Github image

I tried using:

  1. AppImage
  2. Installed .deb file
  3. Installed From Snap Store
  4. Installed from flatpak
  5. Updating all the browsers
  6. Changed Default Browser

All of them have the exact same issue (I have been trying this entire week but didnt find any solution)

Flatpak Logs image

Here is my system Details image

IAAJL commented 3 months ago

What is the app version?

justkelvin commented 3 months ago

@yangcheng This is what I added and liked to the app location. The mimetype helps recognize the app.

cat /usr/share/applications/appflowy.desktop

[Desktop Entry] Name=AppFlowy Icon=app_flowy.svg Exec=/home/justkelvin/AppFlowy/AppFlowy Terminal=false Type=Application MimeType=x-scheme-handler/appflowy-flutter;

fahimaloy commented 2 months ago

What is the app version?

@IAAJL brother, image

& @justkelvin brother, I'll try that today to see if that works or not

@yangcheng This is what I added and liked to the app location. The mimetype helps recognize the app.

cat /usr/share/applications/appflowy.desktop

[Desktop Entry] Name=AppFlowy Icon=app_flowy.svg Exec=/home/justkelvin/AppFlowy/AppFlowy Terminal=false Type=Application MimeType=x-scheme-handler/appflowy-flutter;

mobsenpai commented 2 months ago

+1 for this. Also happens in nixos both stable and unstable branch. Nixos basically downloades appimage and installs it on the system, so this is really a concern I have for a while. I thought the new update will fix this, but this issue has been opened for 3 months now.

mobsenpai commented 2 months ago

@yangcheng This is what I added and liked to the app location. The mimetype helps recognize the app.

cat /usr/share/applications/appflowy.desktop

[Desktop Entry] Name=AppFlowy Icon=app_flowy.svg Exec=/home/justkelvin/AppFlowy/AppFlowy Terminal=false Type=Application MimeType=x-scheme-handler/appflowy-flutter;

This does solve the issue of the websites not redirecting to the app, but It just gets stuck on loop past that. I can't login even after doing this lol.

porrale commented 1 month ago

Tengo el mismo inconveniente

LucasXu0 commented 1 month ago

Hi there, I need some clarifications regarding the following questions:

  1. Can you access this URL: https://beta.appflowy.cloud/gotrue/settings? (Try to copy the link and open it in the browser)
  2. After clicking the login button, does the AppFlowy app successfully launch the browser?
  3. If step 2 is successful, can you see an "Open AppFlowy" button in the browser?
  4. If step 3 is successful, after clicking the "Open AppFlowy" button, does the browser redirect you to the AppFlowy app?
mobsenpai commented 1 month ago

@LucasXu0

  1. Yes I can access it. Copy of raw data ->

    {
    "external": {
    "apple": false,
    "azure": false,
    "bitbucket": false,
    "discord": true,
    "facebook": false,
    "figma": false,
    "fly": false,
    "github": true,
    "gitlab": false,
    "google": true,
    "keycloak": false,
    "kakao": false,
    "linkedin": false,
    "linkedin_oidc": false,
    "notion": false,
    "spotify": false,
    "slack": false,
    "workos": false,
    "twitch": false,
    "twitter": false,
    "email": true,
    "phone": false,
    "zoom": false
    },
    "disable_signup": false,
    "mailer_autoconfirm": false,
    "phone_autoconfirm": false,
    "sms_provider": "",
    "mfa_enabled": false,
    "saml_enabled": false
    }
  2. Yes

  3. No

  4. Hm there is no 'Open appflowy' button and hence it doesn't redirect to the app as well.

LucasXu0 commented 1 month ago

@mobsenpai Which browser did you use?

mobsenpai commented 1 month ago

Firefox