-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix integration with Synapse #13
Conversation
I tested this branch. If I install on the same domain as synapase, the nginx.conf is overwritten by the synapse.nginx.conf because they both end is the same dir, with the same name. |
What. It is supposed to be on its own domain. How could your YunoHost let you do that?! |
Mmmh I was surprised too. I tried on the same domain because of CORS issues. Will try on dedicated domain 👍 |
You may try again, with the commit above, but I am still flabbergasted you could install it on the same domain as Synapse. |
!testme |
This comment was marked as outdated.
This comment was marked as outdated.
Different tests :
|
What about something like this in installation...? |
Co-authored-by: nathanael-h <[email protected]>
That won't work, the permissions are set relatively to the main path of the app. We may run a Python command to set that one for the Synapse app though. |
That could be good. I think we need to have the _synapse/ location accessible to synapse admin's frontend (ie when running in our browser) and this without SSO. |
I see exactly the same problem as @nathanael-h , have you found any solutions to solve this problem? |
I am also experiencing the same problem, thank you for help me solve it. |
As said here, YunoHost-Apps/synapse_ynh#301 (comment) , I upgraded my synapse to the branch that could help to fix our problem. But I still have issues... Facing SSO. |
I was not using a valid endpoint for my tests. The app now works using this branch https://github.com/YunoHost-Apps/synapse_ynh/tree/add-_synapse-perm. If someone wants to test it: |
!testme |
@ericgaspar you asked about the state of this PR in #17. I think it's ready to go, though I have a doubt about the relevance of |
I have installed the synapse server from the following repository: https://github.com/YunoHost-Apps/synapse_ynh/tree/add-_synapse-perm , while attributing the necessary permissions for the "visitors" group. The purpose of this is to make the /_synapse extension accessible for the Synapse-Admin application that I have installed from the following repository : https://github.com/YunoHost-Apps/synapse-admin_ynh/tree/fix But I am facing a new problem that is preventing me from accessing my session Synapse-Admin, because at the time of authentication with the user "test" (which has all the permissions, see image above), synapse-admin opens and closes immediately, while returning the following error message : This is what the following command returns to me : I do not know how to solve this problem, because I have tested several browsers and several different networks, so the problem does not originate neither the browser nor the network. If you have a solution to solve this problem, please feel free to let me know. |
I found other people who have the same problem, with the same erroneous error message : They were able to identify the problem, and apparently this is because of the fact that the user does not have admin rights on the synapse server, except that I have given all possible rights and imaginable to my user on YunoHost as you can see in picture. What kind of privilleges do I still have to give him? |
I managed to solve the problem, by manually adding admin rights to the test user on the matrix_synapse database with the next request :
It's still strange to have to grant the permission in the BDD while yunohost is supposed to provide all admin rights as seen in the image above. The question is: Do these YunoHost permissions really serve a purpose? Anyway, it's a real miracle that synapse-admin finally works, because I've been struggling to get it to work for almost four months. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
what do we do? Do we merge? |
I can confirm it does… |
!testme |
This should fix #15 too. |
In CI:
Domain name issue ? |
!testme |
Is that a CI bug ? |
Where can I find the synapse database? |
It is still allowing this to happen!!! |
!testme |
Closes #9
/_synapse/admin
endpoint needs to be added in the NGINX config of Synapse's domain.PR Status
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)