-
Notifications
You must be signed in to change notification settings - Fork 13
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
500 Internal Server Error when clicking ANY Save/Create button #265
Comments
@suhaylhallim this error looks like it is in the CSRF code of FusionAuth. When a form is submitted, FusionAuth ensures that the There are only two cases that I can see where a
Your screenshots look fine and the only thing I can think of is that there might be an issue with a proxy. Do you have a proxy sitting in front of FusionAuth that is translating requests from |
Responce@voidmain Yes I have FusionAuth behind a proxy. I didn't find much on how to set it up behind a proxy or, I wasn't looking hard enough. So I went ahead with a "trial & error" approach. When I initially set up FusionAuth I did remember a warning about my proxy configuration. It disappeared immediately after a following the instructions. I was able to create multiple users & applications without any warnings or issues. Before this response I attempted to search the docs for incite to your response and to recheck my config. Unfortunately I'm not sure what could possibly cause this newfound problem. As you will find below, my setup is super basic and, would definitly need your personal incite from here on out. Reference to the CSRF WarningWhen i first set up FusonAuth 2 months ago, this was the Proxy Warning I got Fix to the CSRF WarningI fixed this by adding the following line to my configuration Apache Config.I was and still is using Apache as my reverse proxy and this is what it always looked like.
Additional InfoThe SSL Certs. used are wildcard certs. When I created it, I included the following domains: |
Responce@voidmain I fixed this problem. All thanks to you! After re-reading your response and, eventually stumbling across Issue #112 (which outright shows you've already... kinda dealt with this exact issue except, with HAProxy) i was able to google and, find Setting X-Forwarded-Proto under Apache 2.4. Initial Apache Config with Issue
Fixed Apache Config without Issue
ResultsNotice the difference with the Many Many Thanks for your time @voidmain |
My pleasure! I'm glad you got it working. |
Great! It looks like one thing we could have done to help debug this would be to show the proxy config warning if the value set in the In your initial config, this probably would have helped narrow down the issue. |
@robotdan Yes. However, I appreciate all the hard work you guys put into FusionAuth. Thank you again. |
@voidmain & @robotdan Im just posting this here for those that might have the same proxy setup and have trouble setting it up. Most likely they will need the following also since I definitely did. I believe it is necessary to add the following Addition to the Apache config
Application Details before the additionApplication Details after the additionJust to recapThese three
|
500 Internal Server Error
Description
When I attempt to create a user, an application or, just edit and save settings, I get the following errors:
"FusionAuth encountered an unexpected error. Please contact support for assistance." and "500 Internal Server Error An internal error occurred. FusionAuth should have captured a stack trace in the log. If you have a support contract, contact support using the form under the "Get Support" menu item. Otherwise, check your logs to see what the error might be."
Steps to reproduce
Steps to reproduce the behavior:
Same for Creating an Application and, making any changes to the settings, etc.
This is the error that is found in the fusionauth-app.log file
Expected behavior
I've set up fusionauth a few months ago and have added multiple users and, applications during that time. I didn't check on fusionauth for a while and, now that I am configuring another application and, was ready to add SSO to it, I ran into this HUGE problem.
Screenshots
Screenshot of the error when trying to create a user:

Screenshot of the error when trying to create an application:

Screenshot of the error when trying to edit and save changes in settings:

Platform
FusionAuth Dedicated Installation
Remote Windows Computer
Additional context
I've created multiple users before
I've create multiple applications before
I've changed the settings
Now I cannot do any of the above because or the error above.
The text was updated successfully, but these errors were encountered: