YunoHost-Apps / friendica_ynh

Friendica package for YunoHost
http://friendi.ca/
Other
11 stars 12 forks source link

Install fails to initialize the database #137

Open treved3 opened 4 months ago

treved3 commented 4 months ago

Describe the bug

After installing friendica without error or issues, I go to the webpage to login. Logging in results in returning to the login page without any error.

Clicking "sign up now" results in a blank white page, page source has nothing but line 1 empty.

Checking mariadb, there is a friendica database that is empty, no tables. There is also a friendica user.

Mateusz Szymański on https://matrix.to/#/#yunohost:matrix.org wrote:

yeeeeah, for some reason install script does not seed the database naively you can run the missing commands manually but I would lean towards creating an issue 'naive' solution being 1 sudo yunohost app shell friendica 2 mv config/local.config.php . 3 php8.2 bin/console.php autoinstall -f local.config.php

This naive fix made friendica work, i.e. I could sign up and sign in afterwards.

Context

Steps to reproduce

I first installed via webadmin, then experienced the errors described below. Then uninstalled via webadmin and installed via CLI.

    sudo yunohost app install friendica

Expected behavior

I expect logging in with my admin account to result in a web interface where I'm logged in.

I expect signing up to result in a web interface where I'm logged in or can continue signing up.

Logs

https://paste.yunohost.org/giribowixo

and grepping (ag/silversearcher) syslog for mariadb.*friendica yields (I saw this somewhere on the forums):

316521:Mar 29 15:02:18 skogsnisse mariadbd[1381]: 2024-03-29 15:02:18 158663 [Warning] Aborted connection 158663 to db: 'friendica' user: 'friendica' host: 'localhost' (Got an error reading communication packets)
316531:Mar 29 15:02:28 skogsnisse mariadbd[1381]: 2024-03-29 15:02:28 158668 [Warning] Aborted connection 158668 to db: 'friendica' user: 'friendica' host: 'localhost' (Got an error reading communication packets)
316539:Mar 29 15:02:39 skogsnisse mariadbd[1381]: 2024-03-29 15:02:39 158671 [Warning] Aborted connection 158671 to db: 'friendica' user: 'friendica' host: 'localhost' (Got an error reading communication packets)
316547:Mar 29 15:02:49 skogsnisse mariadbd[1381]: 2024-03-29 15:02:49 158674 [Warning] Aborted connection 158674 to db: 'friendica' user: 'friendica' host: 'localhost' (Got an error reading communication packets)
316555:Mar 29 15:02:59 skogsnisse mariadbd[1381]: 2024-03-29 15:02:59 158678 [Warning] Aborted connection 158678 to db: 'friendica' user: 'friendica' host: 'localhost' (Got an error reading communication packets)
trendless commented 4 months ago

This also worked for me 👍