CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.85k stars 701 forks source link

Systemd tmp file cleanup messes with CODE #3115

Closed jooola closed 3 months ago

jooola commented 3 years ago

Describe the bug

When systemd run a scheduled tmpfile cleanup, the document being edited will hang in the browser, and possibly loose content. It returns back to normal after some time.

To Reproduce Steps to reproduce the behavior:

  1. Run CODE from apt repository on Debian (possibly other)
  2. Start editing a document
  3. Manually trigger the systemd tempfile cleanup unit
  4. See errors/logs

Expected behavior

It should not hang and be properly handled.

Actual behavior

It hangs/breaks.

Additional context

Systemd logs:

Aug 21 13:47:04 cloud-code-auk systemd[1]: Starting Cleanup of Temporary Directories...
Aug 21 13:47:04 cloud-code-auk systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
Aug 21 13:47:04 cloud-code-auk systemd[1]: Started Cleanup of Temporary Directories.

Aug 21 13:49:04 cloud-code-auk loolwsd[429]: wsd-00429-01234 2021-08-21 11:49:04.860914 [ docbroker_006 ] WRN  link("/tmp/convert-to/tmp429aaaaaa/callbackwrapper:", "/opt/lool/child-roots/gk6Ctieq7u1J061q/tmp/user/docs/gk6Ctieq7u1J061q/callbackwrapper:") failed. Will copy. Linking error: EXDEV Invalid cross-device link| wsd/Storage.cpp:350
Aug 21 13:49:04 cloud-code-auk loolwsd[429]: wsd-00429-01235 2021-08-21 11:49:04.901071 [ docbroker_007 ] WRN  link("/tmp/convert-to/tmp429baaaaa/callbackwrapper:", "/opt/lool/child-roots/aAvQ2iyX3Y91d81B/tmp/user/docs/aAvQ2iyX3Y91d81B/callbackwrapper:") failed. Will copy. Linking error: EXDEV Invalid cross-device link| wsd/Storage.cpp:350
Aug 21 13:49:05 cloud-code-auk loolwsd[429]: wsd-00429-01259 2021-08-21 11:49:05.027044 [ docbroker_008 ] WRN  link("/tmp/convert-to/tmp429caaaaa/callbackwrapper:", "/opt/lool/child-roots/FecYV49OW1s3r6lg/tmp/user/docs/FecYV49OW1s3r6lg/callbackwrapper:") failed. Will copy. Linking error: EXDEV Invalid cross-device link| wsd/Storage.cpp:350
Darshan-upadhyay1110 commented 3 months ago

hii @jooola hope you have the newer version of Collabora online and it's working well. This issue is too old so for now i am closing this discussion.

Please feel free to reopen the thread if you encounter the same issue.

Thanks !