What type of hardware are you using : Old laptop or computer
What YunoHost version are you running : 12.0.17 (stable)
What app is this about : Outline + Dex
Describe your issue
I updated Dex (Version 2.41.1~ynh2 => 2.43.1~ynh1) then Outline (0.83.0~ynh1 => 0.84.0~ynh2) and now I Dex doesn’t allow me to log in.
I used to be able to click on “Continue with member (password)”, being shown a prompt where I could log in with my Yunohost credentials and being redirected to Outline.
Now when I click on “Continue with member”, there is no login prompt and no redirection, I can briefly see the following URL in the address bar before being redirected back to the login method choice
“https://outline.XXXXXXXXXXXX.net/auth?response_type=code&redirect_uri=https%3A%2F%2Foutline.XXXXXXXXXXXX.net%2Fauth%2Foidc.callback&scope=openid%20profile%20email&state=XXXXXXXXXXXXX&client_id=Outline ”
I am still logged in on another computer and I can still access my documents so I guess the outline update worked (I took the opportunity to export my documents in case I have to reinstall)
I checked Dex logs but nothing seems wrong, there is no errors
I am willing to investigate a bit and help with a fix but I don’t really know where to start.
Share relevant logs or error messages
journalctl
Jun 11 18:37:41 systemd[1]: Stopping dex.service - Dex: OpenID Connect Provider…
Jun 11 18:37:41 systemd[1]: dex.service: Deactivated successfully.
Jun 11 18:37:41 systemd[1]: Stopped dex.service - Dex: OpenID Connect Provider.
Jun 11 18:37:41 systemd[1]: dex.service: Consumed 2.188s CPU time.
Jun 11 18:37:41 systemd[1]: Starting dex.service - Dex: OpenID Connect Provider…
Jun 11 18:37:42 systemd[1]: Started dex.service - Dex: OpenID Connect Provider.
Jun 11 18:37:42 systemd[1]: Stopping dex.service - Dex: OpenID Connect Provider…
Jun 11 18:37:42 systemd[1]: dex.service: Deactivated successfully.
Jun 11 18:37:42 systemd[1]: Stopped dex.service - Dex: OpenID Connect Provider.
Jun 11 18:37:42 systemd[1]: Starting dex.service - Dex: OpenID Connect Provider…
Jun 11 18:37:42 systemd[1]: Started dex.service - Dex: OpenID Connect Provider.
/var/log/dex/dex.log
time=2025-06-11T18:37:41.980+02:00 level=INFO msg=“shutdown now” err=“received signal terminated”
time=2025-06-11T18:37:42.198+02:00 level=INFO msg=“Version info” dex_version=v2.43.1 go.version=go1.24.3 go.os=linux go.arch=amd64
time=2025-06-11T18:37:42.198+02:00 level=INFO msg=“config issuer” issuer=https://auth-outline.XXXXXXXXXX.net/
time=2025-06-11T18:37:42.199+02:00 level=INFO msg=“config storage” storage_type=sqlite3
time=2025-06-11T18:37:42.199+02:00 level=INFO msg=“config static client” client_name=Outline
time=2025-06-11T18:37:42.199+02:00 level=INFO msg=“config static client” client_name=Outline
time=2025-06-11T18:37:42.200+02:00 level=INFO msg=“config connector” connector_id=ldap
time=2025-06-11T18:37:42.200+02:00 level=INFO msg=“config skipping approval screen”
time=2025-06-11T18:37:42.200+02:00 level=INFO msg=“config refresh tokens rotation” enabled=true
time=2025-06-11T18:37:42.204+02:00 level=INFO msg=“listening on” server=http address=127.0.0.1:5556
time=2025-06-11T22:35:12.551+02:00 level=INFO msg=“keys expired, rotating”
time=2025-06-11T22:35:12.754+02:00 level=INFO msg=“keys rotated” next_rotation=2025-06-12T02:35:12.746Z
For anyone finding this topic and experiencing similar issues, I think I found the solution in this closed github issue, I’ll try later but I think it should fix it
opened 10:26AM - 02 Jun 25 UTC
closed 09:14PM - 02 Jun 25 UTC
Hey,
I am running outline on a VPS (4 cores, 8GB ram) managed by yunohost 12.0… .17.
Last week I updated
* dex to v2.42.1~ynh4
* outline to 0.84.0~ynh2
Some problems that I encounter on the way:
* Outline would fail to start with the following error:
`Error: Cannot find module '/var/www/outline/build/server/index.js`
Here is a screenshot:

Note: The folder "outline/build/**server**" was completely missing.
Note: when I took the screenshot outline v0.83 was installed but the log state "outline@0.84.0". I noted this as well on different machines while trying to debug.
* Outline would fail to install with the following error: [Husky](https://typicode.github.io/husky) wouldn't install
`fatal: not a git repository (or any of the parent directories): .git`
Other stuff that I tried:
* I tried installing dex / outline TESTING branches but it didnt help.
* I made sure the node version is 18.20.8 (>= 18) (See here for more details: https://forum.yunohost.org/t/error-502-bad-gateway-outline/34940/11 )
Partial solution:
I got outline running by installing it on a different machine, backing it up and restoring it on the original machine.
Issue without solution:
Now I am left with the following situation:
* Some users are still authorized, do not need to re-authorize (login) and can use outline as last week
* Some users are not authorized anymore, need to reauthorize but only see a redirection loop :(
Here is a small video:
https://github.com/user-attachments/assets/a4bcd5d2-7cad-4cdd-8422-1f1e4a2b177d
Here is the link that outline tries to redirect to / access:
`outline.domain.tld/auth?response_type=code&redirect_uri=https%3A%2F%2Foutline.domain.tld%2Fauth%2Foidc.callback&scope=openid%20profile%20email&state=f3d92e804bfe44c4&client_id=Outline`
This is what the outline log shows:
`{"label":"http","level":"info","message":" --> GET /auth?response_type=code&redirect_uri=https%3A%2F%2Foutline.domain.tld%2Fauth%2Foidc.callback&scope=openid%20profile%20email&state=f3d92e804bfe44c4&client_id=Outline 200 5ms 1.57kb"}`
Dex logs (the timestampt does NOT fit the time when the outline logs show up. So maybe not related, but the best i could find):
`time=2025-06-02T11:27:46.883+02:00 level=ERROR msg="failed to parse authorization request" err="Unregistered redirect_uri (\"\")." request_id=9784e65b-e267-4961-845c-9443669d7f17`
Nginx logs:
`Jun 02 10:35:03 nginx[2398369]: 2025/06/02 10:35:03 [warn] 2398369#2398369: "ssl_stapling" ignored, no OCSP responder URL in the certificate "/etc/yunohost/certs/outline.domain.told/crt.pem"`
The closest similar issue that I could find: https://github.com/outline/outline/discussions/1324
If anybody understands or can point me in the right direction, very much appreciated.
Thank you :)
1 Like
I tried and it worked !
Copying and pasting the solution from the Github issue for completness
DEX
sudoedit /var/www/dex/config.yaml.d/outline
- https://outline.domain.tld/auth/oidc.callback
OUTLINE
sudoedit /var/www/outline/.env
OIDC_AUTH_URI=https://dex.domain.tld/auth
OIDC_TOKEN_URI=https://dex.domain.tld/token
OIDC_USERINFO_URI=https://dex.domain.tld/userinfo
1 Like
system
Closed
June 27, 2025, 5:22pm
4
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.