Skip to main content


Problem beim Update auf die aktuelle 2022.10


Friendica Support reshared this.

Please run bin/composer.phar install --no-dev at the root of your Friendica install.

Friendica Support reshared this.

Habe ich gemacht, keine Fehler. Nun wiederholt:
You are using Composer 1 which is deprecated. You should upgrade to Composer 2, see https://blog.packagist.com/deprecating-composer-1-support/
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files
18 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Friendica Support reshared this.

This is the expected output, what user did you run Composer with? It would affect the permissions of the files in the vendor folder and wether the web server can open them.

Friendica Support reshared this.

I run composer with the web-user. The permissions are correct.

Friendica Support reshared this.

Thank you, can you please confirm that the file www/friendica/vendor/smarty/smarty/libs/Smarty.class.php exists?

Friendica Support reshared this.

Friendica Support reshared this.

Thank you, visibly it’s all the files in the vendor folder that your web user can’t open. It sounds more and more like a permission issue specific to your system.

Friendica Support reshared this.

I have checked the permission and run a chown -R user:www-data

Friendica Support reshared this.

Your web user is called user, not www-data?

Friendica Support reshared this.

yes, thats correct.

Friendica Support reshared this.

@Michi That's a bit odd name for a web-user. Do you have php-fpm or how does your web server (Apache/Nginx?) run PHP scripts?

E.g. for this sub-domain I had to specify it in the pool's configuration file:
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
;       will be used.
user = vuXXXX
group = www-data

(while xxxx is a four-digit number).

Friendica Support reshared this.

Yes I use php-fpm. Where can I find the pool configuration file?

Friendica Support reshared this.

@Michi Mine are located here: /etc/php/7.4/fpm/pool.d/

Friendica Support reshared this.

I'm sorry, I'm stumped, it really is a quirk of your own system, not sure what else to ask you.

Friendica Support reshared this.

No problem, thank you for your help. Now I want to restore the backup, but I have a problem with the db import.

Friendica Support reshared this.

Da habe ich nicht viel. Da sind nur Warnungen wie diese:
[27-Oct-2022 18:29:39 UTC] PHP Warning:  Trying to access array offset on value of type bool in /home/users/freinetz/www/friendica/src/Module/Notifications/Ping.php on line 193

Friendica Support reshared this.

Friendica Support reshared this.

Was bedeutet Duplicate key on write or update in diesem Abschnitt? Was soll hie doppelt vorhanden sein und zu einem Fehler führen?

Friendica Support reshared this.

Ich kriege das nicht hin. Ich habe nun versucht von dieser Instanz die contact-table zu exportieren und habe sie zu verglichen. Die sieht ganz anders aus - vielleicht durch das Update.

Weiter komme ich selber nun wirklich nicht und bitte um Unterstützung von #datenbank #Profis 😉 Wer kennst sich mit der friendica-db aus?

Friendica Support reshared this.

Darf ich dich @Michael Vogel fragen? Ich glaube du bist im Bereich der DB ein Fachmann, oder?

Friendica Support reshared this.

Das erste zunächst: Sind Deine Composer-Probleme beseitigt?

Friendica Support reshared this.

@Michael Vogel @Friendica Support
Also ich möchte erstmals zurück zur letzten funktionierenden Version, sprich des Backup einspielen. Die Dateien waren kein Problem, bei der DB klemmt es. Ich denke composer sollte da ja auch keine Probleme mehr machen.

Friendica Support reshared this.

@Michael Vogel @Friendica Support Als Hinweis, diese Instanz, von welcher ich hier schreibe läuft auf dem gleichen Server.

Friendica Support reshared this.

Und Du hast jetzt Probleme beim Einspielen des Backups? Am besten erstellst Du eine neue Datenbank, löscht aber nicht die alte Datenbank (man weiß ja nie). Dann sollte das Einspielen auch klappen.

Friendica Support reshared this.

@Michael Vogel @Friendica Support
Siehe den Post oben, ich bekomme diese Fehlermeldung: ERROR 1005 (HY000) at line 1785: Can't create table freinetz_db1.contact (errno: 121 "Duplicate key on write or update")

In eine neue DB einspielen habe ich noch nicht versucht. Das probiere ich mal, danke.

Friendica Support reshared this.

Vielen Dank für deinen Hinweis mit der neuen Datenbank. Ich habe immer versucht, die alte Datenbank mit dem Backup zu überschreiben und das ging nicht. Jetzt hat es funktioniert! Merci!

Ich werde bei Gelegenheit das Update auf die neue Stable nochmals versuchen. Ich hoffe, es funktioniert!

Friendica Support reshared this.

Im Zweifel teste es auf einer Datenbankkopie.

Friendica Support reshared this.