Closed Someone0nEarth closed 7 months ago
Some more additional infos:
Rooms, scenes and files are stored in the mongo:
And using "rooms" only, files working as aspected, until a scene with this file is created.. than files wont load for rooms and scenes. In the file-exports, the linked "fileId" is correct and still present in the db. Even the file itself is identical, besides "files" is empty:
"files": {}`
Hello again,
I did a little more digging into it. My knowledge of Javascript frameworks etc are limited... but maybe these are the reasons, why files are not working with "http storage" as soon they are is in scenes:
As I said, my knowledge of JS etc. is limited, so, sadly, I won't be able to proof or fix this in a affordable time.
But maybe, this was helping ...
@Someone0nEarth I'm unable to even export the link, not sure whats wrong with my config, heres the error message:
@Someone0nEarth I'm unable to even export the link, not sure whats wrong with my config, heres the error message:
Hey @farapholch I would bet, changing the backend GET and POST URL pathes too /api/v2/scenes/
will fix your issues.
@Someone0nEarth thank you so much! :) Its now working.
@alswl Thank you for the great changes.
I made some changes that I believe can solve this issue and have submitted a PR. Please check it out.
Init storageBackend before use it by woremacx · Pull Request #30 · alswl/excalidraw
@alswl Thank you for the great changes.
I made some changes that I believe can solve this issue and have submitted a PR. Please check it out.
Init storageBackend before use it by woremacx · Pull Request #30 · alswl/excalidraw
Thanks @woremacx !! That fixed it! Now the images are working!!
@alswl Please pull woremacx fix :D
@woremacx Cool, I'w review this changes and release a new version.
Now the new version is released, and the demo site( https://excalidraw-production-4d27.up.railway.app/) is upgraded. You can check out the new image.
Thanks a lot to @Someone0nEarth and @woremacx .
Thanks @alswl for great hack, and @Someone0nEarth for docker-compose files.
First things first: Thanks for your work!!
I got the collaboration mode to work, but there are some anomalies when dealing with images:
Images working fine in the collaboration mode:
Until someone did a save using "Export to Link". When using the link, only a placeholder for the image will be shown:
When using the room-share link after doing the "Export to Link" the images wont be shown too.
When doing a "Save to disk", the images are referenced in "elements", but the "files" are empty.
Ways to reproduce:
1) Export to Link
2) Export to Link after starting a Live Collaboration
3) Export to Link before starting a Live Collaboration
Summary
As soon as a "Export to link" was done, images will be shown only as a placeholder. Beside the one special case in 3), when a collaboration session was`t started, it will work until the next "Export to link" for the collaboration mode.
Btw: When restarting all the services, images will still be shown when using the collaboration link (until the drawing was "exported to link"). So there is some kind of working image persistence.
I'm using
alswl/excalidraw:v0.17.0-fork-b2
,alswl/excalidraw-storage-backend:v2023.11.11
andexcalidraw/excalidraw-room:sha-49bf529
. But same behavior when usingexcalidraw/excalidraw-room
.I tried this with redis, postgres and mongodb.