Thursday, September 28, 2023
support@conference.yunohost.org
September
Mon Tue Wed Thu Fri Sat Sun
        1
2
3
4
5
6
7
8
9
10
11
12
13 14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
             

[09:21:07] <bigl ⚡> Hello
[09:21:11] <bigl ⚡> Hey I made it
[09:21:22] <bigl ⚡> It said I had an incompatible room
[09:21:32] <bigl ⚡> Basically I got my conduit to work
[09:21:41] <bigl ⚡> But I wanna use Yunohost still.
[09:21:54] <tituspijean> The "freenode" room is not used anymore, so it does not use the correct matrix room version. Welcome.
[09:22:27] <bigl ⚡> I'm very glad it works here for me
[09:22:32] <bigl ⚡> I'm proud of my server boys
[09:24:10] <bigl ⚡> Titus could you possibly release the host I posted in forums last night?
[09:27:01] <bigl ⚡> And this 3828d98d61893465.nohost.me
[09:36:01] <tituspijean> By the way, if you tend to reset it often, let's try something different.

1. install yunohost
2. register the domain
3. perform and download a full system backup, it contains the registration key for the domain.

if you need to reset again, reinstall the server without doing the postinstallation, reupload the backup and restore it. Your domain will be directly restored.
[09:46:12] <orhtej2> > <@titus:pijean.ovh> this is not the one you mentioned last night. please post on the forum again.
> By the way, if you tend to reset it often, let's try something different.
> 1. install yunohost
> 2. register the domain
> 3. perform and download a full system backup, it contains the registration key for the domain.
>
> if you need to reset again, reinstall the server without doing the postinstallation, reupload the backup and restore it. Your domain will be directly restored.

I can confirm this procedure transferred my installation to new host no problem
[11:19:08] <Charles P.> Hey,

Je prévois d'installer Yunohost sur un petit VPS Hetzner, sauf que niveau stockage c'est vraiment minuscule. J'ai aussi jeté un œil du côté des Storage Box qui permettent d'avoir un To pour à peine quatre euros. 


Le soucis c'est qu'on ne peux pas les monter directement sur une instance Cloud (et en block storage le même teraoctet coûte 55€ donc non) et je me demandais si ça serait utilisable de les monter via FTP ou WebDAV. 


C'est théoriquement possible, mais est-ce que ça serait viable pour une installation permanente ? Qu'en pensez-vous ?
[11:22:59] <Tag> Je pense que ça va pas très très bien fonctionner. FTP et Webdav c'est pas des protocols fait pour ça du tout
[11:23:24] <tituspijean> https://docs.hetzner.com/robot/storage-box/

Tu peux y accéder en SSH/SFTP, donc tu peux les monter avec SSHFS
[11:23:44] <Tag> Oui là pourquoi pas
[11:25:59] <Charles P.> Oh, je vais regarder ça, merci :)
[11:26:38] <Aleks (he/him/il/lui)> (après pareil, sur le papier ça marche, mais SSHFS comme système de fichier pour les opérations de tous les jours, faut s'attendre à ce que ça rame à mort)
[11:28:17] <Tag> Je vois qu'il y a du CIFS aussi, je ne sais pas si c'est mieux (mais c'est "fait pour")
[12:47:51] <@err404:matrix.org> j'utilise sshfs tous les jours, que ce soit dans un réseau local ou par un vpn (quand je ne suis pas à coté du serveur).
ce qui fait ramer sshfs c'est par exemple quand le réseau tombe, tout le système de fichier se blo.... (dans ce cas un simple `pkill ssh` pour tuer les session ssh dont les montage sshfs et ça libère l'ordi)

- si tu a un dossier avec plusieurs miliers de fichiers alors oui ça va ramer un peu, surtout si tu passe par Internet via le smartphone via un vpn....
- sshfs présente l'énorme avantage d'être transparent pour les applications qui ne savent pas qu'elles sont sur un montage sshfs.
(alors que pour du CIFS ou du NFS, si l'application ne sait pas traiter ces montages c'est mort)
[12:49:09] <@err404:matrix.org> du point de vue sécurité c'est mieux aussi, ça passe par ssh, donc si ta config ssh n'est pas pourrie, alors c'est bon,

[13:04:34] <douwe> hello, anyone here has an idea how to determine the minimum system requirements of an app before you install it?

I am trying to install Outline, but it stops after MinIO when trying to install Dex and I'd like to know if this is because of limited resources.
[13:05:19] <douwe> I am running a VPS with 2 vCore processor and 2 GB RAM and 40 GB SSD
[13:05:36] <Aleks (he/him/il/lui)> well they should be displayed in the webadmin before the install form, maybe in the collapsed "Integration" section, but your case seems like a complex one with an app installing another app installing yet another app
[13:06:02] <douwe> hey Aleks, yeah exactly.
[13:06:22] <orhtej2> > <@douwe:thorp.eu> hello, anyone here has an idea how to determine the minimum system requirements of an app before you install it?
>
> I am trying to install Outline, but it stops after MinIO when trying to install Dex and I'd like to know if this is because of limited resources.

some kind of log of failed install? this stuff uses `nodejs` and that thing is known to break on low RAM systems :/
[13:07:24] <douwe> here are the logs: https://paste.yunohost.org/raw/iyaxipoqiz
[13:08:37] <douwe> it is probably this:
`2023-09-21 22:36:04,753: DEBUG - FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory`
[13:08:59] <orhtej2> > <@douwe:thorp.eu> it is probably this:
> `2023-09-21 22:36:04,753: DEBUG - FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory`

yeeeeah, what I said :/
[13:09:14] <orhtej2> do you have `ssh` access?
[13:09:14] <douwe> I can update my VPS have more RAM, but how much more...? Is there a way to know that in advance?
[13:09:17] <douwe> yes
[13:09:41] <douwe> > <@douwe:thorp.eu> I can update my VPS have more RAM, but how much more...? Is there a way to know that in advance?

and can I reduce RAM again when installed
[13:11:39] <orhtej2> can you try running

`sudo NODE_OPTIONS="--max-old-space-size=2048" yunohost app installhttps://github.com/YunoHost-Apps/outline_ynh`

This will (?) increase RAM allowed to use by Node.js by utilizing swapfile (if available)
[13:11:47] <orhtej2> can you try running

`sudo NODE_OPTIONS="--max-old-space-size=2048" yunohost app install https://github.com/YunoHost-Apps/outline_ynh`

This will (?) increase RAM allowed to use by Node.js by utilizing swapfile (if available)
[13:11:58] <orhtej2> whoops double `install` in initial message
[13:13:02] <douwe> so:

`sudo NODE_OPTIONS="--max-old-space-size=2048" yunohost app install https://github.com/YunoHost-Apps/outline_ynh`

right?
[13:13:41] <douwe> why are you eying this Aleks (he/him/il/lui) ? You are not sure about this solution?
[13:14:04] <Aleks (he/him/il/lui)> please no matrix threads :|
[13:14:33] <Aleks (he/him/il/lui)> i'm eye-ing because on the contrary that sounds neat
[13:14:40] <orhtej2> > <@douwe:thorp.eu> so:
>
> `sudo NODE_OPTIONS="--max-old-space-size=2048" yunohost app install https://github.com/YunoHost-Apps/outline_ynh`
>
> right?

it's worth giving a shot, if it works we can try including it in `install` script as was done for `tooljet`
[13:15:53] <orhtej2> what I'm unsure about is if it `yunohost` command actually forward env to scripts
[13:16:03] <orhtej2> what I'm unsure about is if `yunohost` command actually forward env to scripts
[13:16:19] <douwe> https://aria.im/_matrix/media/v1/download/thorp.eu/mdqXWDeARirkQixqBDXvJFgd
[13:16:43] <douwe> ah, sorry, did not know that matrix threads break something
[13:17:35] <orhtej2> > <@douwe:thorp.eu> ah, sorry, did not know that matrix threads break something

actually UX is counter-intuitive and more often than not they're not marked as read properly for some reason, even when running official Element instance against official Synapse instance (matrix.io)
[13:19:14] <douwe> https://aria.im/_matrix/media/v1/download/thorp.eu/RiMjxrKWnWMQoBtHcczMaPvT
[13:19:17] <douwe> much busy
[13:20:51] <Aleks (he/him/il/lui)> and it's like even if you are not interested you have to keep opening the discussion anyway to have the room marked as read...
[13:20:56] <Tag> Environment variables works??!! 🤯
[13:21:52] <orhtej2> > <@douwe:thorp.eu> sent an image.

you **may** want to at least temporarily give yourself some swap space if this fails
[13:22:25] <douwe> not sure how to do that...
[13:22:59] <douwe> https://aria.im/_matrix/media/v1/download/thorp.eu/LguEmNeCKURLpWiKcEeXrAcu
[13:23:03] <douwe> but so far, so good
[13:23:58] <orhtej2> > <@douwe:thorp.eu> not sure how to do that...

```sh
$ sudo fallocate -l 4G /swapfile
$ sudo chmod 600 /swapfile
$ sudo mkswap /swapfile
$ sudo swapon /swapfile
```

[13:24:25] <orhtej2> and when you're done

```sh
$ sudo swapoff /swapfile
$ sudo rm /swapfile
```
[13:24:50] <orhtej2> > <@douwe:thorp.eu> sent an image.

this and Node.js build is what worries me the most
[13:25:14] <Aleks (he/him/il/lui)> <whisper>implementing a `yunohost tools addswap` would be a good first contrib in the core 👀</whisper>
[13:27:01] <douwe> `MiB Mem : 1970.8 total, 65.2 free, 1805.4 used, 100.2 buff/cache`

[13:27:27] <douwe> free memory seems to stay around this figure
[13:27:32] <orhtej2> > <@douwe:thorp.eu> `MiB Mem : 1970.8 total, 65.2 free, 1805.4 used, 100.2 buff/cache`

welcome to Node.js
[13:27:38] <orhtej2> start adding swapfile now
[13:27:48] <orhtej2> as I assure you `node` will start forking soon
[13:34:58] <douwe> https://aria.im/_matrix/media/v1/download/thorp.eu/GnmQmFDqkcCDLgzvDsiWhXtW
[13:36:32] <douwe> > Error: The operation 'Install the 'outline' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20230928-131559-app_install-outline' to get help

[13:37:15] <douwe> https://paste.yunohost.org/raw/jivotifusi
[13:37:27] <douwe> `2023-09-28 15:34:39,187: DEBUG - FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory`
[13:38:41] <orhtej2> > <@douwe:thorp.eu> sent an image.

https://www.youtube.com/watch?v=m9zhgDsd4P4
[13:40:22] <douwe> you think I was too late with adding swap?
[13:40:27] <douwe> shall I try again?
[13:41:54] <orhtej2> I'm clueless if it actually picked up that switch
[13:42:23] <orhtej2> my theory is it did not
[13:42:38] <douwe> so, i can try to run it again and see what happens...
[13:44:52] <orhtej2> how about install from my patched version:

```sh
sudo yunohost app install https://github.com/orhtej2/outline_ynh/tree/patch-1
```
[13:45:07] <orhtej2> I've incorporated that memory adding there
[13:46:47] <douwe> ah, already started a second round with your previous shared command
[13:48:30] <orhtej2> > <@douwe:thorp.eu> ah, already started a second round with your previous shared command

sure, observe if it tries to use swap space
[13:52:50] <douwe> current status:
```
%Cpu(s): 31.9 us, 48.4 sy, 0.0 ni, 15.5 id, 0.4 wa, 0.0 hi, 1.0 si, 2.9 st
MiB Mem : 1970.8 total, 96.4 free, 741.6 used, 1132.8 buff/cache
MiB Swap: 4096.0 total, 3647.1 free, 448.9 used. 990.7 avail Mem
```
[14:01:16] <douwe> failed again... same issue... shal I try your patched version? Or is the problem somewhere else maybe?
[14:01:22] <douwe> latest log here: https://paste.yunohost.org/raw/posujuloji
[14:02:02] <douwe> also see the line saying:
`Error: Unable to install outline: An error occurred inside the app installation script`
[14:03:27] <Tag> The actual error : `FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory`
[14:05:11] <orhtej2> Previously it was

```
2023-09-28 15:34:39,185: DEBUG - <--- Last few GCs --->
2023-09-28 15:34:39,185: DEBUG -
2023-09-28 15:34:39,186: DEBUG - [226474:0x637b7d0] 547968 ms: Mark-sweep 969.8 (1006.3) -> 962.9 (1008.0) MB, 2169.7 / 0.0 ms (average mu = 0.744, current mu = 0.215) allocation failure; scavenge might not succeed
2023-09-28 15:34:39,186: DEBUG - [226474:0x637b7d0] 550857 ms: Mark-sweep 971.8 (1008.0) -> 965.9 (1010.3) MB, 2693.1 / 0.0 ms (average mu = 0.536, current mu = 0.068) allocation failure; scavenge might not succeed
```

As if it was still using ~1GB ram
[14:05:18] <orhtej2> check the patched version perhaps
[14:06:08] <Tag> orhtej2: I think there's a random `PATH` that's not supposed to be here https://github.com/YunoHost-Apps/outline\_ynh/compare/master...orhtej2:outline\_ynh:patch-1
[14:07:42] <orhtej2> > <@tag:lostpod.me> orhtej2: I think there's a random `PATH` that's not supposed to be here https://github.com/YunoHost-Apps/outline\_ynh/compare/master...orhtej2:outline\_ynh:patch-1

fixed, IDK what happened there
[14:08:40] <orhtej2> douwe: if you started install already you need to restart x_x :/
[14:14:10] <douwe> you mean restart the VPS?
[14:14:26] <douwe> or shall I now try to run
```
sudo yunohost app install https://github.com/orhtej2/outline_ynh/tree/patch-1
```

[14:14:50] <orhtej2> > <@douwe:thorp.eu> or shall I now try to run
> ```
> sudo yunohost app install https://github.com/orhtej2/outline_ynh/tree/patch-1
> ```

the latter
[14:15:08] <orhtej2> > <@douwe:thorp.eu> you mean restart the VPS?

naaah, VPS should be fine unless you want to upgrade the kernel
[14:27:54] <douwe> there we go again... another attempt :-)
[14:38:05] <douwe> https://aria.im/_matrix/media/v1/download/thorp.eu/RoexuLxbxjcvJDUdUXkGtGCq
[14:38:09] <douwe> crunch crunch
[14:39:52] <orhtej2> wonder if 3000MB is even enough
[14:50:46] <douwe> ```
Info: [####################] > Installation of outline completed
Success! Installation completed
```
🎉
[14:59:50] <douwe> thnx orhtej2 for the step-by-step guidance 👏
[15:00:40] <Tag> douwe: you can remove the swap now o/
[15:03:01] <orhtej2> > <@douwe:thorp.eu> thnx orhtej2 for the step-by-step guidance 👏

upstreaming, thanks for testing! https://github.com/YunoHost-Apps/outline_ynh/pull/77
[15:12:48] <Charles P.> Is there a doc page for app levels description ? Can't find the old YEP page :/
[15:15:22] <Tag> Not really... :/
[15:16:10] <Tag> Ah!! found one thing https://yunohost.org/fr/packaging_testing#application-quality-level
[15:16:56] <Aleks (he/him/il/lui)> https://yunohost.org/packaging_testing ? (my internet is super slow I'm struggling to loading the page while `npm install`-ing)
[15:17:07] <Aleks (he/him/il/lui)> zblerg sorry i'm lagging
[15:31:52] <Charles P.> Ah thanks !
[18:19:45] <ChriChri[m]> Nice: my yunohost is now reachable per tcp 25 via its dynamic ip and a static ip forwarded from elsewhere through a wireguard tunnel. Outgoing connections to tcp 25 are always routed over wireguard to be seen on the internet with the static ip as source ip. Wireguard terminates on my edgerouter and the router also does all the policy based routing. Didn't need to touch yunohost to do this :).
Now I only need to setup a second mx on my dns and a reverse dns entry for the static ip to be able to really send outgoing email.
[18:46:42] <bigl ⚡> https://aria.im/_matrix/media/v1/download/494b8.strangled.net/sRiMGMKncMcgo5XdbcfD2oCM9HNYgcrb
[18:46:43] <bigl ⚡> Hello has my domain been released? An admin reacted with a check mark
[18:46:55] <douwe> the emotion that you get from of a working, self made and understood wireguard tunnel is something that deserves a word on its own. Nice work! 😄
[18:55:27] <Tag> This error says that you can't register a new one, because there's already one nohost domain setup on your server.
You'll need to delete it from your server before.
[18:58:52] <bigl ⚡> When I try to delete it I get an error
[18:59:00] <bigl ⚡> I rebooted the server might just be a mix up
[19:00:16] <Tag> What's the error ?
[19:00:30] <bigl ⚡> Reboot fixed it
[19:00:32] <Tag> ok
[19:00:35] <bigl ⚡> Said domain was already unregistered
[19:06:43] <bigl ⚡> https://aria.im/_matrix/media/v1/download/494b8.strangled.net/TOsYvKunrIss1qPDdA9nzgiRA1J6kNN6
[19:06:49] <bigl ⚡> Now this whenever I tried to make the nohost
[19:08:14] <Tag> please read the red error and do as it says /o\\
[19:08:35] <tituspijean> "admins" email alias cannot be removed, but yeah share the full damn log
[19:15:38] <bigl ⚡> I fixed it all
[19:15:41] <bigl ⚡> I did read the error lol
[19:15:49] <bigl ⚡> I never tried to remove anyone I tried to remove my old url
[19:15:58] <bigl ⚡> Reboots solve everything
[19:17:55] <Berker> Hi tituspijean: We chatted a few days ago. I couldn't get pihole working on my setup so I had a second raspi laying around, I installed yunohost with pihole on it and nothing else. Problem I'm having is that the port 80 and 443 on my router routes to the other raspi which prevents me from getting a lets encrypt cert from the new raspi. Thus I can't get to the pi-hole web interface..
[19:18:28] <Berker> Any ideas how to get it working?
[19:20:10] <tituspijean> That will not work. YunoHost expects the public port 80 to be redirected to it.
[19:21:40] <Berker> Alright, thanks.
[19:23:18] <Tag> Redirect 80 and 443 to your YunoHost and then you can use the redirect app to have a subdomain pointing to your "old" raspi
[19:25:19] <Felix Bartsch> Hello everyone,
I've tried to move a yunohost instance from one dedicated server to another. I dit a fresh install on new server and a update and backup at the old server. I've moved the backup to new server and restored via UI. everything was fine but only synapse and wikijs dit not restore correctly. I've created a new backup only for synapse and tried to restore but same problem... Dit anyone have an idea how to solve? Thank you in advance! https://paste.yunohost.org/raw/topohomiku
[19:30:03] <Berker> > <@tag:lostpod.me> Redirect 80 and 443 to your YunoHost and then you can use the redirect app to have a subdomain pointing to your "old" raspi

Thanks mate. I'm not sure if that will work since I have a bunch of other apps and 6 domains working all together perfectly , I really don't wanna mess it up. I'll spin up a dietpi and try with that.
[19:57:13] <Tag> Well to fix this, you'll have to modify the file inside the backup
[20:03:16] <Felix Bartsch> Thank you! I will try this!
[20:13:06] <Chatpitaine Caverne> Felix Bartsch: We had a discussion on this setuptools error on september 22nd.
We arre many having this error during updates with no consequences. It seems, you found one consequence.

Tag found the curpit :
https://github.com/YunoHost-Apps/synapse\_ynh/blob/master/scripts/\_common.sh#L49-L54
[22:37:34] <Cassie> Hi! Does anyone know what directory the install scripts are kept? I wanna make a minor edit to fix an issue with installing Mastodon on my rpi
[22:44:51] <orhtej2> > <Cassie> Hi! Does anyone know what directory the install scripts are kept? I wanna make a minor edit to fix an issue with installing Mastodon on my rpi

Iirc /etc/yunohost/apps/smth?
[22:47:25] <Cassie> o7 thank you
[23:04:00] <Cassie> This person attempted to retract a previous message, but it's unsupported by your client.
[23:04:15] <Cassie> That doesnt seem to be the one,,,