AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] Unable to login from Linux App Image

Open yangcheng opened this issue 1 year ago • 20 comments

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

yangcheng avatar Feb 06 '24 01:02 yangcheng

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

tasnuva1 avatar Feb 06 '24 15:02 tasnuva1

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

renzoepolo avatar Feb 07 '24 13:02 renzoepolo

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

LucasXu0 avatar Feb 07 '24 14:02 LucasXu0

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.

IAAJL avatar Feb 19 '24 10:02 IAAJL

@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

yangcheng avatar Feb 21 '24 04:02 yangcheng

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

ankitkaran99 avatar Feb 21 '24 04:02 ankitkaran99

i am using edge

yangcheng avatar Feb 21 '24 09:02 yangcheng

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.

LucasXu0 avatar Feb 21 '24 14:02 LucasXu0

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.

IAAJL avatar Feb 27 '24 21:02 IAAJL

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

fahimaloy avatar Mar 17 '24 17:03 fahimaloy

What is the app version?

IAAJL avatar Mar 18 '24 03:03 IAAJL

@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;

justkelvin avatar Apr 04 '24 01:04 justkelvin

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;

fahimaloy avatar Apr 23 '24 10:04 fahimaloy

+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 avatar May 06 '24 07:05 mobsenpai

@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.

mobsenpai avatar May 06 '24 07:05 mobsenpai

Tengo el mismo inconveniente

porrale avatar May 23 '24 18:05 porrale

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?

LucasXu0 avatar May 24 '24 01:05 LucasXu0

@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
}
  1. Yes
  2. No
  3. Hm there is no 'Open appflowy' button and hence it doesn't redirect to the app as well.

mobsenpai avatar May 29 '24 13:05 mobsenpai

@mobsenpai Which browser did you use?

LucasXu0 avatar May 29 '24 13:05 LucasXu0

Firefox

mobsenpai avatar May 29 '24 13:05 mobsenpai