toniebox-reverse-engineering / teddycloud

teddyCloud is an open source server replacement for the Boxine Cloud
https://toniebox-reverse-engineering.github.io/docs/tools/teddycloud/
GNU General Public License v2.0
396 stars 31 forks source link

TEddycloud Docker Image exits after some days of being up and running #93

Closed mptr8956 closed 3 weeks ago

mptr8956 commented 8 months ago

Exits with the following error, after a restart, it works again!

INFO |server.c:0583:server_init| Exiting TeddyCloud with returncode -3

==9==ERROR: LeakSanitizer: detected memory leaks Direct leak of 72773 byte(s) in 4644 object(s) allocated from:

0 0x55683c1f5627 in strdup (/usr/local/bin/teddycloud+0x5a3627)

#1 0x55683c346c58 in tonies_readJson src/toniesJson.c:124

Direct leak of 17550 byte(s) in 4644 object(s) allocated from:

0 0x55683c1f5627 in strdup (/usr/local/bin/teddycloud+0x5a3627)

#1 0x55683c346c9b in tonies_readJson src/toniesJson.c:126

Direct leak of 4932 byte(s) in 14 object(s) allocated from:

0 0x55683c24e4e7 in malloc (/usr/local/bin/teddycloud+0x5fc4e7)

#1 0x55683c31acb9 in custom_asprintf src/server_helpers.c:39

Direct leak of 576 byte(s) in 24 object(s) allocated from:

0 0x55683c24e4e7 in malloc (/usr/local/bin/teddycloud+0x5fc4e7)

#1 0x55683c3066b6 in mqtt_topic_str src/mqtt.c:86

Direct leak of 162 byte(s) in 12 object(s) allocated from:

0 0x55683c24e4e7 in malloc (/usr/local/bin/teddycloud+0x5fc4e7)

#1 0x55683c30652e in mqtt_settingname_clean src/mqtt.c:58

SUMMARY: AddressSanitizer: 95993 byte(s) leaked in 9338 allocation(s).

SciLor commented 8 months ago

What are the previous error messages? Which version are you using?

mptr8956 commented 8 months ago

hi, 0.3.2. sorry, already restarted the container, the lines before are lost. will come up with the additional info as soon as it crashes again (probably some days)

mptr8956 commented 8 months ago

Here is the log with the lines before the crash. _teddycloud_logs (2).txt

SciLor commented 8 months ago

This looks really weird, as it seems that the certs volume / certs and the content dir seem to be gone.

mptr8956 commented 8 months ago

strange, both dirs are existing (and as soon as i restart teddycloud, everything works as expected)

SciLor commented 3 weeks ago

As it cannot be reproduced, closed