[04:01:09]
<ynhuser> hello, has anyone had a issue post-installation where they try registering a domain name through yunohost, and it says every single domain is unavailable?
[04:01:37]
<ynhuser> I've been trying to register domain names, even completely unique random sequences of numbers and letters and it says theyre all unavailable
[04:46:32]
<zek> Ищу работу
[08:18:36]
<lejocelyn[m]> merci titus[m] pour avoir posté mon message sur github
[08:19:36]
<tituspijean> > <@lejocelyn[m]:libera.chat> any doc on this?
IIRC it has been discussed several times on the forum
[08:21:01]
<lejocelyn[m]> ok, I'll check
[08:23:25]
<tituspijean> in a nutshell, create the containers and reverse-proxy them with a Redirect app in private or public proxy mode.
[10:34:45]
<petitpouyo> Je me permet de me joindre à vous car je n'arrive pas a installer peertube sur mon yuno
[10:35:01]
<petitpouyo> voici une copie de mon journal:
[10:35:25]
<petitpouyo> https://paste.yunohost.org/raw/exoqazeqaq
[10:53:18]
<tituspijean> `/var/www/peertube` existe déjà. As-tu déjà tenté une installation? Ou est-ce une vieille installation? Si oui, et qu'il n'y a rien d'important dedans, retente après avoir fait `sudo rm -rf /var/www/peertube`
[10:53:22]
<tituspijean> petitpouyo^
[18:04:27]
<grayhead> First: THANK YOU! ❤️
Yunohost is an awesome project making self hosting fun simply. 😊
Second: I have a question (of course 😄). Any time I reboot my raspberry pie I have to switch on UPnP in the firewall settings again.
As I use it to allow Yunohost to report the ports to use on its own to my router, this is a little annoying, as until I remember to switch it on again, no port wil be open for yunohost on my router.
I could configure this manually, but this is not the sence of this setting, isn't it?
How do I let yunowhost remember that UPnP should stay switched on?
[18:09:54]
<Aleks (he/him/il/lui)> eeeeeeh
[18:10:02]
<Aleks (he/him/il/lui)> you mean UPnP sort of works out of the box for you o_O
[18:10:54]
<Aleks (he/him/il/lui)> UPnP support is kind a ghost feature that has sort of fallen into oblivion (even though it's still somewhat displayed in the webadmin) because it's not easy to test at all and i don't even know what kind of fraction of nowadays routers support UPnP$
[18:28:06]
<grayhead> Yes. It works out of the box for me. When I reboot, all ports are locked and no reaction on any domain routet to my yunohost raspi. As soon as I switch on UPnP yunohost gets the ports and my domains (on that raspi) answer again.
[18:28:26]
<grayhead> Of course you need a router, that supports UPnP (Fritzbox in my case)
[18:29:58]
<grayhead> My only problem is, that it is always switched off after booting.
[18:32:03]
<Aleks (he/him/il/lui)> hmyeah the current implementation is kinda catastrophic, because UPnP fails once, it is disabled forever
[18:32:19]
<Aleks (he/him/il/lui)> so i'm suspecting somehow on reboot it tries to configure, fails, and then disable itself forever
[18:32:23]
<Aleks (he/him/il/lui)> let me see if i can find a trick
[18:35:48]
<grayhead> Ah. This might be of course. Maybe have a sleep after booting before activating it.. T
[18:36:20]
<grayhead> Maybe I simply add a cronjob? There was a command line for that..
[18:36:36]
<grayhead> yunohost upnp enabled
or something..
[18:36:40]
<Aleks (he/him/il/lui)> I think you could maybe just create a cron eg `/etc/cron.d/upnp-refresh` with this content: `*/50 * * * * root /usr/bin/yunohost firewall upnp status >>/dev/null`
[18:37:08]
<Aleks (he/him/il/lui)> (note that "yunohost firewall upnp status" in fact refresh the UPnP stuff if needed)
[18:38:00]
<Aleks (he/him/il/lui)> ah there's also an "enabled" flag in /etc/yunohost/firewall.yml zblerg
[18:38:16]
<grayhead> I'll try that. But that is not after booting, right? It is xx:50 if I remember cron correctly?
[18:38:29]
<Aleks (he/him/il/lui)> ah indeed
[18:38:41]
<Aleks (he/him/il/lui)> */50 means every 50 minutes which is a bit weird
[18:38:49]
<Aleks (he/him/il/lui)> but maybe every 50 minutes is too much
[18:39:01]
<Aleks (he/him/il/lui)> maybe `*/50 * * * *` can be replaced with `@reboot`
[18:39:25]
<Aleks (he/him/il/lui)> so instead I think I would run:
[18:39:33]
<Aleks (he/him/il/lui)> `@reboot /usr/bin/yunohost firewall upnp enable`
[18:39:45]
<grayhead> Ah.. Do we have that trigger? 😵
[18:39:49]
<Aleks (he/him/il/lui)> (or by run i mean have this line in the `/etc/cron.d/upnp-refresh`)
[18:40:18]
<Aleks (he/him/il/lui)> yeah cf https://phoenixnap.com/kb/crontab-reboot for example
[18:40:26]
<grayhead> maybe "sleep 1000; frirewall upnp enable" in order to have it all set up?
[18:40:34]
<Aleks (he/him/il/lui)> yeah indeed
[18:41:06]
<Aleks (he/him/il/lui)> sleep 1000 might be too much, that's like 20 minutes ;)
[18:41:50]
<grayhead> Ah.. Wasn't it sleep ms? I'll check, it was written untested completely. :D
[18:41:54]
<Aleks (he/him/il/lui)> nah these are seconds
[18:42:10]
<grayhead> Thanks für your input! I think I know now what to do. :)
[18:42:14]
<grayhead> Ah seconds.. Okay.. :D
[18:43:23]
<Aleks (he/him/il/lui)> it's actually pretty epic that it works for you
[18:43:39]
<Aleks (he/him/il/lui)> i seem to recall that many people using fritzbox had issues configuring port forwarding
[18:43:59]
<Aleks (he/him/il/lui)> so if UPnP does work out of the box and we "just" need this cron job trick that would be pretty epic
[18:44:39]
<Aleks (he/him/il/lui)> makes me want to refactor the whole thing to have a proper "UPnP enabled" setting in the webadmin
[18:47:13]
<grayhead> Yes! As I said: In my case it really simply worked out of the box. I configured not a single port forwarding (to yunohost at least), but everythings works like a charm as soon as I enable UPnP. :)
[18:48:10]
<grayhead> You had
<timing> root command
first. Do I need to add the username behind @reboot?
[18:48:22]
<Aleks (he/him/il/lui)> ah yes
[18:48:30]
<Aleks (he/him/il/lui)> uuuh
[18:48:34]
<Aleks (he/him/il/lui)> oor apparently not
[18:48:34]
<grayhead> okay. :)
[18:48:42]
<Aleks (he/him/il/lui)> not in `/etc/cron.d` stuff
[18:48:54]
<Aleks (he/him/il/lui)> those are implicitly run as root apparently
[18:48:58]
<grayhead> ah! ok. :)
[18:49:02]
<Aleks (he/him/il/lui)> ugh or is it
[18:49:06]
<Aleks (he/him/il/lui)> i'm confused @_@
[18:49:14]
<grayhead> :D
[18:49:26]
<Aleks (he/him/il/lui)> ah my bad it is required
[18:49:38]
<Aleks (he/him/il/lui)> `/etc/cron.d` has the syntax `<timing> <user> <command>`
[18:49:51]
<Aleks (he/him/il/lui)> but if you edit with `crontab -e` the syntax is only `<timing> <command>`
[18:50:07]
<grayhead> Looks okay?
[18:50:07]
<grayhead> Okay, so I have now a new command in /etc/cron.d/
@reboot root sleep 5;/usr/bin/yunohost firewall upnp enable >>/dev/null
[18:51:15]
<Aleks (he/him/il/lui)> more like `sleep 5 && /usr/bin/...` i think
[18:51:16]
<grayhead> > <@Alekswag:matrix.org> but if you edit with `crontab -e` the syntax is only `<timing> <command>`
Ah okay. For that I never used the username yet. But I never noticed that I can add it below etc.. That's cool stuff, too :)
[18:51:16]
<Aleks (he/him/il/lui)> not super confident about the `;` though that may work too
[18:52:15]
<grayhead> > <@Alekswag:matrix.org> not super confident about the `;` though that may work too
Hmm I did test it on the commad line with ; and it worked..
So it should work from cron too, shouldn't it?
[18:52:32]
<Aleks (he/him/il/lui)> eeeeeeeeh
[18:53:04]
<grayhead> Well.. I save and restart.. Let's test!
wait.. eeeeeh?
[18:53:04]
<Aleks (he/him/il/lui)> there are some subtleties because cron jobs are usually run with `/bin/sh` by default and not bash ;P
[18:53:05]
<Aleks (he/him/il/lui)> so i'm paranoid about the syntax
[18:53:12]
<Aleks (he/him/il/lui)> lost a few hours because some stuff are not supported in sh but they are supported in bash
[18:53:24]
<Aleks (he/him/il/lui)> but maybe `;` is fine ;)
[18:54:20]
<grayhead> Tested:
/bin/sh: 0: cannot open sleep 10;/usr/bin/yunohost firewall upnp enable: No such file
root@home:/home/admin# /bin/sh
# sleep 10;/usr/bin/yunohost firewall upnp enable
enabled: True
#
[18:54:21]
<grayhead> Works too.
[18:54:32]
<grayhead> umhh
[18:54:37]
<grayhead> markdown in element? ^^
[18:54:49]
<Aleks (he/him/il/lui)> yup
[18:55:01]
<Aleks (he/him/il/lui)> hmm can you share the exact full line you wrote in the cron job ? 😬
[18:55:29]
<grayhead> Yes. But let me try first if that works. :)
[18:57:10]
<grayhead> COOOL!
[18:57:18]
<grayhead> It is on after rebooting! :D
[18:58:43]
<grayhead> /etc/cron.d/upnp-refresh
@reboot root sleep 5;/usr/bin/yunohost firewall upnp enable >>/dev/null
[18:59:47]
<grayhead> I think 5s should be enough for everything settled. If we want it mor comfortable, read the output and redo 1s later until output is okay. :)
[19:01:28]
<grayhead> Thanks for your support! 💙