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

Cache to Library: after first caching, source-value in JSON-File ist not set #165

Open schmaddi opened 4 months ago

schmaddi commented 4 months ago

Hi, I think there is a Bug in the Cache to Library Feature: When a new Tonie is cached by teddycloud, the temp-TAF-File ist written in the correct Content-Folder. Then after finished the Download the File is correct moved to the Library, but in the JSON-File the source-value is not set. After another presentation of the Tonie on another Box (or deleting the TAF from the first Box), caching starts again and after the finish of caching the soruce-value is set.

SciLor commented 3 months ago

Is this still happening in develop?

henryk86 commented 3 months ago

just tested it and it looks fine :) earlier I had the same behaviour as described. Thanks @SciLor !

schmaddi commented 3 months ago

Yes, can confirm in develop the source-value ist set after Caching, but I hat two Errors after caching and moving of the File:

teddycloud  | INFO |handler.c:0305:cbrCloudBodyPassthrough| >> Successfully cached /teddycloud/data/content/default/830D9011/500304E0
teddycloud  | WARN |mutex_manager.c:0147:mutex_manager_check| Mutex /teddycloud/data/content/default/830D9011/500304E0.json locked for 342
teddycloud  | ERROR|mutex_manager.c:0155:mutex_manager_check| Mutex /teddycloud/data/content/default/830D9011/500304E0.json locked for 1093
teddycloud  | INFO |handler.c:0803:moveTAF2Lib| >> Successfully set to library lib://by/audioID/1602579939.taf
teddycloud  | WARN |mutex_manager.c:0117:mutex_unlock| <mutex /teddycloud/data/content/default/830D9011/500304E0.json had a warning
teddycloud  | ERROR|mutex_manager.c:0122:mutex_unlock| <mutex /teddycloud/data/content/default/830D9011/500304E0.json had an error
teddycloud  | INFO |handler.c:0403:cbrCloudServerDiscoPassthrough| >> cbrCloudServerDiscoPassthrough
teddycloud  | INFO |cloud_request.c:0458:web_request| Connection closed
SciLor commented 3 weeks ago

The solution cannot be implemented, as there is a possible deadlock situation. Therefore it is disabled.