Friendica Log in Problems

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.11
What app is this about: Friendica

Describe your issue

I know this has been asked and answered before, but I cannot get an answer that works. I installed Friendica, and tried to login on its URL using my admin name and password from the setup process. No matter what, it fails to let me in and just returns to the login page. I read on and found that people said you need to register a user with the admin login details, but when I press the button to register, it takes me to [url]/register, which comes up as a blank page, no matter how many times I refresh it. Iā€™ve tried logging in on various devices, all to the same result.

Share relevant logs or error messages

https://paste.yunohost.org/raw/fafozinome

1 Like

Given it does not work anyway, can you please try uninstalling and installing from testing branch?

The custom URL to use in web admin is https://github.com/YunoHost-Apps/friendica_ynh/tree/testing.

This branch actually runs Friendicaā€™s auto installer, worked (somewhat) when I tried it just now.

nevermind, itā€™s not helping :roll_eyes:

mind, it is helping if you clear the cache :person_shrugging:

Anybody got any more ideas? This seems to be an ongoing/recurring issue with no real solution provided.

I just installed all app/package updates, restarted the server, then installed Friendica with no errors. At the end it says I can log in at the friendica URL I created and the YH user I selected with me usual YH password.

But of course that does not work. It just drops me back to the Login page.

When trying to use the Register button, the page that loads is indeee just blank. The source for that page is literally just ā€˜1ā€™

Logs from the Friendica install:
https://paste.yunohost.org/raw/atuguwamox

I have tested install from the testing branch and it works just fine.
Your instance can be salvaged by logging in via ssh and issuing:

sudo yunohost app shell friendica
php8.2 bin/console.php autoinstall -a -f config/config.local.php
php8.2 bin/console.php addon enable ldapauth

Restart ā€˜friendica-daemonā€™ service for a good measure and you should be good to go.

Unfortunately, this still didnā€™t work for me. After the second command:

php8.2 bin/console.php autoinstall -a -f config/config.local.php

I got

ERROR: Config file does not exist.

Interestingly, friendica-daemon seems to be in a state of eternal error. I canā€™t restart it at all. Logs:

https://paste.yunohost.org/ojaqihuwus

The error message generated was:

Error: "500"

Action: "PUT" /yunohost/api/services/friendica-daemon/start

yeah, I was wrong, the command actually is

php8.2 bin/console.php autoinstall -a -f config/local.config.php

(the file name is different)

Okay, weā€™re getting there! All looks good and the friendica-daemon is running fine, from what I can see.

I was able to sign up, I got a sign up screen. But when I submitted my signup information, the next screen was completely blank. When I went back out to login with the account I just created, it says ā€œlogin credentials incorrect.ā€ I know they are correct because I copy and pasted.

You should be able to log in with your usual ynh credentials, the user you selected as admin should have admin rights

I have run the steps provided above without any errors and restarted the daemon, but am still unable to login with my YH admin user. It says Login Failed. Please check your credentials.

Not sure what else Iā€™m missing.

I was able to register a new account, though.
I received the password via email as expected. Just not sure how to ensure that account is an admin.

Also, I canā€™t change the account password.
I can log in with the one generated and emailed to me, but when I plug that in as the Current Password and set a new one in the first two fields, I click Save Settings and it says Login Failed, password unchanged.

Disregard. For some reason copying the password from the email and pasting it to log in worked fine, but on the password reset it didnā€™t. It seems it also copied a tab at the front of the password and the Login auth was stripping that but the password change page was not.

I have had a similar experience

$ php8.2 bin/console.php autoinstall -a -f config/local.config.php
Initializing setup...
 Complete!

Checking environment...
 NOTICE: Not checking .htaccess/URL-Rewrite during CLI installation.

 Complete!

Loading config file 'config/local.config.php'...
 Complete!

Checking database...
[Error] --------
Database is already in use

$ php8.2 bin/console.php addon enable ldapauth
[Error] Addon already enabled

And then I restarted friendica-daemon, but I still canā€™t log in with the administrator user.

Itā€™s curious, because I was able to create a new user (without administrator privileges) and I even managed to change the password with the new userā€™s own account.

Could an administrator user be created directly in the database? What would the procedure be like?

PS: The originally chosen administrator user cannot access because he receives a response "login credentials incorrect.ā€

When it says ā€˜database already in useā€™ installation in fact fails, perhaps it was installed properly before?

I did not get that Database-related error on my install:

friendica@tjserver:~$ php8.2 bin/console.php autoinstall -a -f config/local.config.php
Initializing setup...
 Complete!

Checking environment...
 NOTICE: Not checking .htaccess/URL-Rewrite during CLI installation.

 Complete!

Loading config file 'config/local.config.php'...
 Complete!

Checking database...
 Complete!

Inserting data into database...

 Complete!

Installing theme
 Complete


Installation is finished

Is there a manual method to make my user the instance admin?

I figured it out. I had to manually edit my local.config.php and change the admin_email to the email of the first user I registered as well as adding admin_nickname key with that users nickname. I am now an admin for the instance after restarting YH.

1 Like