Replies: 3 comments 10 replies
|
Hi @clemenko Option 1: You go to admin => maintenance => you should have a line which tells you that the tree are broken and there should be a link to the fixing page. |
|
After several resets and clearing of cache I was able to get the albums deleted. thanks |
|
The 409 is a pre-flight check, not a failure of the delete itself. public function validateBeforeDelete(): void
{
$check = new CheckTreeState();
$stats = $check->handle();
if ((($stats['oddness'] ?? 0) > 0) ||
(($stats['duplicates'] ?? 0) > 0) ||
(($stats['wrong_parent'] ?? 0) > 0) ||
(($stats['missing_parent'] ?? 0) > 0)) {
throw new CorruptedTreeException('Cannot delete albums: album tree is corrupted.');
}
}Deletion collapses Fixphp artisan lychee:fix-treeIt prints the four counters before repairing, so you also get to see what was actually wrong: Same thing is available in the web UI under Maintenance → Fix Tree if you'd rather not use the CLI. One gotcha that will bite you right after
return Cache::remember('tree_state', 24 * 3600, fn () => $this->countErrors()); // 1 day cacheand So if you fix the tree and immediately retry the delete, you can get the exact same 409 from the stale cached verdict. Clear it after fixing: php artisan lychee:fix-tree
php artisan cache:clear
php artisan tinker --execute="Cache::forget('tree_state');"Then the delete should go through. If |

Uh oh!
There was an error while loading. Please reload this page.
Lychee version
v7.7.2
Did you check the latest Lychee version?
No, I am not using the latest version
Which PHP version are you using?
PHP 8.5
Detailed description of the problem
When trying to delete an album it doesn't do anything.
from the browser
Steps to reproduce the issue
I am running from Docker with the lscr.io/linuxserver/lychee image.
Diagnostics [REQUIRED]
All reactions