Skip to content
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

Page load blank even when trying pervious version #444

Open
1 task done
cvega942 opened this issue Feb 12, 2025 · 5 comments
Open
1 task done

Page load blank even when trying pervious version #444

cvega942 opened this issue Feb 12, 2025 · 5 comments

Comments

@cvega942
Copy link

Version

5.4.3

Details & Steps to reproduce

Default URL loads blank screen.

Expectation

I expect the login page to appear.

Error & Logs

2fauth  | Running version 5.4.3 commit 23a0ae3 built on 2024-11-27T14:02:41Z
2fauth  | supervisord version: v0.6.8
2fauth  | PHP 8.2.26 (fpm-fcgi) (built: Nov 21 2024 19:13:05)
2fauth  | nginx version: nginx/1.24.0
2fauth  | DB_DATABASE sets with default path, we will use a symlink
2fauth  | Actual db file will be /2fauth/database.sqlite
2fauth  | /srv/database/database.sqlite is now a symlink to /2fauth/database.sqlite
2fauth  | 
2fauth  |    INFO  Compiled services and packages files removed successfully.  
2fauth  | 
2fauth  | 
2fauth  |    INFO  Caching framework bootstrap, configuration, and metadata.  
2fauth  | 
2fauth  |   config ........................................................ 12.56ms DONE
2fauth  |   events ......................................................... 1.29ms DONE
2fauth  |   routes ........................................................ 17.76ms DONE
2fauth  |   views ......................................................... 21.43ms DONE
2fauth  | 
2fauth  | time="2025-02-12T16:34:47Z" level=info msg="load configuration from file" file=/etc/supervisor/supervisord.conf
2fauth  | 192.168.254.2 - - [12/Feb/2025:16:34:51 +0000] "GET / HTTP/1.1" 200 3461 "http://10.254.10.60:5555/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0"
2fauth  | 192.168.254.2 - - [12/Feb/2025:16:35:09 +0000] "GET / HTTP/1.1" 200 3461 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"
2fauth  | 192.168.254.2 - - [12/Feb/2025:16:35:14 +0000] "GET / HTTP/1.1" 200 3461 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"

Execution environment

I typically put behind Nginx. However, it doesn't work even when accessing directly.

http://10.254.10.60:8000

Containerization

  • Docker

Additional information

No response

@Bubka
Copy link
Owner

Bubka commented Feb 13, 2025

Hi,

Please open dev tools on your browser (F12 or ctrl+shift+I) and check both the Console tab and the Network tab.
Do you see error or failed request?

Most of the time it's a configuration issue where the environment variables are not correctly set. See existing issues.

@XsniferX
Copy link

Same issue here i event try to rollback to previous backup but same error.

Image

@XsniferX
Copy link

my url is something like : john.2fa.example.com

i even set this bellow couple month ago for similar error where the screen were blank :

Image

@Bubka
Copy link
Owner

Bubka commented Feb 13, 2025

@XsniferX Are your assets (js, css, img) served from a different server than the web app? If not, you don't need to set ASSET_URL, all resources will then be served under the url set in APP_URL

The Content Security Policy (CSP) errors that lead to the blank page are thrown because you're visiting 2FAuth from an internal ip address (192.168.xxx.xx) whereas you probably have set the APP_URL env var to https://john.2fa.example.com. You have to visit 2FAuth using the APP_URL value, so https://john.2fa.example.com.

@XsniferX
Copy link

hi thanks for the quick reply.

at lease for myself never mind i had an issue on my vps using authelia and a wireguard tunnel. i solve the issue on there and now i can login.

i dont know if the OP has still the issue. regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants