Skip to content

Error writing JSON!! (Main JSON file save was skipped) #3259

@jiangzhenjerry

Description

@jiangzhenjerry

Describe the bug
Whenever the program tries to save url-watches.json, it will fail and throw out an error message. url-watches.json will not be saved; instead, url-watches.json.tmp is created.

Sample LOG:

2025-06-11 19:53:07.958 | INFO     | changedetectionio.store:sync_to_json:398 - Saving JSON..
2025-06-11 19:53:08.022 | ERROR    | changedetectionio.store:sync_to_json:418 - Error writing JSON!! (Main JSON file save was skipped) : [WinError 32] The process cannot access the file because it is being used by another process: 'datastore/url-watches.json.tmp' -> 'datastore/url-watches.json'

Version
0.50.3

How did you install?
pip install changedetection.io

To Reproduce

Steps to reproduce the behavior:

  1. Run changedection
  2. Wait until it tries to auto-save JSON.

Expected behavior
url-watches.json should be updated.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Any browser

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions