I was seeing that same warning and couldn’t figure out if it was a Seafile config issue or something with the Docker container. Adding the missing environment variables cleared it right up for me.
You issue is likely a configuration error that the editor cannot send updates to the server (sdoc-container). You can give it a check by opening the browser’s console.
If the issue is only happen sometimes, it is likely caused by slow network.
caught Error: SocketManager init params is invalid. Place check your code to fix it.
getInstance address/media/assets/frontend/static/js/excalidrawEditor.fd636996.046536e35965.js:2
w address/media/assets/frontend/static/js/excalidrawEditor.fd636996.046536e35965.js:2
t address/media/assets/frontend/static/js/excalidrawEditor.fd636996.046536e35965.js:2
t address/media/assets/frontend/static/js/excalidrawEditor.fd636996.046536e35965.js:2
Le address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
He address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
Fr address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
Fr address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
jr address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
zr address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
uu address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
Ne address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
zr address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
Kt address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
qt address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
Gr address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
Ur address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
Yr address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
Yr address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
createRoot address/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js:2
65346 address/media/assets/frontend/static/js/excalidrawEditor.fd636996.046536e35965.js:2
c address/media/assets/frontend/static/js/runtime.097511c7.5a0b35340a0b.js:1
address/media/assets/frontend/static/js/excalidrawEditor.fd636996.046536e35965.js:2
O address/media/assets/frontend/static/js/runtime.097511c7.5a0b35340a0b.js:1
address/media/assets/frontend/static/js/excalidrawEditor.fd636996.046536e35965.js:2
t address/media/assets/frontend/static/js/runtime.097511c7.5a0b35340a0b.js:1
address/media/assets/frontend/static/js/excalidrawEditor.fd636996.046536e35965.js:2
Hi! Some findings on this. Seafile 13.0.25 CE + sdoc-server 2.0.9 on Docker, behind Traefik instead of Caddy. Config checked against the official seafile-server.yml (ce) and seadoc.yml for 13.0 — no meaningful differences. Only .exdraw is affected; sdoc and wiki work fine.
The data is actually saved. Every 42/exdraw,N["elements-updated",...] gets its 43/exdraw,N[{"success":true,"version":40xx}] back, version incrementing, and a reload confirms the changes persisted. The warning is a false negative.
The SocketManager error is a race, not a misconfiguration. Deminified, getInstance returns the existing instance if there is one and only throws when it is still null — so the throw doesn’t mean bad parameters were passed. I patched the bundle locally to log them: init succeeds with all three populated (excalidrawAPI, scene object, and {docUuid, exdrawServer, accessToken, user}). Looks like savePointer firing before the manager is constructed.
The real bug seems to be elsewhere. The banner still shows when that throw isn’t the trigger. Last log is excalidraw:state-change State changed: idle -> sending, with no transition back to idle and the header stuck at “Saving…”. Those logs come from commons.*.js, not excalidrawEditor.*.js. So: operations go out, the server acks them, but the client never leaves sending and the pending queue never drains.
Reproduces on every 13.0 tag I tried, with a single user in the room. Happy to add logging or provide WS dumps if useful.
As this has been stale I have opened a new thread here; https:// forum.seafile .com/t/seadoc-excalidraw-error/25213 , however the issue still persists. I can confirm that the data is actually saved and this is a false negative. After digging into the code a bit, the issue seems to be caused by the queue which is not correctly drained. It happens right after 200 requests have been send over the websocket which also is the limit for the warning to appear.
I yet have to find a solution. I’d be more than happy if one is found!
Yeah, that warning is a bit confusing at first. If Excalidraw is still working normally, it seems more like a compatibility/version warning than something actually broken. I’d check that the Seafile and Excalidraw versions are supported together before changing anything.
@Sabriela_Casper I have already done that.
I run Seafile 13 and I tried through every Seadoc version. This issue not only affects me, but everyone using this instance regardless of their internet speed. You could argue that something might be wrong with the setup. But I closely followed the instructions from the seafile docs. One addition I had was a cloudflare proxy, but even when it is disabled this error occurs.