mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #8130] [Bug] Can't connect to sync changes - Self Hosted #3582
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#3582
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 @casainho on GitHub (Jul 22, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8130
Originally assigned to: @appflowy on GitHub.
Bug Description
I am on selfhosting and using latest 0.9.64 AppFlowy-Cloud. I can access and write notes on the web version, but on PC Linux version (latest version 0.9.5) or Windows 11, I always get error Can't connect to sync changes as seen on the following images. I already tested on another Linux PC, but I got the same results.
How to Reproduce
Install AppFlowy 0.9.5 on Linux or Windows 11
Expected Behavior
Should be able to sync.
Operating System
Linux Ubuntu 25.04 or Windows 11
AppFlowy Version(s)
0.9.5
Screenshots
No response
Additional Context
No response
@appflowy commented on GitHub (Jul 23, 2025):
Hi @casainho , When you see this network indicator, it means you cannot connect to the AppFlowy server using WebSocket, which is required for real-time collaborative editing. May I ask where you’re accessing AppFlowy from? There might be a network block causing this issue.
@casainho commented on GitHub (Jul 23, 2025):
Thanks!! I am hosting on a Linux PC and using Nginx Proxy Manager (NPM). Everything were working before, I think the only change were or with the PC app or on the AppFlowy-Cloud.
My relevant configurations about WebSocket on NPM:
And on advanced tab:
@appflowy commented on GitHub (Jul 25, 2025):
@casainho Have you try restart appflowy? If yes,did it work?
@khy010802 commented on GitHub (Jul 25, 2025):
Same issue here, I updated my Appflowy desktop version to 0.9.5, and update my server to 0.9.64. (Using Windows 10 + Docker)
I tried restart & reinstall desktop app and server, but didn't work for me.
I downgraded my appflowy desktop to 0.9.4, and it works fine.
@appflowy commented on GitHub (Jul 26, 2025):
@khy010802 Version 0.9.4 does not support displaying the network indicator. I can build a test package for you to verify whether the issue still exists.
@casainho commented on GitHub (Jul 26, 2025):
Yes, It took me sometime to understand that previously, on 0.9.4, I was having this issue. I guess that on 0.9.5 you guys added that bar to make clear if notes are on sync or not.
I restarted the server and did everything I could imagine, but I still have the issue, which is a pain and I am avoiding using the PC and mobile only the web version -- but it is far from ideal!!
@appflowy let me know if there is anything I can do to test any change. Thanks!!!
@annieappflowy commented on GitHub (Jul 28, 2025):
@casainho , is your VPN tunnel based?
@PaganMuffin commented on GitHub (Jul 28, 2025):
I have identical issue with websockets.
Appflowy Cloud 0.9.64 with external nginx
After hitting
wss://sub.domain.tld/ws/v2/...it's returning 404 without any logs in appflowy_cloud containerHere is snippet from nginx config (based on nginx conf
Snippet from log sync (it's repeated many time)
And screenshot with containers for appflowy cloud for port config

@casainho commented on GitHub (Jul 28, 2025):
Can this be related to something about gRPC Backend? at least ChatGPT pointed that to me.... it says Nginx does not support gRPC backend.
@casainho commented on GitHub (Jul 28, 2025):
No, I have no VPN. I am only using Nginx Proxy Manager and AppFlowy worked previously with it, as expected.
@casainho commented on GitHub (Jul 29, 2025):
I am geting this repeated from the GoTrue container:
@casainho commented on GitHub (Jul 30, 2025):
@appflowy Nathan, @annieappflowy Annie, can you please give a look? any quick workaround we can do on the code to solve this temporaly? I am available to test and debug. Thank you!!
@appflowy commented on GitHub (Jul 30, 2025):
The token may get revoked at some point, but we will start refreshing the token in the background, so it should be fine. Could you send me the latest log.sync.xxxx-xx-xx log file? Alternatively, you can paste more of the error message here.
@casainho commented on GitHub (Jul 30, 2025):
Here my logs: appflowy_logs.zip
@appflowy commented on GitHub (Jul 30, 2025):
@casainho Thanks. I saw lots of
Unauthorized websocket connectionerror. Did you try logout and then login?@PaganMuffin commented on GitHub (Jul 30, 2025):
Here is the whole log. From version 0.9.4 since 0.9.5 is unusable due to constantly refreshing.
log.sync.2025-07-30-14.txt
Backend was upgraded from 0.8.13 to 0.9.64 (updated after switching to branch 0.9.64 on git) and some data is missing (web and app are showing different data in board) in boards and calendar view is bugging app (infinity loading on every page). Changes done on web version aren't syncing at all on app and vice versa.
Left is web, right is app
@casainho commented on GitHub (Jul 30, 2025):
I think Unauthorized websocket connection happens because the app is constantly switching between disconnected to connecting.
I also tried to logout and clear the cache and appflowy files, and after login, the data is clearly synched with the server data, but just like in an initial time, maybe at the very first login. If I close and open the app, there is no update at all, and app is constantly switching between disconnected to connecting.
@appflowy commented on GitHub (Jul 30, 2025):
It looks like the same error—UserUnAuthorized. We use a WebSocket to pull data, which is why you always see a loading state.
@casainho commented on GitHub (Jul 30, 2025):
Can this issue be related to the #8004 ?
@PaganMuffin commented on GitHub (Jul 30, 2025):
When checking NGINX logs its show logs like this one when searching by
/ws/v2I tried reinstalling app few time, deleting
com.appflowy.appflowy.flutteron MacOS but it never connecting correctly@khorshuheng commented on GitHub (Jul 31, 2025):
@PaganMuffin This might be caused by an older version of AppFlowy Cloud being used. For upgrading, switching git branch is not enough - did you also do a docker compose pull to get the latest docker image version for Appflowy cloud, or manually update the image tag?
@PaganMuffin commented on GitHub (Jul 31, 2025):
At first I tried without pulling, but on Discord it was suggested to me, to do docker compose pull. I did it, but didn't worked.
Later I tried using specific version but it didn't worked too
GOTRUE_VERSION=0.9.64 APPFLOWY_CLOUD_VERSION=0.9.64 APPFLOWY_ADMIN_FRONTEND_VERSION=0.9.64 APPFLOWY_WORKER_VERSION=0.9.64Here is docker compose I used to run it and command
@PaganMuffin commented on GitHub (Aug 1, 2025):
After updating containers few time, restoring nginx configuration it started working and there is no more bar informing about reconnecting.
But...
Calendar is still putting app into unusable state and there are differences between web and app like I showed earlier.
@casainho commented on GitHub (Aug 8, 2025):
It is working now!! But I don't understand what was the issue.
How I did it: got the code from github, checked out the tag 0.9.64 and docker compose up -d. The appflowy worked on localhost. Then I added the codes for google oauth and I could login on localhost. Then I changed to my public host address and it worked as expected, and finally I changed the paths to the folders with the data, like the postgresql -- finally I had everything worked as before. Meanwhile, the Appflowy app had a new version where in the change log says improved sync.
So, just to clarify, I kept the original docker-compose.yml file and .env file. I just changed the passwords, keys and nginx ports. I didn't removed the nginx from the docker-compose.yml and I am also using nginx NPM, so, nignx is running twice... but it is working!!!
So I am closing this issue and sharing the information about what I did to get it working.
My nginx NPM configurations:
@Gobral commented on GitHub (Sep 18, 2025):
Using:
docker compose pullafter checking out to newest tag solved this nginx error for me:
"GET /ws/v2/.... HTTP/1.1" 404 0 "-" "-"