This category is for general issues 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
Old laptop or computer
What YunoHost version are you running
11.2.31 (stable)
How are you able to access your server
The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?
In this context - no, I do not
Describe your issue
Hello.
I want to selfhost some apps using local domains feature. I used this in the past once (about a month ago) and then it worked - I installed Piped locally and I could use this, but as we know - Youtube killed almost all alt. frontends, so I removed the app.
I want to host Forgejo locally so I created domain forge.local and I installed Forgejo there. I had an one issue during the install, because the Yunohost server couldn’t resolve forge.local but I fixed this adding 127.0.0.1 forge.local to /etc/hosts file. Forgejo is installed now.
But I cannot access it.
When I am trying to open forgejo.local I see Unfortunately, this page could not be found. When I am trying to curl it in Terminal I see
[cichy1173@starbook ~]$ curl forge.local
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
The same error is while curling on the server. I haven’t added any additional changes since last month, only to main, external domain, but nothing new locally - I can access the yunohost admin panel using address http://<local_yh_server_ip.
Oct 27 17:47:01 [REDACTED] systemd[1]: Started YunoHost mDNS service.
Oct 27 17:47:03 [REDACTED] yunomdns[28869]: Adding yunohost.local with addresses ['192.168.1.110'] on interface enp3s0
Oct 27 17:47:03 [REDACTED] yunomdns[28869]: Adding forge.local with addresses ['192.168.1.110'] on interface enp3s0
Oct 27 17:47:03 [REDACTED] yunomdns[28869]: Adding homebox.local with addresses ['192.168.1.110'] on interface enp3s0
Oct 27 17:47:03 [REDACTED] yunomdns[28869]: Adding piped.local with addresses ['192.168.1.110'] on interface enp3s0
Oct 27 17:47:03 [REDACTED] yunomdns[28869]: Registering...
Oct 27 17:47:05 [REDACTED] yunomdns[28869]: Registered. Press Ctrl+C or stop service to stop.
Unfortunately, this page could not be found
Failed to connect to the server at the address “forge.local”.
If this is the correct address, you can:
Try again later
Check your Internet connection
Make sure Firefox can connect to the Internet (your firewall may be blocking it)
Indeed, it should work without it, but mDNS can be tricky.
Can you make sure that the Avahi service (I think it’s called avahi-daemon) is enabled and running on Fedora? It’s responsible for resolving .local domains.
As for your smartphone, what’s its OS and version? Some may not be compatible.
Nothing Phone (1) with Android 14. When I had piped installed locally I could access it using smartphone. Private DNS is switched off, I use Adguard Home in my network (hosted on another device) and I’ve got Adguard Home set as DNS server in the router settings.
With the command line, can you run avahi-browse -a to see if your server is detected?
If it is not detected by avahi-browse, then I can only suggest you use .internal domains and set their records with Adguard Home instead of the .local domains.
Naïvely, can you close your browser and reopen it?
In my case, when I create a new .local domain, I need to reload the page twice in Firefox for it to load properly too.
If that’s still not working, I cannot help you further sorry.