Worked for me as well, thanks!
Very specifically, with full absolute path, I did…
sudo -u wallabag2 /var/www/wallabag2/bin/console --env=prod fos:user:change-password
Worked for me as well, thanks!
Very specifically, with full absolute path, I did…
sudo -u wallabag2 /var/www/wallabag2/bin/console --env=prod fos:user:change-password
Sorry for the stupid question: It die not work for me as I got the answer
sudo: /var/www/wallabag2/bin/console: command not found
Any hint?
Hello,
On my server, i’m the only one to use Wallabag2.
The trick works for me :
sudo su
sudo -u wallabag2 /var/www/wallabag2/bin/console --env=prod fos:user:change-password
I had to enter my username, then my password twice.
ppr
Upgraded from 2.5.4~ynh4 to 2.5.4~ynh7 >> same problem as with upgrade to 2.5.4~ynh6: credentials are not accepted.
My solution for the time being: go back to backup (and be careful to have one! )
@Paradroyd many many thanks for this workaround. Excellent
Dj
Thanks, but I did not come up with this.Someone else did earlier in the thread. I just clarified the syntax a bit.
Thanks a lot, this worked out!
I have version 2.5.4~ynh6
Indeed, but that’s the important bit!
Dj
works, thanks a lot
The command line to change password works well and allow to bypass SSO problem.
I’ve write a quick tutorial in french to share this tips : Yunohost, Wallabag et soucis de connexion - Une astuce - Le blog de Genma
Thank you all !
People, before jumping into the quick fix kindly provided by @Ekpu also consider this:
Reconsidering this, I believe the issue is that the patches to adapt Wallabag in Yunohost to LDAP authentification are not working.
Hence it’s using Wallabag internal account system or something like that (so there is no SingleSignOn with your Yunohost account).
So I don’t believe it will be an issue.
I have a speculative fixes pending (one is here, the other here), those not faint of heart can manually apply YNH patch and try upgrading Wallabag with provided branch.
Thanks a lot for these finding and patches to both Wallabag app and Yunohost core.
Others can wait for the kind people who will test this to report if it fixes the issue, so we can merge the patches.
As the one who raised this issue, I just want extend my thanks to all those that have helped. I admin my own server and I manage it well, but when it comes to fixing apps at code level, then I’m lost.
I did the password hack using the CLI which fixed the log in problem and I have upgraded to the latest WB2, both of which work. I have added new users who can login successfully.
So again, many thanks to all those involved. WB2 is a popular app on my server set up and, the few that use it are smiling again.
Very best wishes
Dj
Hello,
just to let you all know:
Did the latest update to 2.5.4~ynh8. As far as I can see everything is working again including SSO.
That version didn’t resolve the issue for me, I had to do the CLI password change
Hallo,
you are right as I also did the password change before the update this was not really a test if the error is resolved.
At least it seams that SSO was not broken trough the password change.
Using 2.5.4~ynh8 on YNH 12.04.1, I have the that invalid user credentials issue (since a few versions, and I did not took care of the issue earlier and I don’t have the automatic backup anymore).
I am unsuccessful with the CLI command -
root@server:/# sudo -u wallabag2 /var/www/wallabag2/bin/console --env=prod fos:user:change-password
[WARNING] Some commands could not be registered:
In AbstractMySQLDriver.php line 128:
An exception occurred in driver: could not find driver
In Exception.php line 18:
could not find driver
In PDOConnection.php line 40:
could not find driver
In AbstractMySQLDriver.php line 128:
An exception occurred in driver: could not find driver
In Exception.php line 18:
could not find driver
In PDOConnection.php line 40:
could not find driver
Please give the username:one_YNH_user_account_name
Please enter the new password:
21:35:30 ERROR [console] Error thrown while running command "--env=prod fos:user:change-password". Message: "An exception occurred in driver: could not find driver" ["exception" => Doctrine\DBAL\Exception\DriverException { …},"command" => "--env=prod fos:user:change-password","message" => "An exception occurred in driver: could not find driver"]
In AbstractMySQLDriver.php line 128:
An exception occurred in driver: could not find driver
In Exception.php line 18:
could not find driver
In PDOConnection.php line 40:
could not find driver
fos:user:change-password [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--
Do I remember well that wallabag login/pwd is the same than given YNH user/pwd ?
More generally:
root@server:/# su - wallabag2
This account is currently not available.
Although it does exists in cat /etc/passwd
:
wallabag2:x:986:986::/var/www/wallabag2:/usr/sbin/nologin
I think this is hard to debug and possibly over my head.
I found one issue in the wallabag github where special characters in the password are a problem:
Github issue
It could also be that the currently running PHP Version does not have php_pdo enabled. But I have no clue how to check this and to savely enable this. Maybe someone else with more PHP expertise can help.