Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text editor loses connection regularly #187

Closed
JordanDIG opened this issue Feb 23, 2022 · 3 comments
Closed

Text editor loses connection regularly #187

JordanDIG opened this issue Feb 23, 2022 · 3 comments

Comments

@JordanDIG
Copy link

Nextcloud version: 23.0.2
Operating system and version: Raspbian

I am using Apache2
PHP version: 8.0

The issue you are facing: If I edit markdown documents via the embedded web texteditor, it loses regularly the sync:

file could not be loaded. Please check your internet connection (retry)

This occurs right after a few minutes and I guess a tip faster if you are on a edit.
This error occurs on different internet connections.

Steps to replicate it:

Open Files app on your cloud webinterface
Click a textfile to edit
Start writing to the opened file and wait till the above poppup message appears
Click rety and note, that nothing will reload. So reload the whole page

@OccultWarlock
Copy link

I have this same issue running on my Asustor NAS

@kousu
Copy link

kousu commented Jan 28, 2023

I am seeing this too but I'm not sure what the cause is. I've put what debugging I've done so far in https://help.nextcloud.com/t/text-editor-loses-connection-regularly/96787/5.

EDIT: the cause, for me, was this cron entry I added to support renewing my letsencrypt certs:

*/5 * * * * systemctl restart nginx

🤦

But I think there is still room for improvement here: richdocuments (the Collabora editor for .ods,.odt,.docx,.xlsx, etc) doesn't suffer from this. It gives errors in the Javascript console while nginx is restarting but only for a few seconds; after, it reconnects and functions fine. No one on my site ever noticed there was a problem.

But this app shows this prompt

492fc2a82e7791a6ed898b7b96949ca66fa3a70e

and stops working until the user intervenes. It's not the end of the world, especially now that I know the cause and I've throttled way back on how eager I was to reset nginx, but it could be better.

Could you keep the "Offline, changes will be saved when online" text, but drop the button; instead, just show a loading spinner that retries and retries (perhaps with exponential backoff) until it reconnects?

@dbolton
Copy link

dbolton commented Feb 1, 2024

Likely fixed by nextcloud/text#5126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants