-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to log in only shows the CAS option, resulting in a loop #412
Comments
I face the same issue |
Same here too |
same problem |
Hi, i discovered this package implement the new mechanism for PHP conf: I was able to fix the CAS login by changing /etc/php/7.4/fpm/pool.d/synapse.conf with:
I don't know exactly how to fix that in the package with the new helper... |
it didn't work for me. |
In more you need to change the nginx conf file with |
That's already the case for me, but I have the issue… |
Also my |
Thank you @zamentur , with changing /etc/php/7.4/fpm/pool.d/synapse.conf with:
and changing the nginx conf file with |
Changing the nginx file, I could make a PR but for changing the /etc/php/7.4/fpm/pool.d/synapse.conf file, I guess it is related to this command line in the install and upgrade script but I don't know how to modify it : |
About the userIt could be possible to rework this package to rename the system user About the chdir pathThe Solution 1 : tweek the install dirSO i suggest this:
Solution 2: PR on the coreAn other solution could be to suggest a PR on Solution 3: Use the deprecated
|
[EDIT] This was fixed by correcting a typo, as outlined in the next comment by Thatoo. I'm still getting this. I've:
...but I'm still ubable to log in (web or Android app). I'm quite desperate to fix this quickly, so if there is any info I can provide, or testing I can do to help to get to the bottom of this, I would really appreciate any ideas! Context
|
@Bugsbane you have a mistake in your nginx file. |
@Thatoo You are totally correct! After fixing that IT WORKS! Thank you (and everyone who worked on this) so very, very much! |
So this should be pushed in a PR to fix the issue, right ? |
Can you specify which file and line should be changed ? I can't find out. And after that, matrix + nginx + php service reloads ? |
Ok then same typo here… but now I have "File not found" when connecting to CAS… :( … Wait, I need to reload php too. |
Just a tip if someone needs it : the synapse.conf crash php if you try to add comments in it (I tried with # and it failed). And just to simplify even more (without pasting the content of the files, already here), here are the paths and commands to run to restart :
|
To comment on this file, it is not with # but with ; Waiting for yunohost's devs to comment on YunoHost/issues#2267, the solution 2, I'll make a PR with the other solution, the solution 1. |
I think you meant:
|
Could anyone tell me if homeserver.yml still needs to be edited to enable password login with the modifications above? Somehow I though we did not but the login still fails after editing /etc/php/7.4/fpm/pool.d/synapse.conf and /etc/nginx/conf.d/YOURSERVER.LTD.d/synapse.conf… |
This problem just came back with a recent update. I went back in and re-edited /etc/php/7.4/fpm/pool.d/synapse.conf to match exactly what's listed in comment #412 (comment) (and checked with diff). I completely restarted the server, but the same issue continues. Has something changed recently, like which version of php is being used for synapse_ynh? For the record, I do have registrations disallowed, so I'm wondering if it could also be related to the potential bug mentioned above by @orhtej2 ( #356 - disallowing registrations also disallows password login). |
I am facing the same issue (and I also have registrations disallowed) and so I can't connect new client to my Synapse server 🙁 Thanks in advance for the dev' for their advices 🤗 |
The solution is on the way : #426 |
After an update a while ago, this issue seems to have been fixed for me. Does this issue still need to be open, or is anyone else still getting this after updating and restarting their server? |
yes, I still have this bug on v1.98.0~ynh1, maybe as #412 (comment) |
poke @Josue-T |
I'm having a similar issue, wondering if it's related. When I try to log in, I have to go through CAS/SSO but then in the process I'm redirected towards: |
a temporary workaround can be to activate the password connection: |
In related news - is there a reason why this package is still stuck with PHP 7 instead of bumping it up to 8? From what I see, the only dependency is |
I had to reinstall my server recently, including Synapse ( 1.98.0~ynh1) |
I am also getting this on a recently updated server as well to version 1.98.0~ynh1. I would normally be able to change this, but none of the fixes mentioned seem to work anymore. The command to enable password logins does not do anything and same with the UI button in the applications settings. I get this when trying the command listed above.
|
Fixed by #426 |
@Josue-T your merged #426 in testing the 08/03/2024 and testing into master the 16/04/2024 so I was expecting not to face this issue after updating synapse to v 1.104.0~ynh1 yesterday evening.
and
Should I try the same solution as before #412 (comment) ? |
Well changing
to
in /etc/php/7.4/fpm/pool.d/synapse.conf isn't a good idea anymore, it makes fpm not working. Changing doesn't help neither. |
Well it actually works for old account. The problem comes only when a new account wants to connect for the first time. |
Well there was many modification since this issue was created. So the solution won't probably be the same solution than what it was suggested here. Thanks to create a new specific issue here: #453 |
Describe the bug
After the latest update of Element / Synapse, the web client only shows the option to log in using CAS, which results in an infinite loop. See also the corresponding bug in the
element_ynh
repository: YunoHost-Apps/element_ynh#122Context
Steps to reproduce
Expected behavior
The browser should be able to correctly redirect the user to the CAS login mechanism.
Logs
From the console log (URL redacted to
example.net
):Also of notice is the fact that the current configuration for CAS in nginx includes the following line:
Which means that the URL that Synapse is expecting would be in the form of
https://example.net/_matrix/cas_server.php
. However, the newest version of Element expects the CAS to be in the form ofhttps://example.net/_matrix/client/v3/login/sso/redirect/cas
- can this be safely edited in nginx?The text was updated successfully, but these errors were encountered: