-
Notifications
You must be signed in to change notification settings - Fork 71
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
authorize.php error 500 #91
Comments
Hi, The demo was working for me on december 2021, but I confirm this does not work anymore now, at least on my server with Nginx throws an error 500 because it cannot reach the mattermost backend. In fact, the mattermost upstream points to localhost, but containers are not sharing the same local loop anymore, so the mattermost port 8065 is not available in the Nginx container on the localhost. A similar problem is happening in the PHP container, which cannot reach the database on Thus, I think issue #86 has the same root problem and that's why PostgreSQL database and LDAP server are not reachable from the Nginx container. To patch these issues, localhost reference must be replaced by corresponding service DNS entries. By default with podman/docker compose, each container is accessible from its service name in other containers. I need to do more tests to be sure my patch is reliable and do not introduce regression, but I think I will push it soon. Thank you for your feedback, please let me know if the patch solves your issue. Regards, |
Hi, thanks for reply. I tried baremetal and docker-compose deploy too. Currently it seems like it is not working at all with recent version of Mattermost v6.5.0, token.php throws error 500 on PHP v7.3.20.
Tried
Can you maybe verify that code is compatible with Mattermost v6.5.0 ? |
Hi, I have pushed the patch on branch master. Now, the demo is working on my Fedora 35 with I don't know why you get an error 500 on the Can you try the demo with the patch ? Let me know if it solves your issue. Regards |
Just tried a fresh demo, copied the configs :
from Demo folder run:
Logs from php container:
Going to http://localhost/oauth/index.php and logging in with I have tried to expose DB on host port, and instrcuted in config to connect to my IP 192.168.1.7. From php container i have tried telnet too to the DB:
Further inspecting logs of DB, i saw that initialization failed due to Next thing is to try same thing but on mattermost server with AD. |
Ok i have found solution for my setup, i was using Mattermost-LDAP behind reverse proxy as seperate domain "auth.example.com" Had to add to nginx location block:
Since nginx was returning |
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Exact steps:
Seems like the demo is not working. P.S i have generated the certs.
The text was updated successfully, but these errors were encountered: