Skip to content

Crashing with Syncthing #2155

@bhagwatgarg

Description

@bhagwatgarg

Describe the bug
While using syncthing to sync obsidian vault across devices, the quartz server crashes.

Error: ENOENT: no such file or directory, copyfile 'content/.syncthing.index.md.tmp' -> 'public/.syncthing.index.md.tmp'

    at Object.copyFile (node:internal/fs/promises:623:10)

    at copyFile (../plugins/emitters/assets.ts:24:3)

    at partialEmit (../plugins/emitters/assets.ts:43:11)

    at rebuild (../build.ts:275:24)

I have tried including patterns like **/*.tmp and *.tmp in ignorePatterns, but that doesn't seem to work.

To Reproduce
Steps to reproduce the behavior:

  1. Sync the vault with Syncthing
  2. Make changes in any of the files

Expected behavior
If a file is not found, it should be ignored or a corresponding log should be shown

Or, if the file which was not found matches one of the ignore patterns, dont throw the error

Screenshots and Source
NA

Desktop (please complete the following information):

  • Quartz Version: 4.5.2
  • node Version: 22.20.0
  • npm version: 10.9.3
  • OS: docker build on Ubuntu

Additional context
NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions