Sunday, June 25, 2023
support@conference.yunohost.org
June
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
   
             

[01:10:30] <Christopher> I'm wondering if anyone has a few minutes to help me figure out why my DNSMASQ won't start up. I followed the instructions at https://yunohost.org/en/external_storage to add another drive to my server. After doing so, and then rebooting, the DNSMAQ throws the below error. I can't figure out what is listening to port 53 and wont' allow it to start up. I've tried turning off most of my services and trying again while they were off, and still no resolution.

Jun 24 20:01:14 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Jun 24 20:01:14 dnsmasq[81059]: dnsmasq: failed to create listening socket for port 53: Address already in use
Jun 24 20:01:14 systemd[1]: dnsmasq.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Jun 24 20:01:14 dnsmasq[81059]: failed to create listening socket for port 53: Address already in use
Jun 24 20:01:14 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
Jun 24 20:01:14 dnsmasq[81059]: FAILED to start up
Jun 24 20:01:14 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
[01:12:44] <Aleks (he/him/il/lui)> sounds like something else is using port 53, can investigate with `sudo netstat -tulpn | grep 53`
[01:13:43] <Aleks (he/him/il/lui)> typically systemd-resolver maybe
[01:13:44] <Aleks (he/him/il/lui)> doesnt seem to have any relation with tweaking storage stuff
[01:13:49] <Christopher> sudo: netstat: command not found

[01:15:07] <Christopher> I admit that I haven't rebooted this server in a while, so may not be 100% related to the addition of the drive, however, it was working fine before starting.
[01:15:08] <Aleks (he/him/il/lui)> gotta `apt install net-tools` to obtain netstat i guess
[01:16:08] <Christopher> > <@Alekswag:matrix.org> sounds like something else is using port 53, can investigate with `sudo netstat -tulpn | grep 53`

tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 573/connmand
tcp6 0 0 ::1:53 :::* LISTEN 573/connmand
udp 0 0 127.0.0.1:53 0.0.0.0:* 573/connmand
udp6 0 0 ::1:53 :::* 573/connmand


[01:16:56] <Aleks (he/him/il/lui)> hmmkay so let's dig what's process 573 with `sudo ps -ef | grep 573`
[01:18:04] <Christopher> root 573 1 0 18:45 ? 00:00:02 /usr/sbin/connmand -n
pixelfed 1573 1562 0 18:45 ? 00:00:01 [php8.2] <defunct>
root 95625 47469 0 20:17 pts/0 00:00:00 grep 573

[01:21:43] <Aleks (he/him/il/lui)> hmmmkay, no idea what this connmand thing is
[01:23:38] <Aleks (he/him/il/lui)> apparently some "connection manager"
[01:23:39] <Christopher> I thought it was weird too. I'm not sure where it came from. I just assumed it was yunohost related

[01:24:00] <Aleks (he/him/il/lui)> i would check if `systemctl | grep conn` returns something
[01:24:58] <Christopher> sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
connman-wait-online.service loaded active exited Wait for network to be configured by ConnMan
connman.service loaded active running Connection service
nslcd.service loaded active running LSB: LDAP connection daemon
[01:26:11] <Aleks (he/him/il/lui)> hmyeah
[01:26:12] <Aleks (he/him/il/lui)> (bad copypasta..)
[01:26:12] <Aleks (he/him/il/lui)> would follow what that dude did : https://old.reddit.com/r/pihole/comments/por9uo/network_after_upgrade_to_bullseye/hf85ktm/
[01:26:13] <Aleks (he/him/il/lui)> `sudo grep -Ril "connman" /etc/systemd/` to identify the service file
[01:26:27] <Aleks (he/him/il/lui)> then change `ExecStart=/usr/sbin/connmand -n` into `ExecStart=/usr/sbin/connmand -n --nodnsproxy`
[01:27:17] <Aleks (he/him/il/lui)> then propagate with `systemctl daemon-reload` and `systemctl restart connman.service`
[01:34:45] <Christopher> > <@Alekswag:matrix.org> `sudo grep -Ril "connman" /etc/systemd/` to identify the service file

This is the result of this command.

grep: /etc/systemd/system/multi-user.target.wants/mongod.service: No such file or directory
/etc/systemd/system/multi-user.target.wants/connman.service
grep: /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service: No such file or directory
/etc/systemd/system/network-online.target.wants/connman-wait-online.service
grep: /etc/systemd/system/dbus-org.freedesktop.timesync1.service: No such file or directory

[01:35:47] <Aleks (he/him/il/lui)> hmyeah so that's `/etc/systemd/system/multi-user.target.wants/connman.service`
[01:35:54] <Christopher> > <@Alekswag:matrix.org> then change `ExecStart=/usr/sbin/connmand -n` into `ExecStart=/usr/sbin/connmand -n --nodnsproxy`

So this step is just changing a file name?

[01:37:18] <Aleks (he/him/il/lui)> changing the corresponding line in the file content
[01:37:22] <Christopher> Oh, so I need to run nano /etc/systemd/system/multi-user.target.wants/connman.service and then change the contents of the file?
[01:41:28] <Christopher> > <@Alekswag:matrix.org> changing the corresponding line in the file content

It's up an running, Thanks!!
[01:41:29] <Christopher> I'm going to do a reboot and make sure it stays that way. Again, thanks!
[12:58:04] <NiTi> Petit souci pour mettre à jour Lychee en 4.9.2 (encore, j’ai l’impression que chaque màj pose pb sur cette app 🤔), il y aurait une solution pour résoudre le pb ? Les logs : https://paste.yunohost.org/raw/bosojidate et les 2 warning à la fin sans doute à l’origine :

```
tar --extract --file=/var/cache/yunohost/download/lychee/main --directory=/var/www/lychee --strip-components
2023-06-25 07:53:36,712: WARNING - tar: bootstrap/cache: Cannot open: File exists
2023-06-25 07:53:36,787: WARNING - tar: Exiting with failure status due to previous errors
```
[14:38:46] <Parano-Sprite> J'ai déplacé le dossier /home/yunohost.backup sur un disque externe, car je n'ai pas beaucoup de place le disque systeme
[14:39:30] <Parano-Sprite> j'ai suivi la procédure pour ajouter un disque externe et transferer les dossiers
[14:40:44] <Parano-Sprite> ca fonctionne nickel pour le redémarrage avec la modification dans /etc/fstab
[14:42:48] <Parano-Sprite> voici le fichier du probleme
[14:42:52] <Parano-Sprite> https://paste.yunohost.org/raw/efexaxanep
[14:43:55] <Parano-Sprite> Erreur: "500"
[14:44:07] <Parano-Sprite> Action: "POST" /yunohost/api/backups
[14:44:32] <Parano-Sprite> Message d'erreur :
[14:44:33] <Parano-Sprite> Erreur serveur inattendue
[14:44:38] <Parano-Sprite> .
[14:44:47] <Parano-Sprite> Merci par avance pour votre aide
[14:45:17] <Aleks (he/him/il/lui)> `Command '['du', '-sb', '/home/yunohost.multimedia']' returned non-zero exit`
[14:45:18] <Aleks (he/him/il/lui)> does `/home/yunohost.multimedia` exists ?
[14:46:17] <Parano-Sprite> oui
[14:46:27] <Parano-Sprite> je l'ai aussi déplacé
[14:46:36] <Parano-Sprite> sur le meme disque
[14:46:41] <Parano-Sprite> externe
[14:47:17] <Aleks (he/him/il/lui)> dans ce cas ça raconte quoi `du -sb /home/yunohost.multimedia`
[14:48:19] <Parano-Sprite> oula, c'est pas top
[14:48:36] <Parano-Sprite> Message d'erreur :
[14:49:44] <Parano-Sprite> non, c'est pas ca ... ;)
[14:50:06] <Parano-Sprite> <pre>du: impossible de lire le répertoire '/home/yunohost.multimedia/share/Music/Mix - Remix/Various Artists/Techno World Vol.1': Message invalide</pre>
[14:50:28] <Parano-Sprite> du: impossible d'accéder à '/home/yunohost.multimedia/share/Music/Albums/P!nk': Message invalide
[14:50:35] <Aleks (he/him/il/lui)> hmoké ben y'a l'air d'avoir un truc chelou avec ce dossier précis ...
[14:50:50] <Parano-Sprite> du: impossible d'accéder à '/home/yunohost.multimedia/share/Music/Albums/Bob Marley': Message invalide
[14:51:05] <Parano-Sprite> du: impossible d'accéder à '/home/yunohost.multimedia/share/Music/Albums/Bananarama': La structure a besoin d'un nettoyage
[14:51:20] <Parano-Sprite> 125659394106 /home/yunohost.multimedia
[14:51:27] <Aleks (he/him/il/lui)> ou bien le système de fichier est à moitié en carrafe ...
[14:51:49] <Parano-Sprite> HA !!!
[14:52:01] <Parano-Sprite> c'est grave docteur ?
[14:52:05] <Parano-Sprite> ;)
[14:55:02] <Aleks (he/him/il/lui)> beeen, grave je sais pas, mais c'est ça qui empêche le backup d'aboutir quoi
[14:58:24] <Parano-Sprite> d'accord
[14:58:37] <Parano-Sprite> Je peux essayer de faire quoi pour résoudre ce problème ?
[14:59:31] <Aleks (he/him/il/lui)> déjà je regarderais quel est le type de système de fichier avec `df -h`, en particulier la ligne qui corresponds à ton disque externe
[15:02:19] <Parano-Sprite> fekgh
[15:03:47] <Parano-Sprite> c'est marrant, je ne peux pas mettre les infos ici ..
[15:04:02] <NiTi> > <@niti:tedomum.net> Petit souci pour mettre à jour Lychee en 4.9.2 (encore, j’ai l’impression que chaque màj pose pb sur cette app 🤔), il y aurait une solution pour résoudre le pb ? Les logs : https://paste.yunohost.org/raw/bosojidate et les 2 warning à la fin sans doute à l’origine :
>
> ```
> tar --extract --file=/var/cache/yunohost/download/lychee/main --directory=/var/www/lychee --strip-components
> 2023-06-25 07:53:36,712: WARNING - tar: bootstrap/cache: Cannot open: File exists
> 2023-06-25 07:53:36,787: WARNING - tar: Exiting with failure status due to previous errors
> ```

Même erreur avec https://github.com/YunoHost-Apps/lychee_ynh/pull/77 😕
[15:06:53] <Parano-Sprite> Aleks (he/him/il/lui): quand je fais "df -h" dans la ligne qui m'interesse il y a : "/dev/sdb1" qui est monté sur "mnt/stockage"
[15:07:02] <Parano-Sprite> c'est ce que j'ai fais ce matin
[15:07:25] <Aleks (he/him/il/lui)> oui, et donc, quel est le type du système de fichier (ça devrait être sur la ligne)
[15:08:28] <Parano-Sprite> ce n'est pas marqué
[15:08:36] <Aleks (he/him/il/lui)> :|
[15:08:56] <Aleks (he/him/il/lui)> ah ouai my bad
[15:09:11] <Aleks (he/him/il/lui)> regardons avec `lsblk -f` alors
[15:09:38] <Parano-Sprite> ext4
[15:09:59] <Aleks (he/him/il/lui)> ok, dans ce cas mois je tenterais un `fsck /dev/sdb1`
[15:11:17] <Parano-Sprite> fsck de util-linux 2.36.1
[15:11:27] <Parano-Sprite> e2fsck 1.46.2 (28-Feb-2021)
[15:11:52] <Parano-Sprite> dev/sdb1 is mounted.
[15:12:04] <Parano-Sprite> e2fsck: Cannot continue, aborting.
[15:12:24] <Parano-Sprite> ca a duré 2 secondes et encore, je suis large
[15:15:11] <Aleks (he/him/il/lui)> mouai donc faut sans doute d'abord le démonter
[15:15:14] <Aleks (he/him/il/lui)> donc faisons `sudo umount /dev/sdb1` puis `fsck /dev/sdb1`
[15:16:39] <Parano-Sprite> pareil
[15:21:28] <Parano-Sprite> aurais-je fais une bêtise dans le fichier fstab par hasard ???
[15:22:02] <Parano-Sprite> UUID="e1f49990-5c97-49cb-8d8d-09ae7b175b09" /mnt/stockage ext4 defaults,nofail 0 0
[15:22:45] <Parano-Sprite> ./mnt/stockage/home/yunohost.multimedia /home/yunohost.multimedia none defaults,bind 0 0
[15:24:44] <localandnomadic> hi! I am wondering what the default password for admin is?
[15:26:08] <Aleks (he/him/il/lui)> it's `yunohost`
[15:26:31] <Aleks (he/him/il/lui)> > pareil

comprends pas comment ça peut faire pareil, vu que maintenant il y a deux commandes ... que raconte `sudo umount /dev/sdb1` ...
[15:27:32] <Parano-Sprite> Aleks (he/him/il/lui): ca raconte rien
[15:27:42] <Aleks (he/him/il/lui)> @_@
[15:28:04] <localandnomadic> I see, so user: admin, pw: yunohost ?
[15:28:18] <localandnomadic> I couldn't read this character:
[15:28:22] <Aleks (he/him/il/lui)> et ensuite `fsck /dev/sdb1` raconte toujours que "dev/sdb1 is mounted" ?
[15:28:23] <Parano-Sprite> juste le curseur qui clignote 2 fois et c'est tout
[15:28:43] <Aleks (he/him/il/lui)> > I see, so user: admin, pw: yunohost ?

yes ... but that can also depend on your exact context ...
[15:29:28] <Parano-Sprite> Aleks (he/him/il/lui): Haaaaaaa ;;;
[15:29:49] <Parano-Sprite> stockage contains a file system with errors, check forced.
[15:29:58] <Parano-Sprite> Pass 1: Checking inodes, blocks, and sizes
[15:30:09] <Parano-Sprite> Deleted inode 71696913 has zero dtime. Fix<y>?
[15:30:10] <lautre> Regarde dans dmesg aussi
[15:30:23] <localandnomadic> my exact context is I installed, but I did not do post-install, so I turned off the machine
[15:30:34] <Aleks (he/him/il/lui)> Oui il faut faire "y" tout le temps
[15:30:39] <localandnomadic> I saw that I had connectivity, but now I am unable to connect. I assume this is because I need to "log in"
[15:30:52] <localandnomadic> I tried "admin" with "yunohost" already, and also "admin" with "1234"
[15:31:07] <Aleks (he/him/il/lui)> so are you running 11.0 or 11.1, or something else, and are you trying to connect from the webadmin or from ssh
[15:31:19] <localandnomadic> I am logging in with keyboard and screen on the server itself
[15:31:28] <Aleks (he/him/il/lui)> hmkay
[15:31:28] <localandnomadic> And 11.1
[15:31:29] <Aleks (he/him/il/lui)> would try root + yunohost then
[15:32:07] <localandnomadic> it worked :)
[15:32:12] <Aleks (he/him/il/lui)> (or just go to the webadmin from a browser + local IP of the server)
[15:32:26] <Parano-Sprite> Aleks (he/him/il/lui): pouaaaaaaa, le nombre de inodes en périls ...
[15:32:44] <Aleks (he/him/il/lui)> ¯\_(ツ)_/¯
[15:32:47] <lautre> Today I installed my first yunohost myself. Yeah😃 (I only tried the easy way from the iso)
[15:33:23] <lautre> > Aleks (he/him/il/lui): pouaaaaaaa, le nombre de inodes en périls ...

You turned off the machine
[15:34:01] <Parano-Sprite> Aleks (he/him/il/lui): maintenant, je suppose que je remount  ou je redémarre le poste
[15:34:12] <Parano-Sprite> et je retest une sauvegarde?
[15:34:13] <Aleks (he/him/il/lui)> tu remount oui
[15:34:30] <Aleks (he/him/il/lui)> tu remount, et vérifie que le `du -sb` de tout à l'heure ne râle plus
[15:34:34] <Parano-Sprite> si je relance, ca le fera aussi ?
[15:34:47] <Aleks (he/him/il/lui)> relancer quoi, la sauvegarde ?
[15:34:57] <Parano-Sprite> non le serveur
[15:35:10] <Parano-Sprite> pour qu'il fasse son mount auto
[15:35:17] <Aleks (he/him/il/lui)> aucune idée, ça dépends de si t'as configuré correctement ton /etc/fstab et tout le tsintsouin
[15:35:31] <Parano-Sprite> normalement oui
[15:36:02] <Aleks (he/him/il/lui)> et c'est potentiellement plus simple de faire juste une commande pour remonter le bouzin plutot que de sauvagement redémarrer tout le serveur avec les interruptions de services et autres probleme variés qui peuvent survenir lors d'un reboot ...
[15:36:17] <Aleks (he/him/il/lui)> m'enfin c'est pas mal non plus de s'assurer de temps en temps que le reboot fonctionne
[15:39:29] <localandnomadic> ok now that I have logged into the machine once, I am unable to get SSH access. is it once again 'root' + 'yunohost'?
[15:39:42] <Parano-Sprite> Aleks (he/him/il/lui): j'ai shutdown le serveur et relancé. tout est remonté
[15:40:12] <Aleks (he/him/il/lui)> root + yunohost yes, assuming you still didn't run the postinstall and that you're from the local network
[15:40:13] <Parano-Sprite> j'ai fais un "du -sb /home/yunohost.multimedia"
[15:40:26] <localandnomadic> I am, so it's odd
[15:40:42] <Parano-Sprite> ca me donne ceci :
[15:40:43] <Parano-Sprite> 125659394106 /home/yunohost.multimedia
[15:41:03] <Parano-Sprite> tous les dossiers sont remontés
[15:41:10] <Aleks (he/him/il/lui)> maintenant il faut vérifier si 125659394106 est un nombre premier
[15:41:22] <Parano-Sprite> je vais tester une sauvegarde pour voir ce qu'il va dire ...
[15:41:51] <Parano-Sprite> Aleks (he/him/il/lui): ben non, le nombre premier et le 1 ...
[15:41:51] <Parano-Sprite> :)
[15:42:14] <Parano-Sprite> Aleks (he/him/il/lui): alors la, moi et les math ....
[15:43:07] <Aleks (he/him/il/lui)> 👍️
[15:43:09] <Aleks (he/him/il/lui)> 200IQ tips
[15:43:45] <Parano-Sprite> Aleks (he/him/il/lui): et ca fait quoi ?
[15:45:32] <Aleks (he/him/il/lui)> ¯\_(ツ)_/¯
[15:47:03] <Parano-Sprite> Ok, c’était pour la boutade ... ;)
[15:47:21] <Parano-Sprite> bon, en tout cas, la sauvegarde est en cours pour le moment
[15:48:36] <Parano-Sprite> Aleks (he/him/il/lui): Je te remercie beaucoup, pour toutes les aides que tu m'as déjà données, c'est vraiment super ...
[15:52:20] <Aleks (he/him/il/lui)> https://www.youtube.com/watch?v=IFS-njpx8SI
[16:04:11] <Parano-Sprite> on voit les pros quand même ...
[16:24:28] <lapineige> Do you know if we can access (for instance in Rainloop) to the emails sent to us via another domain than the main one or one of its subdomains ?
[16:25:08] <Aleks (he/him/il/lui)> how can it be "sent to you" if it's not through a domain registered in yunohost ?
[16:38:16] <lapineige> I have on a ynh server domain A and domain B registered.
Domain A is the default, shown in rainloop.
If an email is sent to domain B, where (in which GUI) will I receive it ?
[16:45:34] <Aleks (he/him/il/lui)> should be in B too, assuming you do have an email address configured on that domain, and that you are connected with the appropriate identity
[16:46:36] <Aleks (he/him/il/lui)> i mean, rainloop allows to access inboxes set to other domain than the domain it's installed on
[16:49:56] <lapineige> by default ?
[16:49:57] <lapineige> Any option to check ?
[16:50:18] <Aleks (he/him/il/lui)> maybe if it doesn't work for you just explain right away that you tried and it doesn't work so we can work on the actual problem x_x
[16:51:55] <lapineige> > <@Alekswag:matrix.org> maybe if it doesn't work for you just explain right away that you tried and it doesn't work so we can work on the actual problem x_x

Well I didn't know if it was supposed to be a feature
[16:52:38] <lapineige> Let me introduce the main issue I'm trying to solve: My Nextcloud no longer send (?) sharing emails.
I tried to make sure I could send emails from that domain. But I have no app that does it except Nextcloud.
So instead I tried to receive one. And I've been rejected for "spam".
So I wonder if I'm supposed to be able to receive an emain on that domain by default (or with an extra config / not at all)
[16:53:40] <Aleks (he/him/il/lui)> the answer is : yes, you are supposed to be able to receive mails to any domain configured, as long as "mail feature" is enabled for that domain (which is the default) and that the diagnosis is happy about the mail configuration (at least for the "receive" part)
[16:55:06] <Aleks (he/him/il/lui)> but the description of your issue with nextcloud seems to be more about sending emails than receiving ...
[16:55:07] <lapineige> oh yeah, forgot to check the diagnosis 😅
[16:55:20] <lapineige> (but checked DNS config and the autoconfig was done correctly)
[16:55:39] <lapineige> > <@Alekswag:matrix.org> but the description of your issue with nextcloud seems to be more about sending emails than receiving ...

yes, I tried to start with the simple case 😅
[16:56:03] <Aleks (he/him/il/lui)> also yes, in terms of *sending* emails, there can be a difference, which is that the reverse DNS (which is checked by some actors to flag or not emails as spam) can obviously configured to point to a single domain, which we recommend to be the main domain
[16:57:14] <Aleks (he/him/il/lui)> so additional domains are more likely to get flagged as spam, though sometimes just DKIM and the other usual stuff is enough, that depends on GAFAM weather etc
[16:57:26] <lapineige> As for Nextcloud, I realised there is a configuration field for emails (SMTP) in the admin UI. It's empty 🤔
[16:58:32] <Aleks (he/him/il/lui)> could be that it's just using localhost as sender, but that also usually means that it's an "unauthenticated submission", which doesn't get signed by DKIM, which increases the likelihood to get flagged as spam
[16:59:47] <Aleks (he/him/il/lui)> but i don't even know in your description if we're talking about a nextcloud living on the same server as your mail or some other external nextcloud ...
[17:04:22] <lapineige> > oh yeah, forgot to check the diagnosis 😅

fine except IPV6 reverse DNS (IPV4 is good)
[17:04:45] <lapineige> > <@Alekswag:matrix.org> but i don't even know in your description if we're talking about a nextcloud living on the same server as your mail or some other external nextcloud ...

Nextcloud in YNH sending emails to… the world 🙂
[17:06:19] <lapineige> I checked on another server. Empty too.
And another one (an old install). It's using Nextcloud@maindomain.tld (not even its own subdomain) as email parameter.
This is the "source adress" parameter, not the "server adress"
[21:02:24] <Aleks (he/him/il/lui)> ¯\_(ツ)_/¯ it can work if you install it, refactor the directory setup to have it mount-binded, and never restore it, i suppose
[21:02:44] <lapineige> actually it doesn't work for upgrades either 😅
[21:03:08] <Aleks (he/him/il/lui)> 😬
[21:03:29] <lapineige> (well for some apps at least, I never understood why)
[21:03:54] <lapineige> that's… inconvenient 😅
[21:04:14] <Aleks (he/him/il/lui)> well anyway without some proper formalizing and making yunohost "aware" or mount-bind stuff, manually hacking stuff is gonna have its limits
[21:04:34] <lapineige> that's good to know ^^
[21:05:11] <lapineige> I thought it was a pretty standard way to handle these things (to save cost at least)
[21:05:22] <lapineige> Thanks for your guidance :)
Now I need to figure out of to move temporarily ~6GB out of the 20GB root partition to be able to restore the app 😅
[21:06:34] <lapineige> > It is very strange : none of my 3 servers are able to send that test email from that admin panel.
> But the 2 of them (but the one I talking about here), I receive the sharing email notification and so on 🤔

In fact I don't know if that is a parameter that is supposed to be changed.
I don't know how Nextcloud connects to the local mail server