Luligu / matterbridge

Matterbridge plugin manager for Matter
https://github.com/Luligu/matterbridge/blob/main/README.md
Apache License 2.0
207 stars 24 forks source link

matterbridge.json 0 length #148

Open kskenyon opened 6 days ago

kskenyon commented 6 days ago

Matterbridge will run for a day then it will fail. My .matterbridge/matterbridge.json file is zero bytes. If I replace it with matterbridge.backup.json it runs OK for a while then fails again.

What would cause the configuration file matterbridge.json to be zero length?

RaspberryPi with docker. Running docker-compose.

services: matterbridge: container_name: matterbridge image: luligu/matterbridge:latest # Matterbridge image with the latest tag network_mode: host # Ensures the Matter mdns works restart: always # Ensures the container always restarts automatically volumes:

Luligu commented 5 days ago

Hi, I can imagine is an hardware issue with your SD card. If you want more help keep the debug log on file for matterbridge enabled and when it happens again send me the log. The matterbridge.json file is the matter storage and should not be written so many times after the initial commissioning. If is zero could mean that the process has crashed or has been killed while it was writing. Any other useful information about your setup ? Is your raspberry up to date with all packages ?

My best.

kskenyon commented 5 days ago

Running from an external SSD drive. Works good.

Where do I find the log if the UI is down?

Seems like something weird is happening with the docker setup. Something is overwriting the matterbridge.json file with an empty file. Is it trying to reinitialize on some frequency but not coordinated with a running container?

Kevin

On Oct 6, 2024, at 11:31 AM, Luligu @.***> wrote:

Hi, I can imagine is an hardware issue with your SD card. If you want more help keep the debug log on file for matterbridge enabled and when it happens again send me the log. The matterbridge.json file is the matter storage and should not be written so many times after the initial commissioning. Any other useful information about your setup ? My best

— Reply to this email directly, view it on GitHub https://github.com/Luligu/matterbridge/issues/148#issuecomment-2395480135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4WTTFM3QUJPXUEDNIVFVDZ2FJWVAVCNFSM6AAAAABPNPO5YSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGQ4DAMJTGU. You are receiving this because you authored the thread.

Luligu commented 4 days ago

The log is in .matterbridge/matterbridge.log and matter.log.

kskenyon commented 4 days ago

It did it again overnight. Here is the log. Don’t see anything interesting. I also have to re-pair matterbridge to the Home app or it just shows No Response for this plugin. Only running the demo dynamic plugin on this installation. I have another more complex installation at my other house. Can’t check that right now.

 Kevin

On Oct 7, 2024, at 5:20 AM, Luligu @.***> wrote:

The log is in .matterbridge/matterbridge.log and matter.log.

— Reply to this email directly, view it on GitHub https://github.com/Luligu/matterbridge/issues/148#issuecomment-2396381073, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4WTTH7BP4NDRU37T6PRGTZ2JG7RAVCNFSM6AAAAABPNPO5YSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJWGM4DCMBXGM. You are receiving this because you authored the thread.

Luligu commented 2 days ago

Hi, sorry but I cannot see the log...

kskenyon commented 2 days ago

On Oct 9, 2024, at 1:01 PM, Luligu @.***> wrote:

Hi, sorry but I cannot see the log...

— Reply to this email directly, view it on GitHub https://github.com/Luligu/matterbridge/issues/148#issuecomment-2402848671, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4WTTG6QAK4Z5EYXEOTDYLZ2VOOLAVCNFSM6AAAAABPNPO5YSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBSHA2DQNRXGE. You are receiving this because you authored the thread.