mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #7947] [Bug] Some documents are missing #3473
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#3473
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cubecup on GitHub (May 18, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7947
Originally assigned to: @khorshuheng on GitHub.
Bug Description
I recently upgraded from v0.8.x to v0.9.1 on my Windows 11 machine.
I managed to fix the issue that my original local folder wouldn't show and AppFlowy would keep creating new user folders and open those. (https://github.com/AppFlowy-IO/AppFlowy/issues/7872)
So I now generally see the data I used to see before the upgrade when I open AppFlowy.
Problem is that some documents are now missing. Restarting AppFlowy doesn't help. When I search for the pages I'm missing, I can see that the search function does indeed find them but when I click the corresponding search result, the document doesn't open up. For the documents that are indeed visible to me, if I search for those and click the result, the page does actually open up.
It seems some documents are hidden for some reason.
Update: updated from 0.9.1 to 0.9.2. When I search for the documents that I'm missing (with the neat new search function), I see they're still there along with their content. Some documents were nested under others, these "in-between" documents cannot be found anymore, e.g. in the screenshot below, I search for "ultimate" and the document "Home / Hobbies / Ultimate Frisbee" still exists and I can click it but the document "Setting up a NAS + VM / Power consumption" doesn't open up when I click it. I also remember "Setting up a NAS + VM" used to be nested under "Computer Architecture" but that document I cannot even find via the search function anymore.
I checked log files:
Within my C:\Users<user>\AppData\Roaming\io.appflowy\AppFlowy\data folder there's a file called log.2025-05-11. The most recent error message I'm pasting below.
A few lines above that it says
How to Reproduce
Not sure...
Expected Behavior
I want to see all my documents in their original structure with all their content.
Operating System
Window 11
AppFlowy Version(s)
0.9.2 (happens regardless of which version I use, even when I revert back to 0.8.x, where I didn't encounter this problem yet)
Screenshots
Additional Context
When I tried fixing the user session problem, I went back and forth between appflowy versions in hope of fixing the problem. I hope that didn't corrupt my data.
@khorshuheng commented on GitHub (May 19, 2025):
AppFlowy store the document data locally in RocksDB database, which is folder directory named
collab_db. The folder directory structure and the actual content itself are stored under different keys. If a document is found in the directory structure but not the actual document, then you will get the record not found issue.Without having the full access to the data, it is hard to tell whether the missing documents are indeed missing forever, or is present somewhere in the data directory, just that the application is not looking at the right path.
However, there might still be some other things that we can try. How does your file storage path looks like at the moment? Were you using a custom path in the past, or have you been using the default path all the while?
@cubecup commented on GitHub (May 24, 2025):
Thanks a lot for picking this up so quickly, it's very much appreciated!
I hope I understood you correctly.
I'll split my answer into two parts.
1. What the currently defined path is and what the content looks like
The File storage location is currently set to a path that was automatically created by appflowy when I installed for the first time. I guess it must be the default path then.
That path looks like this:
The collab_db folder has a bunch of log files (text documents and "File" filetypes).
The collab_db_history folder has a bunch of zipped collab_db files. This gives me hope because it looks like snapshots so if my data was indeed lost, I could maybe restore some of it?
2. Regarding whether I've been using the default path all the while
I had the same problem that was reported here https://github.com/AppFlowy-IO/AppFlowy/issues/7872. I applied your fix (thanks a lot for that!) https://github.com/AppFlowy-IO/AppFlowy/issues/7872#issuecomment-2847238877.
But before that, I
So I've definitely changed the "File storage location" setting quite a few times along the way. It should be back to the default setting now though. At least when I start appflowy and switch to local, it immediately opens the data in the correct path.
@cubecup commented on GitHub (Aug 31, 2025):
Hi! @khorshuheng Would you still be available to help? :) If the info I provided wasn't helpful, I'm willing to share my data at this point. I'd be very thankful to hear from you again!