Skip to main content


The entries in the photo table are always there. Only the location changed. And the storage table doesn't shrink by itself. You have to execute optimize on it an SQL console to actually remove all the deleted parts.

@Michael Vogel Danke für die schnelle Antwort!

Dann schreibe ich mal in deutsch weiter, da kann ich mich besser ausdrücken. 😉

Ist es denn normal, dass die Einträge weiterhin mehr werden, wenn ich

SELECT COUNT(*) FROM photo WHERE data IS NOT NULL;

ausführe?

Und diesen Fehler:

[Error] Friendica\Console\Storage::doExecute(): Return value must be of type int, null returned

kann ich den dann einfach ignorieren?

Die photo-Tabelle wird weiter anwachsen, das ist völlig normal. Nur die `storage'-Tabelle sollte jetzt leer sein. Ich schätze, dass der Fehler ganz am Ende nicht wirklich viel bewirkt hat. Meiner Erinnerung nach werden die Einträge bereits zwischendrin gelöscht.

@Michael Vogel Ah ok, dann hatte ich tatsächlich in der falschen Tabelle geschaut, kein Wunder. 😅🙈

Ich habe das jetzt noch mal durchlaufen lassen, mit dem Ergebnis:

Die Datenbank insgesamt war zuvor 3547,86 MB, jetzt 698,61MB.
Die Storage-Tabelle war vorher 2895,75MB, jetzt 14,02MB.
In der Storage-Tabelle waren zuvor 137492 Einträge, jetzt 36.

Dann hat das wohl geklappt, würde ich sagen.

Vielen Dank für die schnelle Antwort und Hilfe! 👍

@Michael 🇺🇦 @Jools

Hi, I have a question
Why sudo -u www-data bin/console storage move it was used? When I installed and configured #friendica on my server , i changed the storage to filesystem , what i did i created the storage folder (out of the friendica folder) , after sudo chown -R www-data:www-data /var/www/storage in Storage Administration Filesystem I entered the path and it is saved /var/www/friendicastorage

I missed something? what i did is correct?

Cheers

ok @Jools , you wanted to move the photos in the database to the new storage 👍
@Jools The error comes at the very end of the execution of the task, so it doesn't have any impact on the task itself.
@Hypolite Petovan Thanks for the info, I guess everything worked, I just misunderstood and looked at the wrong table. 🙈😉