Thursday, February 15, 2024
support@conference.yunohost.org
February
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
     
             

[00:03:39] <Ilario> Bonjour, jais un problème avec xmpp je n’arrive pas a envoyer des images. Le diagnostic dns est tout vert pour xmpp le certificat est installé les portes 5222 et5269 sont ouvertes.
>> Merci, le message du client (conversation) est tout simplement "envoie échoué".
Si j'appuie sur image j'ais ce retour :

Read error: ssl=0x7d7b876f98: Failure in SSL library, usually a protocol error
error:10000458:SSL routines:OPENSSL_internal:TLSV1_ALERT_UNRECOGNIZED_NAME (/usr/local/google/home/prb/src/boringssl/ssl/tls_record.cc:594 0x7d9b861958:0x00000001)

Les images sont en jpeg.
Vous avez une idée ? Merci

[00:13:56] <Aleks (he/him/il/lui)> peut-être que ton certificat n'a pas été généré pour le alternate name xmpp-upload.tondomain.tld car peut-être que la conf xmpp n'était pas d'équerre au moment où il a été généré
[00:25:34] <Ilario> > peut-être que ton certificat n'a pas été généré pour le alternate name xmpp-upload.tondomain.tld car peut-être que la conf xmpp n'était pas d'équerre au moment où il a été généré
Merci, je efface le certificat et j'en demande un autre?
[00:26:00] <Aleks (he/him/il/lui)> pas besoin de l'effacer, faut juste en redemander un autre
[00:26:14] <Aleks (he/him/il/lui)> enfin le renouveller manuellement quoi
[00:26:25] <Ilario> OK bien merci.
[10:43:04] <xavierlanne> Quelqu'un a-t-il déjà installé yunohost sur un raspberry pi 4 sur un disque dur (plutôt que la carte SD) ?
Parce que, si je plaque l'image yunohost sur le disque dur/clé USB, le raspi ne démarre pas.
Du coup j'ai installé raspbian 11, sur lequel j'installe yunohost avec leur commande : curl https://... | bash. Jusque là OK, mais impossible de redémarrer par la suite ! Je comprends absolument pas pourquoi. Et hier soir, bizarrement, ça a accepté de redémarrer, c'est la seule fois que ça a fonctionné.
[10:47:05] <Salamandar> Tu es sûr d’avoir bien configuré le bootloader de la raspi comme indiqué dans leur doc ?
[10:48:40] <Chatpitaine Caverne> > <@xavierlanne:matrix.org> Quelqu'un a-t-il déjà installé yunohost sur un raspberry pi 4 sur un disque dur (plutôt que la carte SD) ?
> Parce que, si je plaque l'image yunohost sur le disque dur/clé USB, le raspi ne démarre pas.
> Du coup j'ai installé raspbian 11, sur lequel j'installe yunohost avec leur commande : curl https://... | bash. Jusque là OK, mais impossible de redémarrer par la suite ! Je comprends absolument pas pourquoi. Et hier soir, bizarrement, ça a accepté de redémarrer, c'est la seule fois que ça a fonctionné.

ça fonctionne parfaitement normalement, mais y'a longtemps que j'ai pas ré-installé (En fait une seule fois).
[10:50:21] <xavierlanne> > <@Salamandar:matrix.org> Tu es sûr d’avoir bien configuré le bootloader de la raspi comme indiqué dans leur doc ?

Si c'est pour démarrer sur USB, bien sûr, puisque je peux démarrer sans problème sur raspbian fraichement installé, sans aucune carte SD.
[10:59:29] <·☽•Nameless☆•777 ·> Salut o/
Jai pas de rpi4 ni de yunohost sous la main mais a tu modifier ``` /boot/cmdline.txt ``` pour indiquer au rpi de booter sur la partition sur le disque dur USB ?
[11:05:03] <xavierlanne> > <@nam3l33ss:matrix.org> Salut o/
> Jai pas de rpi4 ni de yunohost sous la main mais a tu modifier ``` /boot/cmdline.txt ``` pour indiquer au rpi de booter sur la partition sur le disque dur USB ?

Je comprends pas trop.
J'ai suivi ça : https://www.framboise314.fr/boot-du-raspberry-pi-4-sur-un-disque-ssd-en-usb3/

Donc une fois que le bootloader est configuré pour booter sur clé USB, et que je constate que je peux effectivement booter sur USB, je vois pas pourquoi il faudrait reconfigurer des trucs !?

J'ai vu nul part qu'il fallait toucher ce fichier. Et je comprends pas pourquoi toucher ce fichier changerait quelque chose à partir du moment où je boot déjà sur USB.
J'ai plus l'impression que yunohost casse quelque chose du système qui l'empêche de démarrer ensuite.
[11:10:26] <Salamandar> Peux-tu brancher un écran sur la pi pour voir ce qu'il se passe pendant le boot ?
[11:10:26] <Salamandar> en effet si tu as suivi ce tuto ça devrait être bon
[11:12:41] <xavierlanne> > <@Salamandar:matrix.org> Peux-tu brancher un écran sur la pi pour voir ce qu'il se passe pendant le boot ?

Non ;( parce que c'est du micro-hdmi, et que j'ai ni le câble, ni les adaptateurs, ni ce qu'il faut.
[11:13:13] <Salamandar> hmmm
[11:13:30] <Salamandar> si tu montes le disque sur un autre pc linux, tu devrais voir un dossier var/log dedans
[11:14:33] <Salamandar> si c'est bon, tu pourrais lancer `journalctl --root=le/point/de/montage/du/disque`
[11:14:47] <Salamandar> tu pourras peut-être voir si le linux boote, et quel problème pourrait arriver
[11:15:07] <Salamandar> (sudo avant journalctl ^^)
[11:22:55] <xavierlanne> > <@Salamandar:matrix.org> si c'est bon, tu pourrais lancer `journalctl --root=le/point/de/montage/du/disque`

J'ai effectivement des choses qui se sont passées.
Mais j'ai aucun logs pour ce matin, comme s'il n'avait même pas essayé de démarrer...
Je creuse ça cet après midi !
[11:28:31] <·☽•Nameless☆•777 ·> > <@xavierlanne:matrix.org> Je comprends pas trop.
> J'ai suivi ça : https://www.framboise314.fr/boot-du-raspberry-pi-4-sur-un-disque-ssd-en-usb3/
>
> Donc une fois que le bootloader est configuré pour booter sur clé USB, et que je constate que je peux effectivement booter sur USB, je vois pas pourquoi il faudrait reconfigurer des trucs !?
>
> J'ai vu nul part qu'il fallait toucher ce fichier. Et je comprends pas pourquoi toucher ce fichier changerait quelque chose à partir du moment où je boot déjà sur USB.
> J'ai plus l'impression que yunohost casse quelque chose du système qui l'empêche de démarrer ensuite.

Simplement que chez moi ça fonctionne comme ça avec du quasiment tous les linux donc yunohost mais cela peut changer surement pour le rpi4 .
[11:28:33] <·☽•Nameless☆•777 ·> En gros comme dit plus haut ça indique juste a la carte sur quelle partition cherche OS =)
[11:30:49] <·☽•Nameless☆•777 ·> J'essaie de regarder ton tuto quand je peux .
[11:35:58] <·☽•Nameless☆•777 ·> Je vois c'est pas du tout la même chose x)
[11:54:24] <Salamandar> > <@nam3l33ss:matrix.org> Simplement que chez moi ça fonctionne comme ça avec du quasiment tous les linux donc yunohost mais cela peut changer surement pour le rpi4 .

entre la pi 3 et la pi 4 il y a des différences, notamment le pi 4 peut booter directement sur l'usb sans la carte sd
[12:03:14] <·☽•Nameless☆•777 ·> > <@Salamandar:matrix.org> entre la pi 3 et la pi 4 il y a des différences, notamment le pi 4 peut booter directement sur l'usb sans la carte sd

Ouep je découvre sa limite on peut utiliser la carte sd pour autre chose .
[12:03:33] <Anmol> How can I run a command with a particular application user? there is a yunohost command for it?
[12:04:19] <isAAAc> > <@anmol:im.anmol.net.in> How can I run a command with a particular application user? there is a yunohost command for it?

what do you want to do exactly ?
[12:05:12] <isAAAc> sudo -u \<user> \<command> in the correct path should work , imho
[12:05:14] <Anmol> I want to run application command but not with the admin user, rather with with the user.
[12:05:58] <Anmol> > what do you want to do exactly ?

This was not working some how, so was wondering there is yunohost command to do that now.
[12:06:24] <isAAAc> wich app ?
[12:06:42] <Anmol> > wich app ?

my_webapp
[12:06:56] <isAAAc> oh
[12:07:54] <isAAAc> perhaps a bit more complex than i thought, did you tried sudo -u <user> <command> ?
with user == owner of the app path
[12:10:01] <Anmol> > perhaps a bit more complex than i thought, did you tried sudo -u <user> <command> ?
> with user == owner of the app path

Yeah, I tried it, but did not worked. Found it `yunohost app shell user` :)
[12:10:38] <isAAAc> discovering this command
[12:11:42] <Salamandar> > <@anmol:im.anmol.net.in> Yeah, I tried it, but did not worked. Found it `yunohost app shell user` :)

did not worked == ?
[12:13:17] <Anmol> > <@Salamandar:matrix.org> did not worked == ?

it worked, thanks.
[12:13:30] <Anmol> but legacy mode
[12:15:10] <Anmol> Can I register a port manually?
[12:19:07] <Salamandar> a public port ?
[12:20:05] <Salamandar> i dont remember the command, but in the web admin ui, yes, you can
[12:20:19] <Anmol> > <@Salamandar:matrix.org> a public port ?

Yeah, I mean like the apps do, is there a command for that ?
[12:20:31] <Salamandar> although it won't be linked to your app, but you'll be able to open it so that your app can listen on it
[12:20:41] <Salamandar> but there are 2 kinds of ports:
[12:21:24] <Salamandar> * the port the app listens to, but only internal : nginx handles HTTPs, security, and such
* the public port: for special things
[12:22:08] <Anmol> I want to register it, so other apps don't use it. Yeah I want the first one , internal one.
[12:22:44] <Salamandar> my_webapp comes with a port, already, so you want a second one ?
[12:22:52] <Salamandar> i'm not sure, i'll look into it
[12:24:14] <Anmol> > <@Salamandar:matrix.org> my_webapp comes with a port, already, so you want a second one ?

I did not knew that. Where can I find it? Its not there in the my_webapp settings?
[12:29:01] <Salamandar> nah sorry i'm wrong :D
[12:43:52] <Salamandar> actually it looks like you just have to store the port as an app setting
[12:44:43] <Anmol> > <@Salamandar:matrix.org> actually it looks like you just have to store the port as an app setting

Really the yunohost check the port by app settings?
[12:44:47] <Salamandar> so something like yunohost app setting my_webapp port -v YOUR_PORT
[12:44:59] <Anmol> ohh...ok
[12:45:18] <Anmol> let me try it?
[12:45:35] <Salamandar> yes :)
[12:46:20] <Salamandar> > <@anmol:im.anmol.net.in> Really the yunohost check the port by app settings?

actually this port is only something internal to yunohost, because it's just a value yunohost has to allocate "smart"-ly
[12:46:28] <Salamandar> the exact code is
[12:46:33] <Salamandar> ```
used_by_process = os.system(
"ss --numeric --listening --tcp --udp | awk '{print$5}' | grep --quiet --extended-regexp ':%s$'"
% port
) == 0
# This second command is mean to cover (most) case where an app is using a port yet ain't currently using it for some reason (typically service ain't up)
used_by_app = os.system(
f"grep --quiet --extended-regexp \"port: '?{port}'?\" /etc/yunohost/apps/*/settings.yml"
) == 0
```
[12:46:59] <Salamandar> so a setting is enough to prevent other apps to register the same port
[12:47:08] <Salamandar> you could run the ss command just to be sure the port you want is available
[12:47:52] <Anmol> > <@Salamandar:matrix.org> ```
> used_by_process = os.system(
> "ss --numeric --listening --tcp --udp | awk '{print$5}' | grep --quiet --extended-regexp ':%s$'"
> % port
> ) == 0
> # This second command is mean to cover (most) case where an app is using a port yet ain't currently using it for some reason (typically service ain't up)
> used_by_app = os.system(
> f"grep --quiet --extended-regexp \"port: '?{port}'?\" /etc/yunohost/apps/*/settings.yml"
> ) == 0
> ```

got it, thanks for the help.
[13:08:33] <pti-jean> Salamandar, En RPI 3 on peut aussi booter sur l'USB sans carte sd!
[13:54:30] <Salamandar> ah !
[14:07:10] <xavierlanne> Petite question. Si je plaque l'image yunohost pour raspberry pi sur une clé USB / disque dur, c'est censé pouvoir démarrer ou ça devrait marcher directement comme pour la carte SD ?
[14:22:03] <pti-jean> xavierlanne, Je ne sais pas ce que tu entends par "plaquer une image" ou "marcher directement comme pour la carte SD"... Mais d'après moi les deux fonctionnent !
[14:31:20] <xavierlanne> Plaquer l'image = écrire l'image sur le support (commande dd).
Parce que je fini par avoir des doutes sur le fonctionnement de mon raspberry pi.
[15:03:56] <pti-jean> Des fois ce sont les disques USB qui ne fonctionnent pas à tous les coups !
[17:54:29] <rabdomant> I have two instance of yunohost in two different hardware: in one I have searXNG installed, in the other it is possible only to try the demo with searx.be: why?
[17:56:38] <rabdomant> sorry it's ok
[22:45:37] <xavierlanne> > <pti-jean> Des fois ce sont les disques USB qui ne fonctionnent pas à tous les coups !

J'ai fini par trouver l'erreur. Ou une partie des erreurs que j'avais.
C'est le convertisseur SATA --> USB qui plante de manière aléatoire.
Parfois pas de démarrage, parfois démarrage très lent, parfois très rapide. Je comprenais pas jusqu'à ce que j'ai eu un accès ssh et d'un coup : read-only, puis quelques secondes plus tard : error input/output.
Bref, j'ai utilisé un autre convertisseur et là ça marche. Mais j'avais pas pensé à cette erreur étant donné que le convertisseur qui bug est neuf.

Bon, tant pis. Merci pour votre aide !