Description
Steps to reproduce
- Open a note in nextcloud notes
- Enable rich text editor
Expected behaviour
Note is opened
Actual behaviour
Nothing happens and there is an exception in browser console:
[ERROR] text: Conflict during file save, please resolve {app: 'text', uid: 'MyUsername', level: 2}
Bug is sporadic, happens only with 1 note, others are loading successfully. This note also loaded successfully some time ago, and I'm not sure when exactly problem started.
Server
Please complete the following information.
- Notes app version: 4.7.2
- Nextcloud version: Nextcloud Hub 4 (26.0.0)
- OS: Linux 5.15.0-67-generic x86_64
- Web server: Apache in Docker
- PHP version: 8.1.17
- Database: mysql 10.5.18
Nextcloud configuration:
Client
Please complete the following information.
- Browser (incl. version): Vivaldi 5.7.2921.65 (Stable channel) (x86_64)
- OS: macOS 13.2.1
Log files
Add relevant parts of your nextcloud.log
and/or your browser's JavaScript console here.
Browser log:
POST https://my-domain.com/apps/text/session/sync 409
ConsoleLogger.js:59 [ERROR] text: Conflict during file save, please resolve {app: 'text', uid: 'MyUsername', level: 2}
Nextcloud log:
The only corresponding entry is: (log entry appeared several hours before this bug happened)
OC\DB\Exceptions\DbalException: An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '2313-MyUsername' for key 'notes_meta_file_user_index'