Dagu apps : host "dagu.monsite.xyz" is not allowed

I have searched the forum for similar issues

on

This category is for issues regarding specific apps, NOT general issues with YunoHost.

on

This form is written in English but feel free to write in French if you’re more comfortable!

on

What app is this about, and its version

Dagu 2.25.1~ynh1

What YunoHost version are you running

unoHost 12.1.41.2

What type of hardware are you using

Other(?)

Describe your issue

The topic is about DAGU admin configuration. The screen just after Dagu installation. I put the admin name , password and confirm password. When I click on the button “create account”, this message appear : “host “dagu.monsite.xyz” is not allowed; add it to allowed_hosts or set public_url”. Thanks for your help.

Share relevant logs or error messages

host “dagu.monsite.xyz” is not allowed; add it to allowed_hosts or set public_url

@arnohgf
Try this

sudo nano /var/www/dagu/.env
# add this line :
DAGU_PUBLIC_URL=https://your-dagu-domain.tld
sudo systemctl restart dagu

You can also try upgrading from the testing branch

yunohost app upgrade dagu -u https://github.com/YunoHost-Apps/dagu_ynh/tree/testing

Thanks ! I can register and move to the next step… but on the next step (login screen), i am in a loop. , I put username/password and I come back to the same screen with empty fields.

Do you mean when accessing /login ? That’s weird because, normally, after registering, you should be logged in…

Did you clear cookies or try in a private tab ?

Yes, I move directly on login screen after registered the user.

I am in a loop. I fill in the blank fields in login screen , click on button “sign-in” and the login screen come back, and so on, and so on , …

I try clear cookies and all history informations without effect. I try private tab, other brother, other pc without effect.

Can you share the dagu service log and the errors displayed in the browser console?

there are no errors displayed on the login screen

:person_shrugging: I would try reinstalling from scratch…

yunohost app install https://github.com/YunoHost-Apps/dagu_ynh/tree/testing

I got /api forbidden in the browser console

I have successfully logged in using this branch GitHub - YunoHost-Apps/dagu_ynh at api · GitHub
I have launched ci test

no change with testing version.

But In nginx access log, I see some 401 errors :

X.X.X.XX.XX - arno [07/Nov/2026:23:13:15 +0100] “GET /api/v1/workspaces?remoteNode=local HTTP/2.0” 401 0 “https://dagu.monsite.xyz/” “Mozilla/5.0 (X11; Linux x86_64; rv:159.0) Gecko/20100101 Firefox/159.0”
X.X.X.XX.XX - arno [07/Nov/2026:23:13:15 +0100] “GET /api/v1/auth/me HTTP/2.0” 401 0 “https://dagu.monsite.xyz/login” “Mozilla/5.0 (X11; Linux x86_64; rv:159.0) Gecko/20100101 Firefox/159.0”
X.X.X.XX.XX - arno [07/Nov/2026:23:13:15 +0100] “GET /api/v1/license/status?remoteNode=local HTTP/2.0” 401 0 “https://dagu.monsite.xyz/” “Mozilla/5.0 (X11; Linux x86_64; rv:159.0) Gecko/20100101 Firefox/159.0”
X.X.X.XX.XX - arno [07/Nov/2026:23:13:15 +0100] “GET /api/v1/remote-nodes?remoteNode=local HTTP/2.0” 401 0 “https://dagu.monsite.xyz/” “Mozilla/5.0 (X11; Linux x86_64; rv:159.0) Gecko/20100101 Firefox/159.0”

Really strange.
I have installed dagu from testing with no issue on both bookworm and trixie, local & fqdn domain.
I can log in, use api, create workflow, change password.
What other features have you tested to get this error and what am I missing ?

Some features require a paid license.

I 've just tried to login. Cleared cookies, opened login page > login loop to login page with console errors

Which version are you using : from the api branch you created, yesterday’s testing branch o today’s testing/master ?
The thing is that there seems to be a temporary issue with GH at the moment and I’m unable to install any app.
All I can say is that I ran all my tests on servers using either public ipv6 or local ipv4. When I installed dagu on a server with a public ipv4, I ran into the same 401 errors. But I removed the app and can no longer test :man_shrugging:

Installed v2.26 on a server with a public ipv4 (without permissions specs on /api) and now dagu works as expected (no longer errors 401)…:person_shrugging:

Yesterday, I deleted Dagu on Yunohost admin panel and after I installed it with the command line suggested :

“yunohost app install https:// GitHub - YunoHost-Apps/dagu_ynh at testing · GitHub”