[GH-ISSUE #3735] Login screen fails to load after fresh install #1890

Closed
opened 2026-02-27 11:19:44 +03:00 by kerem · 9 comments
Owner

Originally created by @Benchamoneh on GitHub (Sep 24, 2025).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3735

Impacted versions

  • OS Type: Ubuntu Server

  • OS Version: 24.04.3 LTS

  • Database Type: PostgreSQL

  • Database version: default used by installer as of 24/09/2025

  • Modoboa: 2.6.0

  • installer used: Yes

  • Webserver: Nginx

Steps to reproduce

Install Modoboa in newly created Linux container:

apt update
apt dist-upgrade -y
apt install git python3 python-is-python3 python3-pip -y
git clone https://github.com/modoboa/modoboa-installer
cd modoboa-installer
./run.py mydomain.co

Current behavior

Once installation is complete and I browse to mail.mydomain.co I see "Attempting to log you in" message. Browser debugging shows internal server error (500) when trying to call openid-configuration resource from the server

Expected behavior

Login prompt to be shown

Video/Screenshot link (optional)

Originally created by @Benchamoneh on GitHub (Sep 24, 2025). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3735 # Impacted versions * OS Type: Ubuntu Server * OS Version: 24.04.3 LTS * Database Type: PostgreSQL * Database version: default used by installer as of 24/09/2025 * Modoboa: 2.6.0 * installer used: Yes * Webserver: Nginx # Steps to reproduce Install Modoboa in newly created Linux container: ``` apt update apt dist-upgrade -y apt install git python3 python-is-python3 python3-pip -y git clone https://github.com/modoboa/modoboa-installer cd modoboa-installer ./run.py mydomain.co ``` # Current behavior Once installation is complete and I browse to `mail.mydomain.co` I see "Attempting to log you in" message. Browser debugging shows internal server error (500) when trying to call `openid-configuration` resource from the server # Expected behavior Login prompt to be shown # Video/Screenshot link (optional)
kerem 2026-02-27 11:19:44 +03:00
Author
Owner

@tonioo commented on GitHub (Sep 24, 2025):

@Benchamoneh What kind of certificate do you use?
Have you enabled DEBUG mode?

<!-- gh-comment-id:3329316558 --> @tonioo commented on GitHub (Sep 24, 2025): @Benchamoneh What kind of certificate do you use? Have you enabled DEBUG mode?
Author
Owner

@Benchamoneh commented on GitHub (Sep 24, 2025):

self-signed for this test. I have DEBUG set to True in settings.py

<!-- gh-comment-id:3329460369 --> @Benchamoneh commented on GitHub (Sep 24, 2025): self-signed for this test. I have DEBUG set to True in settings.py
Author
Owner

@tonioo commented on GitHub (Sep 25, 2025):

Ok, then it might be caused by the self-signed certificate. Can you try with a regular one?
And do you see anything interesting in the response you get for openid-configuration call ?

<!-- gh-comment-id:3332390333 --> @tonioo commented on GitHub (Sep 25, 2025): Ok, then it might be caused by the self-signed certificate. Can you try with a regular one? And do you see anything interesting in the response you get for openid-configuration call ?
Author
Owner

@Benchamoneh commented on GitHub (Oct 3, 2025):

Tried again today with Let'sEncrypt. Browser console output below:

(index):6  <link rel=preload> has an unsupported `type` value
index-YIGRKgNA.js:39   GET https://mail.mydomain.com/api/o/.well-known/openid-configuration net::ERR_ABORTED 500 (Internal Server Error)
fetchWithTimeout @ index-YIGRKgNA.js:39
getJson @ index-YIGRKgNA.js:39
getMetadata @ index-YIGRKgNA.js:39
_getMetadataProperty @ index-YIGRKgNA.js:39
getAuthorizationEndpoint @ index-YIGRKgNA.js:39
createSigninRequest @ index-YIGRKgNA.js:39
_signinStart @ index-YIGRKgNA.js:39
signinRedirect @ index-YIGRKgNA.js:39
await in signinRedirect
v @ index-YIGRKgNA.js:39
P @ index-YIGRKgNA.js:34
(anonymous) @ LoginView-sWEH834U.js:1
(anonymous) @ index-YIGRKgNA.js:14
Or @ index-YIGRKgNA.js:14
ui @ index-YIGRKgNA.js:14
e.__weh.e.__weh @ index-YIGRKgNA.js:14
lp @ index-YIGRKgNA.js:14
cp @ index-YIGRKgNA.js:14
Promise.then
op @ index-YIGRKgNA.js:14
Zl @ index-YIGRKgNA.js:14
P0 @ index-YIGRKgNA.js:14
Co.o.scheduler @ index-YIGRKgNA.js:14
Iy.u.scheduler @ index-YIGRKgNA.js:10
trigger @ index-YIGRKgNA.js:10
bu @ index-YIGRKgNA.js:10
notify @ index-YIGRKgNA.js:10
trigger @ index-YIGRKgNA.js:10
set value @ index-YIGRKgNA.js:10
E @ index-YIGRKgNA.js:30
(anonymous) @ index-YIGRKgNA.js:30
Promise.then
w @ index-YIGRKgNA.js:30
(anonymous) @ index-YIGRKgNA.js:30
Promise.then
w @ index-YIGRKgNA.js:30
w @ index-YIGRKgNA.js:30
k @ index-YIGRKgNA.js:30
install @ index-YIGRKgNA.js:30
use @ index-YIGRKgNA.js:14
i_ @ index-YIGRKgNA.js:982
(anonymous) @ index-YIGRKgNA.js:982
Promise.then
(anonymous) @ index-YIGRKgNA.js:982
Promise.then
(anonymous) @ index-YIGRKgNA.js:982
index-YIGRKgNA.js:39  Error logging in: Error: Invalid response Content-Type: text/plain, from URL: https://mail.mydomain.com/api/o/.well-known/openid-configuration
    at Ku.getJson (index-YIGRKgNA.js:39:183387)
    at async zC.getMetadata (index-YIGRKgNA.js:39:186486)
    at async zC._getMetadataProperty (index-YIGRKgNA.js:39:187485)
    at async JC.createSigninRequest (index-YIGRKgNA.js:39:207111)
    at async dP._signinStart (index-YIGRKgNA.js:39:231995)
    at async dP.signinRedirect (index-YIGRKgNA.js:39:226909)
    at async Proxy.v (index-YIGRKgNA.js:39:241722)
v @ index-YIGRKgNA.js:39
await in v
P @ index-YIGRKgNA.js:34
(anonymous) @ LoginView-sWEH834U.js:1
(anonymous) @ index-YIGRKgNA.js:14
Or @ index-YIGRKgNA.js:14
ui @ index-YIGRKgNA.js:14
e.__weh.e.__weh @ index-YIGRKgNA.js:14
lp @ index-YIGRKgNA.js:14
cp @ index-YIGRKgNA.js:14
Promise.then
op @ index-YIGRKgNA.js:14
Zl @ index-YIGRKgNA.js:14
P0 @ index-YIGRKgNA.js:14
Co.o.scheduler @ index-YIGRKgNA.js:14
Iy.u.scheduler @ index-YIGRKgNA.js:10
trigger @ index-YIGRKgNA.js:10
bu @ index-YIGRKgNA.js:10
notify @ index-YIGRKgNA.js:10
trigger @ index-YIGRKgNA.js:10
set value @ index-YIGRKgNA.js:10
E @ index-YIGRKgNA.js:30
(anonymous) @ index-YIGRKgNA.js:30
Promise.then
w @ index-YIGRKgNA.js:30
(anonymous) @ index-YIGRKgNA.js:30
Promise.then
w @ index-YIGRKgNA.js:30
w @ index-YIGRKgNA.js:30
k @ index-YIGRKgNA.js:30
install @ index-YIGRKgNA.js:30
use @ index-YIGRKgNA.js:14
i_ @ index-YIGRKgNA.js:982
(anonymous) @ index-YIGRKgNA.js:982
Promise.then
(anonymous) @ index-YIGRKgNA.js:982
Promise.then
(anonymous) @ index-YIGRKgNA.js:982
/login:1  The resource https://mail.mydomain.com/assets/materialdesignicons-webfont-Dp5v-WZN.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
/login:1  The resource https://mail.mydomain.com/assets/materialdesignicons-webfont-B7mPwVP_.ttf was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
/login:1  The resource https://mail.mydomain.com/assets/materialdesignicons-webfont-PXm3-2wK.woff was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

<!-- gh-comment-id:3364956397 --> @Benchamoneh commented on GitHub (Oct 3, 2025): Tried again today with Let'sEncrypt. Browser console output below: ``` (index):6 <link rel=preload> has an unsupported `type` value index-YIGRKgNA.js:39 GET https://mail.mydomain.com/api/o/.well-known/openid-configuration net::ERR_ABORTED 500 (Internal Server Error) fetchWithTimeout @ index-YIGRKgNA.js:39 getJson @ index-YIGRKgNA.js:39 getMetadata @ index-YIGRKgNA.js:39 _getMetadataProperty @ index-YIGRKgNA.js:39 getAuthorizationEndpoint @ index-YIGRKgNA.js:39 createSigninRequest @ index-YIGRKgNA.js:39 _signinStart @ index-YIGRKgNA.js:39 signinRedirect @ index-YIGRKgNA.js:39 await in signinRedirect v @ index-YIGRKgNA.js:39 P @ index-YIGRKgNA.js:34 (anonymous) @ LoginView-sWEH834U.js:1 (anonymous) @ index-YIGRKgNA.js:14 Or @ index-YIGRKgNA.js:14 ui @ index-YIGRKgNA.js:14 e.__weh.e.__weh @ index-YIGRKgNA.js:14 lp @ index-YIGRKgNA.js:14 cp @ index-YIGRKgNA.js:14 Promise.then op @ index-YIGRKgNA.js:14 Zl @ index-YIGRKgNA.js:14 P0 @ index-YIGRKgNA.js:14 Co.o.scheduler @ index-YIGRKgNA.js:14 Iy.u.scheduler @ index-YIGRKgNA.js:10 trigger @ index-YIGRKgNA.js:10 bu @ index-YIGRKgNA.js:10 notify @ index-YIGRKgNA.js:10 trigger @ index-YIGRKgNA.js:10 set value @ index-YIGRKgNA.js:10 E @ index-YIGRKgNA.js:30 (anonymous) @ index-YIGRKgNA.js:30 Promise.then w @ index-YIGRKgNA.js:30 (anonymous) @ index-YIGRKgNA.js:30 Promise.then w @ index-YIGRKgNA.js:30 w @ index-YIGRKgNA.js:30 k @ index-YIGRKgNA.js:30 install @ index-YIGRKgNA.js:30 use @ index-YIGRKgNA.js:14 i_ @ index-YIGRKgNA.js:982 (anonymous) @ index-YIGRKgNA.js:982 Promise.then (anonymous) @ index-YIGRKgNA.js:982 Promise.then (anonymous) @ index-YIGRKgNA.js:982 index-YIGRKgNA.js:39 Error logging in: Error: Invalid response Content-Type: text/plain, from URL: https://mail.mydomain.com/api/o/.well-known/openid-configuration at Ku.getJson (index-YIGRKgNA.js:39:183387) at async zC.getMetadata (index-YIGRKgNA.js:39:186486) at async zC._getMetadataProperty (index-YIGRKgNA.js:39:187485) at async JC.createSigninRequest (index-YIGRKgNA.js:39:207111) at async dP._signinStart (index-YIGRKgNA.js:39:231995) at async dP.signinRedirect (index-YIGRKgNA.js:39:226909) at async Proxy.v (index-YIGRKgNA.js:39:241722) v @ index-YIGRKgNA.js:39 await in v P @ index-YIGRKgNA.js:34 (anonymous) @ LoginView-sWEH834U.js:1 (anonymous) @ index-YIGRKgNA.js:14 Or @ index-YIGRKgNA.js:14 ui @ index-YIGRKgNA.js:14 e.__weh.e.__weh @ index-YIGRKgNA.js:14 lp @ index-YIGRKgNA.js:14 cp @ index-YIGRKgNA.js:14 Promise.then op @ index-YIGRKgNA.js:14 Zl @ index-YIGRKgNA.js:14 P0 @ index-YIGRKgNA.js:14 Co.o.scheduler @ index-YIGRKgNA.js:14 Iy.u.scheduler @ index-YIGRKgNA.js:10 trigger @ index-YIGRKgNA.js:10 bu @ index-YIGRKgNA.js:10 notify @ index-YIGRKgNA.js:10 trigger @ index-YIGRKgNA.js:10 set value @ index-YIGRKgNA.js:10 E @ index-YIGRKgNA.js:30 (anonymous) @ index-YIGRKgNA.js:30 Promise.then w @ index-YIGRKgNA.js:30 (anonymous) @ index-YIGRKgNA.js:30 Promise.then w @ index-YIGRKgNA.js:30 w @ index-YIGRKgNA.js:30 k @ index-YIGRKgNA.js:30 install @ index-YIGRKgNA.js:30 use @ index-YIGRKgNA.js:14 i_ @ index-YIGRKgNA.js:982 (anonymous) @ index-YIGRKgNA.js:982 Promise.then (anonymous) @ index-YIGRKgNA.js:982 Promise.then (anonymous) @ index-YIGRKgNA.js:982 /login:1 The resource https://mail.mydomain.com/assets/materialdesignicons-webfont-Dp5v-WZN.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. /login:1 The resource https://mail.mydomain.com/assets/materialdesignicons-webfont-B7mPwVP_.ttf was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. /login:1 The resource https://mail.mydomain.com/assets/materialdesignicons-webfont-PXm3-2wK.woff was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. ```
Author
Owner

@tonioo commented on GitHub (Oct 10, 2025):

@Benchamoneh Could you take a look at the response sent with the failing request? (with debug enabled)

<!-- gh-comment-id:3388857428 --> @tonioo commented on GitHub (Oct 10, 2025): @Benchamoneh Could you take a look at the response sent with the failing request? (with debug enabled)
Author
Owner

@linuxmaster commented on GitHub (Oct 28, 2025):

I have same symptoms while updating to modoboa 2.3.3. Blank logon screen and these errors in browser log:

mail.domain.ru/:6 <link rel=preload> has an unsupported `type` value
index-Boy7RURc.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-B7mPwVP_.ttf was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-Dp5v-WZN.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-PXm3-2wK.woff was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally..
<!-- gh-comment-id:3458194504 --> @linuxmaster commented on GitHub (Oct 28, 2025): I have same symptoms while updating to modoboa 2.3.3. Blank logon screen and these errors in browser log: ``` mail.domain.ru/:6 <link rel=preload> has an unsupported `type` value index-Boy7RURc.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec. mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-B7mPwVP_.ttf was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-Dp5v-WZN.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-PXm3-2wK.woff was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.. ```
Author
Owner

@Spitfireap commented on GitHub (Oct 31, 2025):

I have same symptoms while updating to modoboa 2.3.3. Blank logon screen and these errors in browser log:

mail.domain.ru/:6 <link rel=preload> has an unsupported `type` value
index-Boy7RURc.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-B7mPwVP_.ttf was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-Dp5v-WZN.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-PXm3-2wK.woff was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally..

This isn't helpful, please set DEBUG to True (/srv/modoboa/instance/instance/settings.py), restart uwsgi (systemctl restart uwsgi) and reload the page with the browser console opened and check the response of the one request that generated an error. For firefox :

Image
<!-- gh-comment-id:3475043268 --> @Spitfireap commented on GitHub (Oct 31, 2025): > I have same symptoms while updating to modoboa 2.3.3. Blank logon screen and these errors in browser log: > > ``` > mail.domain.ru/:6 <link rel=preload> has an unsupported `type` value > index-Boy7RURc.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec. > mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-B7mPwVP_.ttf was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. > mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-Dp5v-WZN.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. > mail.domain.ru/:1 The resource https://mail.domain.ru/new-admin/assets/materialdesignicons-webfont-PXm3-2wK.woff was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.. > ``` This isn't helpful, please set DEBUG to True (/srv/modoboa/instance/instance/settings.py), restart uwsgi (systemctl restart uwsgi) and reload the page with the browser console opened and check the response of the one request that generated an error. For firefox : <img width="1920" height="616" alt="Image" src="https://github.com/user-attachments/assets/8aff8642-c530-4606-8c16-28ceccfec10a" />
Author
Owner

@Kuzya-2023 commented on GitHub (Nov 5, 2025):

console-export-2025-11-5_22-37-22.log

Image

<!-- gh-comment-id:3493303441 --> @Kuzya-2023 commented on GitHub (Nov 5, 2025): [console-export-2025-11-5_22-37-22.log](https://github.com/user-attachments/files/23374894/console-export-2025-11-5_22-37-22.log) ![Image](https://github.com/user-attachments/assets/0d19d5ee-3923-4df3-9290-ec1e10cfa421)
Author
Owner

@tonioo commented on GitHub (Nov 13, 2025):

@Kuzya-2023 can you check Network tab instead? There should be a failing request -> we need response content

<!-- gh-comment-id:3528082849 --> @tonioo commented on GitHub (Nov 13, 2025): @Kuzya-2023 can you check Network tab instead? There should be a failing request -> we need response content
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1890
No description provided.