-
-
Notifications
You must be signed in to change notification settings - Fork 179
Blank screen with version 5.0.3 #284
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
Comments
same here (docker-compose via exposed port and behind traefik). downgrade to 5.0.2 shows login window again. |
https://github.com/Bubka/2FAuth/releases/tag/v5.0.3
this does not change anything for me.
|
Please run the following in a terminal opened on the 2fauth directory:
Does it help? |
setting ASSET_URL is working for me |
i did some testing and got it running by using
thanks! |
this solved the issue for me |
I'm running 2fa in a docker. What's the 2fa directory? the physical directory where the 2fa data volume are mapped? |
if you running 2FAuth on External Server or Cloud, Change ASSET_URL & APP_URL that pointing to your Server IP:PORT or URL FIX the problem |
Have same issue ,usinf lasted version on Unraid docker . |
also tryed befor:
|
in Firefox working fine after added ASSET_URL & APP_URL , but in chrome get CSRF token mismatch. |
FYI what worked for me was adjusting (and in the case of ASSET_URL, adding) the variables to be as such (adjust "myservername" to your server name + port number to whatever you assigned it to be:
Prior to this I did attempt the php artisan cache clears that others tried above. No idea if that factored into the fix. |
After reboot also fixed in chrome |
Add ASSET_URL solved for me |
I was able to add the variable manually when deploying through TrueNAS Scale, and ASSET_URL fixed it for me too. |
I have the same problem with a bare metal install i followed this tutorial https://docs.2fauth.app/getting-started/installation/self-hosted-server/ my .env file looks like this
|
Same here with 5.0.4 -- I have rolled back to 5.0.2 |
Running in Docker on a Synology: Double-Checked with version 5.1.0 I always get a blank page. I'm again back on 5.0.2 |
@FrankSchoene how do you set the env vars? With the cmd line option |
I just managed to get it working 10mins ago :-) |
I am trying to do the same setup with portainer and NPM, but receive a blank white screen as well. Do you have any idea how you got it working? I have removed all the images, removed the folder on the host, rebooted, and tried every single suggestion in this thread to no avail. It simply does not work. ANY help on this would be grealtly appreciated, as the official documentation does not address this issue. Thank you in advance. |
@daymr Open your browser dev tools (F12), on the Network tab. You should see some failed requests for js files. If the domain for those requests is not the same as the domain in the browser address bar then your |
I managed to solve the problem by also rolling back to 5.0.2. I have the following question: I will be directing to my domain through NPM, will I need to register some additional settings or will the settings in NPM and valid SSL be enough? |
If the communication between the proxy and 2FAuth is not secured, you need to set the TRUSTED_PROXY env var. edit: And maybe the PROXY_FOR_OUTGOING_REQUESTS |
and in parament TRUSTED_PROXY set ip NPM, right? |
yes 👍🏻 |
Version
5.0.3
Details & Steps to reproduce
Since I updated the docker container to 5.0.3 2fauth only shows a blank screen. There are no errors in the log file. The last time I got a blank screen was when I forgot to set TRUSTED_PROXIES. With v5.0.2 all is fine again. Is there any change to cause this?
Expectation
Show the regular screen with 5.0.3
Error & Logs
No response
Execution environment
Docker is running on an openmediavault installation
Linux openmediavault 6.1.0-0.deb11.13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55 -1~bpo11+1 (2023-10-08) x86_64
with a reverse-proxy on a Synology Diskstation
Containerization
Additional information
No response
The text was updated successfully, but these errors were encountered: