This category is for general issues(=something is broken) regarding YunoHost, NOT apps.
on
This form is written in English but feel free to write in French if you’re more comfortable!
on
What type of hardware are you using
Raspberry Pi 3, 4+
What YunoHost version are you running
12
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?
Cloudflare tunnel
Describe your issue
I have setup Yunohost behind a cloudflare tunnel successfully (at, let say, “ynh.domain.com”).
I have install and setup app at “app.domain.com” (due to CF free-tier limitations) and can successfully access it (at “app.domain.com”) through the tunnel (ynhst login included)
But app tile doesn’t show on the portal.
I have already check user access right, settings on “show” other domains…
I acknowledge that it can be a Cloudflare Tunnel limitation unrelated to Yunohost.
But how can i at least debug it or show where is the blocking point ?
Thanks in advance!
This is very likely not the tunnel. In YunoHost 12 each domain has its own portal, and the tile list is built server-side from the app permissions — the tunnel only carries the result.
On the main permission of the app, confirm that “show tile” is enabled and that the label isn’t empty:
yunohost user permission info <app>.main
Then check the portal on the host where the app is installed, not only the main portal. If you also want tiles aggregated on the main portal, re-check that host’s “show other domains” (or equivalent) setting and look at the portal-related logs after a refresh.
If you can paste the permission info output and which portal page you are looking at, we can narrow it further.
Thanks for your response.
Permission info below but, yes portal at “app.domain.com” show the app and nothing else (as expected, nb: using “Waste of Space” app for testing)
And yes on the main portal (“ynh.domain.com”) “show other domain” is activated but does not aggregate.
yunohost user permission info wasteofspace.main
Résumé
additional_urls:
allowed: all_users
auth_header: True
corresponding_users: myadmin
label: Waste of Space
protected: False
show_tile: True
url: /
feature.mail.mail_out:
ask: Outgoing emails
value: yes
feature.mail.mail_in:
ask: Incoming emails
value: no
feature.app.default_app:
ask: Default app
value: _none
feature.portal.enable_public_apps_page:
ask: Show the list of public apps to visitors
value: no
feature.portal.show_other_domains_apps:
ask: Show other domain’s apps
value: yes
feature.portal.portal_title:
ask: Custom title
value: YunoHost
feature.portal.portal_logo:
ask: Custom logo
value:
feature.portal.portal_theme:
ask: Default color theme
value: system
feature.portal.portal_tile_theme:
ask: App tiles display theme
value: simple
feature.portal.search_engine:
ask: Search engine URL
value:
feature.portal.search_engine_name:
ask: Search engine name
value:
feature.portal.portal_user_intro:
ask: Custom user intro
value:
feature.portal.portal_public_intro:
ask: Custom public intro
value:
feature.portal.custom_css:
ask: Custom CSS stylesheet
value:
dns.registrar.registrar:
ask: registrar
value: cloudflare
dns.registrar.infos:
ask: YunoHost automatically detected that this domain is handled by the registrar cloudflare. If you want, YunoHost will automatically configure this DNS zone, if you provide it with the appropriate API credentials. You can find documentation on how to obtain your API credentials on this page: https://doc.yunohost.org/admin/get_started/providers/registrar/cloudflare/. (You can also manually configure your DNS records following the documentation at https://doc.yunohost.org/dns_config )
dns.registrar.experimental_disclaimer:
ask: So far, the interface with cloudflare’s API has not been properly tested and reviewed by the YunoHost community. Support is very experimental - be careful!
dns.registrar.use_auto_dns:
ask: Use automatic DNS feature
value: yes
dns.registrar.auth_username:
ask: auth_username
value:
dns.registrar.auth_token:
ask: Authentication token
value:
dns.registrar.zone_id:
ask: zone_id
value:
feature.mail.mail_out:
ask: Outgoing emails
value: yes
feature.mail.mail_in:
ask: Incoming emails
value: no
feature.app.default_app:
ask: Default app
value: _none
feature.portal.enable_public_apps_page:
ask: Show the list of public apps to visitors
value: no
feature.portal.show_other_domains_apps:
ask: Show other domain’s apps
value: no
feature.portal.portal_title:
ask: Custom title
value: YunoHost
feature.portal.portal_logo:
ask: Custom logo
value:
feature.portal.portal_theme:
ask: Default color theme
value: system
feature.portal.portal_tile_theme:
ask: App tiles display theme
value: simple
feature.portal.search_engine:
ask: Search engine URL
value:
feature.portal.search_engine_name:
ask: Search engine name
value:
feature.portal.portal_user_intro:
ask: Custom user intro
value:
feature.portal.portal_public_intro:
ask: Custom public intro
value:
feature.portal.custom_css:
ask: Custom CSS stylesheet
value:
dns.registrar.registrar:
ask: registrar
value: cloudflare
dns.registrar.infos:
ask: YunoHost automatically detected that this domain is handled by the registrar cloudflare. If you want, YunoHost will automatically configure this DNS zone, if you provide it with the appropriate API credentials. You can find documentation on how to obtain your API credentials on this page: https://doc.yunohost.org/admin/get_started/providers/registrar/cloudflare/. (You can also manually configure your DNS records following the documentation at https://doc.yunohost.org/dns_config )
dns.registrar.experimental_disclaimer:
ask: So far, the interface with cloudflare’s API has not been properly tested and reviewed by the YunoHost community. Support is very experimental - be careful!
dns.registrar.use_auto_dns:
ask: Use automatic DNS feature
value: yes
dns.registrar.auth_username:
ask: auth_username
value:
dns.registrar.auth_token:
ask: Authentication token
value:
dns.registrar.zone_id:
ask: zone_id
value:
How can I see “portal-related logs” ?
“journalctl -u yunohost-portal-api” doesn’t seems to show much (only POST /login, GET /me and GET /public without more details)
Is it expected that “user permission info wasteofspace.main” returns “url: /” but “user permission list --full” returns “url: app.domain.com/wos” for the app ?
Thanks,
I’m not fully sure why but aggregation is now working…
It seems to me it is after i enabled “show public application to visitors” but now, even if disabled, main portal update when i install a new app on a new domain…
I will keep poking around. Thanks.
Glad the aggregation started working — that often lines up with a portal refresh after a settings change (including briefly flipping “Show the list of public apps to visitors”), even if you turn that option back off afterward.
On the two leftover questions:
permission info showing url: / while permission list --full shows app.domain.com/wos is expected: info is relative to the app’s own domain; list prints the absolute path.
journalctl -u yunohost-portal-api is mostly request-level (/login, /me, /public). Sparse output there alone does not mean the tile builder failed. For aggregation quirks, the more useful traces are usually around the time you toggle portal options (webadmin/portal side) or the access logs on the portal host.
If tiles keep updating after new apps on other domains, you’re probably set. If aggregation drops again, paste a fresh yunohost user permission list --full right after install and we can compare.
The portal’s app list is generated by YunoHost, so Cloudflare is more likely affecting the portal’s request for that list than the app’s own URL. In the browser, open Developer Tools → Network, reload the portal, and check for failed requests to /yunohost/api/ (status and response body). Also compare the portal when opened through ynh.domain.com and directly on the server’s LAN; that should help separate a YunoHost visibility issue from tunnel routing or hostname handling.
Good call on checking /yunohost/api/ in DevTools and comparing the portal over ynh.domain.com vs LAN — that is the cleanest way to tell a portal/API fetch problem from the app URL itself.
In this thread Merinos already got aggregation working again after a portal-settings refresh (including briefly flipping “Show the list of public apps to visitors”). If the tiles drop again behind the tunnel, that Network + LAN comparison is exactly the next check: look for failed /yunohost/api/ responses on the tunnel path that succeed on LAN.
Yes, aggregation seems to be working again nonetheless :
In DevTools (with my little understanding) I don’t see any failed requests to portalapi and portalapi/me response with all apps (not able to find /yunohost/api/ ). I don’t seems to be able to access portal on lan as i’m redirected to /yunohost/admin/ and portal/apps links in admin panel redirect to “web” urls.
But on DevTools console for app.domain.com portal there is a bunch of same-type Content-Security-Policy errors i don’t have on ynh.domain.com portal : (Politique Report-Only) Les paramètres de la page pourraient empêcher l’exécution d’un script (script-src-elem) à l’adresse https://app.domain.com/[different paths], car il enfreint la directive suivante : « script-src 'unsafe-inline' 'unsafe-eval' »
Related or not, even if aggregation on ynh.domain.com portal seems working and redirect to the app, i have to login again to access app.domain.com app. (like if i had to login to the app portal event if already logged in main portal). But this specific point could be on cloudflare tunnel routing side .