-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
"Someone else is editing" errors when no-one else is editing #8969
Comments
I can review the client code to make sure that all post save requests are queued properly so that we aren't submitting old |
Any progress on this? I usually have this happening when I have multiple editors open (but with different articles). The timing varies from almost immediately to after an hour of writing. |
Not yet, we were unable to reproduce, but thanks for the advice. We will look into this as soon as possible. |
@dkbast I am unable to reproduce 😔 |
I can report a similar case: UPDATE: Can you post a way to disable the warning? I can't get on editing the article... Restarting the server/ Updating it/ Stopping and Starting it... nothing works |
@stefanovazzocell Sorry to hear that and thanks for sharing. Are you on the latest Ghost version? |
I'm using the latest version (the problem started with 1.9.* and continued when I updated). It seems to be fixed now, but I cannot confirm until I post another entry... |
Even with delayed server responses and multiple requests to update a post, i am not able to reproduce. The server + client can handle such edge cases. I am not sure what else to test here. If any of you can provide steps to reproduce, that would be very helpful! Thanks 👍 |
refs TryGhost#8969 - we would like to figure out how often people get the error and with which context
refs #8969 - we would like to figure out how often people get the error and with which context
I've added a subtask on top.
|
Added verified reproduction steps for local testing to the original issue. I've spent too long today trying to get an automated test for this but I keep running into issues with the runloop and our API mock service not running concurrent saves so I'll just PR the necessary fixes. |
…editing closes TryGhost/Ghost#8969 Collision detection errors were appearing incorrectly because the save routines in the post settings menu bypass the sequential saves in the main editor controller and so are prone to having stale data if a previous save is still in progress. - added a new `savePost` task that is part of the `saveTasks` group so that all post saves are sequential - pass the `savePost` task to the `{{gh-post-settings-menu}}` component - use `savePost` task in `gh-post-settings-menu` instead of calling `save()` directly on the model instance
…editing (#901) closes TryGhost/Ghost#8969 Collision detection errors were appearing incorrectly because the save routines in the post settings menu bypass the sequential saves in the main editor controller and so are prone to having stale data if a previous save is still in progress. - added a new `savePost` task that is part of the `saveTasks` group so that all post saves are sequential - pass the `savePost` task to the `{{gh-post-settings-menu}}` component - use `savePost` task in `gh-post-settings-menu` instead of calling `save()` directly on the model instance
🤞 the false positive collision detections are all resolved with TryGhost/Admin#901 (released with Ghost 1.16.2) - if we still see issues on Ghost(pro) or others are still experiencing it we can re-open |
Hi, I'm currently using Ghost 1.19.0 and have just started being plagued by this warning. I've not seen it before, I have been using Ghost for about 7 months now. But in the last week or so I'm now getting it whenever I am writing. The only way I can cure it is to restart the browser. There doesn't seem to be any rhyme or reason to it that I can tell. Which I know is not a lot of use in terms of diagnosis. I will continue trying to find some common step for reproduction and if I do I will post them here. |
@chrissainty Thanks, that would be super helpful!
@kevinansfield any further ideas? |
It's difficult to diagnose without seeing the full network history and/or error logs from web inspector (which are only available if you keep web inspector open whilst writing). The most likely scenario for the error to occur is when there is network trouble. If one background save hits the server but the response doesn't reach the browser then you will get the error continually until you exit the editor by going to a different screen (and abandoning the post when you get the "unsaved changes" popup) or refreshing the browser. |
I had this problem, so i debugged the error server logs, I found that |
👍 Any sort of caching for the |
This issue should be re-opened! I just had the same problem today. I was editing a blog post in the Ghost desktop app (v 1.7.0) on macOS 10.13.6, and my Wifi connection dropped out several times. Eventually when saving the desktop app reported The Ghost server is the latest version (2.2.3). The only way I worked around this, was to open the Ghost web admin page, and copy and paste my changes to the article, save the article on the web editor. Close the web editor. Close the Ghost desktop app, then reopen the Ghost desktop app, and resume editing in the desktop app. |
Unfortunately this is one of the known cases that we can't handle at the moment. We'll be opening other issues later that deal with more advanced diffing and comparisons to help with the dropped connection situations.
You didn't need to do quite that many steps. Recovery should be as follows:
If something was preventing you from doing that then there's a different issue somewhere. |
Hi folks, |
Just had this and I'm on Ghost 4.48 |
Issue Summary
We've had a number of reports where "Saving failed! Someone else is editing this post." errors are shown when it's not possible that anyone else was editing the post.
So far we have no reliable reproduction case although it does appear to occur more frequently on remotely hosted instances than local development instances.
My best guess at how this could happen:
Cmd-S
, an autosave, or editing a PSM field)updated_at
fieldupdated_at
value triggering the collision warningThe above scenario is much more likely to happen on systems that have occasional slow responses.
Reproduction steps
I've been able to use these steps to reproduce locally after tracing a production error and examining the logs for collision errors:
This is happening because the save routines in the post settings menu bypass the sequential saves in the main editor controller and so are prone to triggering the "best guess" scenario mentioned above.
TODO
save
task because the current task has additional publishing workflow requirements that the PSM inputs skipsaveTasks
group so that all save requests are queued to prevent collision errorsThe text was updated successfully, but these errors were encountered: