Chatterbox-TTS-Server icon indicating copy to clipboard operation
Chatterbox-TTS-Server copied to clipboard

Docker container: Error saving settings: Cannot read properties of undefined

Open jtabox opened this issue 1 year ago • 1 comments

Hi, I built and ran the Docker container via its docker-compose file and everything seems to be working fine so far, but every time I change anything in the UI, I'm getting this error message:

Error saving settings: Cannot read properties of undefined (reading 'ok'). Some changes may not persist.

https://i.imgur.com/tHFRjLG.png

Checking the container's logs in Docker, I see this:

2025-08-28 15:11:00 [INFO] server: Request received for /save_settings.
2025-08-28 15:11:00 [INFO] config: TTS processing device resolved to: cuda
2025-08-28 15:11:00 [WARNING] config: Could not create backup of config.yaml: [Errno 16] Device or resource busy: 'config.yaml'
2025-08-28 15:11:00 [INFO] config: Configuration successfully saved to config.yaml
2025-08-28 15:11:00 [INFO] config: Configuration updated, saved, and re-resolved successfully.

Not really sure why it complains, as it seems to be saving the file (it's an external file, mounted into the container).

Normally I wouldn't give it a second thought, but that banner is literally popping up with every selection I make, and they even stack...

https://i.imgur.com/m25crNu.png

So the whole thing becomes extremely disruptive and the UI becomes virtually unusable as it auto scrolls up and down as the banners appear/disappear.

I'm running the container via Docker Desktop (Windows) so I'm wondering if it's anything weird going on with the file system? It's just strange, since it does actually write the file, so I'm not sure why it complains.

I haven't edited the file manually or anything.

jtabox avatar Aug 28 '25 15:08 jtabox

Fixed in b9862f0. The config save now uses shutil.copy2 instead of shutil.move, which avoids the "Device or resource busy" error on Docker bind mounts. The backup step is also demoted from a warning to a debug log so it no longer triggers the UI error banner.

devnen avatar Mar 30 '26 13:03 devnen