Whiteboard on NC 30 (Hub 9) not saving

I’m having difficulty getting whiteboard to work properly. The whiteboard application opens okay, but when I close a board I’ve worked on, the file is not saved.

I believe this is also affecting my server’s ability to allow collaborative editing. Any suggestions?

I have here on two different Nextcloud servers (30.0.1) the same problem. Looks like there are more affected …?

Just a quick question: You guys did install the Whiteboard backend server and then configure it accordingly under Administration Settings → Whiteboard, right?

https://github.com/nextcloud/whiteboard#backend

1 Like

Yes, the server is installed and is also connected in the administration settings. When it is connected I can see the little circle in the right upper corner with the initial letter of the user name.

I’m getting good behavior most of the time, but occasionally it will get into a state of not saving data for a session. Also, sometimes it seems to spontaneously lose edits. Sometimes it will lose edits, but then recover them once something is added to the board. (Sounds like maybe an exception happens and re-applies a change buffer to an older version of the board.)

P.S. I’ve also seen it clear out all existing data when I try ctrl-Z to undo. I think this happens when I open the board, add an object, then ctrl-Z.
P.P.S. I’m also wondering if leaving the browser window inactive will eventually timeout the connection. I have had someone report that when returning to the window the board is gone and the file list is showing. Also, that person said he saw the message “unable to connect to the whiteboard server”. I observed my “docker ps” whiteboard process says it’s been up for 15 minutes … which I had not restarted in days.

There also seems to be a 404 error when clicking on old versions of the files.

It’d be nice if progress would save periodically, so at least not as much would be lost if problems occur.

If docker thinks it hasn’t been running very long, then I’m assuming the whole whiteboard server crashed. Is that a Node problem? Or might it be an application problem? Wondering if changing the version of Node would help.

Maybe you can see something in the logs…

docker logs -t --follow <CONTAINER ID>

or if you have assigned a name:

docker logs -t --follow <NAME>

Thanks for the commands. I’m not all that familiar with docker yet.

I do see where the server has restarted at various times. It seems generally that it thinks someone has joined just before the restart. There’s not a whole lot of things in the log that look particularly explanatory about the problems we’ve seen.

I’ve also been noticing that in one of the drawings someone was using a few images (five or six it would seem). One of the images seemed to go missing when I was editing. I’m learning that the images seem to be related to the “files” reported. I think there aren’t enough files reported when one goes missing. I also notice that some file identifiers (random strings) are single-quoted and some are not. If I add an image that goes missing later (after I re-open), then adding the image again will make it appear in the empty locations as well.

I’m having the same issue described above. Collaborative editing works fine and then randomly the whiteboard will disappear. Or you close it and when reopened it will be in the state of an hour ago. I also get the 404 errors when trying to load previous versions.

1 Like

Lost a bunch of work today. Gutted! Shouldn’t have trusted that this was stable without testing it extensively beforehand. Unfortunately just got straight in the zone.

Exactly the same thing happened to me, and I’ll tell you how it happened in case anyone wants to avoid it:

  1. I opened a new file and started working on it for 2 hours.
  2. I had to leave, so I closed the laptop and left.
  3. When I went back and looked at the file, I hadn’t updated anything from my last job.

As I read on forums, I had to manually close the application to save it, and it is related to some performance problem, I prefer a little slower than this big problem.

1 Like

I suggest following this discussion thread:

https://github.com/nextcloud/whiteboard/issues/238

For now, I propose restarting the web server every 15 minutes to trigger an “automatic” save in collaborative mode. It’s not an ideal solution, but it works for the time being while we wait for a proper save policy to be implemented.

I am experiencing a recurring issue with the whiteboard where images disappear seemingly at random. The logs show the following when this happens:

[1076683] Syncing room data  
[1076683] No data provided or existing, fetching from server...  
[1076683] files: []  

This seems to occur during session save events. I suspect it might be related to the way whiteboard handles synchronization or storage.

One thing to note is that I am intentionally restarting the whiteboard web server periodically to force the session to save to Nextcloud. While this is a workaround until an official autosave policy is implemented, it may also be contributing to this issue.

Has anyone encountered similar problems or have suggestions for improving stability or preventing data loss in this setup?

Possible Database Issue Preventing Image Files from Saving in Whiteboard

Hello,

I’m encountering an issue with image files not being saved correctly in the Whiteboard app on my Nextcloud instance. After reviewing the logs, I found the following error related to a “dirty table read”:

markdown
Copier le code
dirty table reads: SELECT fileidFROMPREFIXfilecache WHERE (storage = :dcValue1) AND (path_hash = :dcValue2)
This error suggests that a database query failed due to a “dirty table read,” which may indicate that the database was accessed in an inconsistent state. This could be caused by issues related to locking or data synchronization, especially when dealing with files in the Whiteboard app.

Given that this issue appears to be tied to file handling and the database state, I suspect that it could be the reason why image files are not being saved properly in the Whiteboard app.

Has anyone else experienced similar issues or found a solution for this kind of problem? I would appreciate any insights or advice on how to resolve this, especially regarding database consistency or potential locking issues.

Thanks in advance!