teddycloud icon indicating copy to clipboard operation
teddycloud copied to clipboard

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

Open schmaddi opened this issue 1 year ago • 4 comments

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.

schmaddi avatar May 03 '24 19:05 schmaddi

Is this still happening in develop?

SciLor avatar May 19 '24 17:05 SciLor

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

henryk86 avatar May 19 '24 20:05 henryk86

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

schmaddi avatar May 20 '24 17:05 schmaddi

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

SciLor avatar Aug 13 '24 12:08 SciLor