Blank screen after update from 5.0.3 to 5.0.4
Closed this issue · 10 comments
Version
5.0.4
Details & Steps to reproduce
I just upgraded 2FAuth from version 5.0.3 to 5.0.4. Then I entered 2FAuth URL in my browser and got the blank page.
What I've tried:
- I also tried in an incognito tab. Same behavior.
- As you indicated here https://github.com/Bubka/2FAuth/releases/tag/v5.0.3 I also set my
ASSET_URL
to myAPP_URL
. This didn't change anything.
Here is a screenshot from dev console:
Expectation
2FAuth should display the login page.
Error & Logs
The api route returns with a HTTP 401. When I call <DOMAIN>/api/v1/user
directly in browser I can see this message {"message":"Unauthenticated."}
.
I checked the logs in /storage/logs
and there isn't any relevant lines from today. Nevertheless, here's the output:
[2024-03-06 00:21:49] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 01:21:54] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 02:21:56] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 03:21:57] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 04:21:58] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 05:21:58] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 06:21:58] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 07:21:58] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 08:21:59] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 09:21:59] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 10:21:59] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 11:21:59] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 12:21:59] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 13:21:59] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 13:36:55] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 13:37:03] local.INFO: User login requested by '<MAIL_ADDRESS>' from <IP_ADDRESS>
[2024-03-06 13:37:03] local.INFO: User ID #1 authenticated (using email+password)
[2024-03-06 13:37:17] local.INFO: User ID #1 logged out
[2024-03-06 13:40:18] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 13:50:35] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 14:09:21] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 14:09:31] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 14:09:35] local.DEBUG: ReleaseRadarActivated event dispatched
[2024-03-06 14:09:53] local.DEBUG: ReleaseRadarActivated event dispatched
Execution environment
I'm using YunoHost package https://github.com/YunoHost-Apps/2FAuth_ynh .
Containerization
- Docker
Additional information
I opened this issue in the YNH package repository YunoHost-Apps/2FAuth_ynh#60
Might be related to #305 ?
Hi,
Opening api/v1/user
in a dedicated tab won't work, the XSRF token will be missing.
Please retry to sign in from a regular browser tab after clearing all cookies for the 2FAuth domain.
I cleared local storage, session storage, all cookies and cache in a regular browser tab. It's still not working. The login page is still blank.
As you indicated here https://github.com/Bubka/2FAuth/releases/tag/v5.0.3 I also set my ASSET_URL to my APP_URL. This didn't change anything
Did you clear the app cache? This can be done by running php artisan optimize:clear
in a terminal. (but not sure this can be done easily under yunohost). You can also manually delete the content of storage/framework/app/cache/data
I just did. It's easily possible in yunohost (just had to specify php version explicitly).
/var/www/2fauth# php8.2 artisan optimize:clear
INFO Clearing cached bootstrap files.
events ............................................................ 1ms DONE
views ............................................................. 4ms DONE
cache ............................................................. 1ms DONE
route ............................................................. 1ms DONE
config ............................................................ 1ms DONE
compiled .......................................................... 1ms DONE
Did "Empty cache and hard reload" and reloaded the page after it. Still, the same behavior. Page stays blank.
Having dev tools opened, when you load the 2FAuth page, what is the response code of the js assets requests? 200?
Also, do you have any mixed content
error in the console tab?
I faced the same issue while updating the demo site to v5.1.0. Running php artisan optimize:clear
, clearing site data (using the Firefox feature Clear cookies and site data...) then refreshing the page using ctrl+F5 solved it.
Are you still stuck?
Since my rollback to version 5.0.3 I haven't tried again. Someone already tested it on the testing branch and confirmed that the update to version 5.1.0 works. So, presumably it's fixed, see YunoHost-Apps/2FAuth_ynh#60 (comment) . I will wait until version 5.1.0 is officially available in the YNH package on the master branch and report back then.
Just to give an update about this. I'm still running into this issue for update to 5.1.0, see my comment. However, there is still a PR which supposedly fixes this but it hasn't been merged yet. So, I will wait for it to be merged and report back.
Ok, with the merged PR the upgrade to version 5.1.1 worked. So, I'm closing this.