AppFlowy
AppFlowy copied to clipboard
[Bug] Unable to load database on external disk (linux)
Bug Description
i have a disk monted on
/run/media/user/mydisk/Data/Docs/appflowy/AppFlowyDataDoNotRename
if i try to select this path on the setup screen it say that i've selected this path :
/run/user/1000/doc/5ab993d0/AppFlowyDataDoNotRename
and this path doesn't exist. if i try to start i have this :
OnLoad
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error(R2D2(Error(Some("Unable to open the database file"))), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', flowy-sqlite/src/kv/kv.rs:29:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
if i put the correct path on the shared_preferences.json, when i start , it's reseting the setting file and show the first setup screen asking for a path
OnLoad
Sep 25 21:03:24.866 INFO ThreadId(06) flowy_core:{"message":"🔥 AppFlowyCoreConfig { storage_path: \"/home/user/.var/app/io.appflowy.AppFlowy/data/AppFlowy/data\" }"}
{"msg":"🔥 AppFlowyCoreConfig { storage_path: \"/home/user/.var/app/io.appflowy.AppFlowy/data/AppFlowy/data\" }"}
Sep 25 21:03:24.873 ERROR ThreadId(06) dart_ffi:{"message":"Invalid argument(s): The theme light does not exist."}
{"msg":"Invalid argument(s): The theme light does not exist."}
Sep 25 21:03:24.882 INFO ThreadId(06) dart_ffi:{"message":"code: RecordNotFound\nmsg: User is not logged in\n"}
{"msg":"code: RecordNotFound\nmsg: User is not logged in\n"}
Sep 25 21:03:24.886 INFO ThreadId(06) dart_ffi:{"message":"Network type: Wifi"}
{"msg":"Network type: Wifi"}
Sep 25 21:03:24.904 INFO ThreadId(06) dart_ffi:{"message":"Network type: Wifi"}
{"msg":"Network type: Wifi"}
Expected Behavior
i have try to just copy my database on the desktop and it works so is not a corrupted database
Operating System
manjaro
AppFlowy Version(s)
0.3.2
Edit 1
i try on a manjaro vm with a mounted drive, same problem
flatpak (0.3.3)
Edit 2
it look like it is working on the compiled version so the bug it's only on the flatpak version
on compiled version (i try to install from aur appflowy-git and appflowy-bin that are actually working) exept we cannot change the path from the gui because the choose folder button d'ont show the file selector popup
for some reason it look like the flatpak and the compiled version d'ont use the same path to store settings. we have this two path for the flatpack and compiled : ~/.local/share/io_appflowy/.appflowy and ~/.var/app/io_appflowy.AppFlow/data/AppFlowy
so a workarround could be :
- install the compiled version of appflowy, if you're on arch based linux use the aur appflowy-bin (faster to install)
- open appflowy and close it
- edit manually the file shared_preference on ~/.var/app/io_appflowy.AppFlow/data/AppFlowy/ like this :
{"flutter.windowSize":"{\"height\":1001.0,\"width\":2560.0}",
"flutter.io.appflowy.appflowy_flutter.path_location":"[YOUR PATH HERE ]/AppFlowyDataDoNotRename",
"flutter.expandedViews":"{}"}
appflowy should now open on the true folder
Edit 3
probably due to this, appflowy crash sometime, it will be great to have a popup asking the path again and a reset config button