Sunday, August 06, 2023
support@conference.yunohost.org
August
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
31
     
             

[12:16:49] <Claus> After upgrading prosody earlier today it couldn't start. The log states: "Aug 06 14:12:46 prosody[148926]: Prosody was unable to find LuaSec" and "Aug 06 14:12:46 prosody[148926]: LuaSec is required for Prosody to run, so we will now exit.". Is there a safe way for me to add luasec? Can I simply use debians package manager? I host Yuno 11.2.3 stable on a VPS.
[12:22:06] <orhtej2> > <@claus:blabla.blablub.de> After upgrading prosody earlier today it couldn't start. The log states: "Aug 06 14:12:46 prosody[148926]: Prosody was unable to find LuaSec" and "Aug 06 14:12:46 prosody[148926]: LuaSec is required for Prosody to run, so we will now exit.". Is there a safe way for me to add luasec? Can I simply use debians package manager? I host Yuno 11.2.3 stable on a VPS.

Can you please share upgrade log? It should be available under ynh webui->tools->logs
[12:22:20] <orhtej2> Because luasec should have been installed
[12:24:27] <Claus> Sure, thanks: https://paste.yunohost.org/raw/widikixefa
[12:57:58] <orhtej2> > <@claus:blabla.blablub.de> Sure, thanks: https://paste.yunohost.org/raw/widikixefa

Strange, all look OK there
[13:00:17] <Claus> I also installed a prosody update yesterday, should I share those logs too?
[13:02:03] <orhtej2> > <@claus:blabla.blablub.de> I also installed a prosody update yesterday, should I share those logs too?

What you shared is the update log, isn't it
[13:03:08] <orhtej2> Can you try running `sudo apt autoremove` from command line? I feel like Lua 5.4 gets picked up instead of 5.2 as intended
[13:03:14] <Claus> > What you shared is the update log, isn't it

Yes, it is.
[13:03:44] <Chatpitaine Caverne> Claus: orhtej2 I have the exact same issue. I disabled Prosody cause I use Metronome and don't use the chat in Peertube, so I don't care. But there could be a general failure in this update.
[13:04:21] <Claus> Since prosody doesn't work I cant start jitsi conferences.
[13:05:28] <Claus> Did that, lua 5.4 was removed, but prosody still doesn't start.
[13:06:03] <Claus> Did that, lua 5.4 was removed, but prosody still doesn't start.
[13:09:13] <Chatpitaine Caverne> It's not only lua-sec in my case :
```
août 05 12:42:56 prosody[2857911]: **************************
août 05 12:42:56 prosody[2857911]: Prosody was unable to find lua-unbound
août 05 12:42:56 prosody[2857911]: This package can be obtained in the following ways:
août 05 12:42:56 prosody[2857911]: Debian/Ubuntu | sudo apt install lua-unbound
août 05 12:42:56 prosody[2857911]: luarocks | luarocks install luaunbound
août 05 12:42:56 prosody[2857911]: Source | https://www.zash.se/luaunbound.html
août 05 12:42:56 prosody[2857911]: Old DNS resolver library will be used
août 05 12:42:56 prosody[2857911]: More help can be found on our website, at https://prosody.im/doc/depends
août 05 12:42:56 prosody[2857911]: **************************
août 05 12:42:56 systemd[1]: prosody.service: Main process exited, code=exited, status=1/FAILURE
août 05 12:42:56 systemd[1]: prosody.service: Failed with result 'exit-code'.
août 06 15:01:06 systemd[1]: Started Prosody XMPP Server.
août 06 15:01:06 prosody[764741]: **************************
août 06 15:01:06 prosody[764741]: Prosody was unable to find luaexpat
août 06 15:01:06 prosody[764741]: This package can be obtained in the following ways:
août 06 15:01:06 prosody[764741]: Debian/Ubuntu | sudo apt install lua-expat
août 06 15:01:06 prosody[764741]: luarocks | luarocks install luaexpat
août 06 15:01:06 prosody[764741]: Source | http://matthewwild.co.uk/projects/luaexpat/
août 06 15:01:06 prosody[764741]: luaexpat is required for Prosody to run, so we will now exit.
août 06 15:01:06 prosody[764741]: More help can be found on our website, at https://prosody.im/doc/depends
août 06 15:01:06 prosody[764741]: **************************
août 06 15:01:06 prosody[764741]: **************************
août 06 15:01:06 prosody[764741]: Prosody was unable to find luasocket
août 06 15:01:06 prosody[764741]: This package can be obtained in the following ways:
août 06 15:01:06 prosody[764741]: Debian/Ubuntu | sudo apt install lua-socket
août 06 15:01:06 prosody[764741]: luarocks | luarocks install luasocket
août 06 15:01:06 prosody[764741]: Source | http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
août 06 15:01:06 prosody[764741]: luasocket is required for Prosody to run, so we will now exit.
août 06 15:01:06 prosody[764741]: More help can be found on our website, at https://prosody.im/doc/depends
août 06 15:01:06 prosody[764741]: **************************
août 06 15:01:06 prosody[764741]: **************************
août 06 15:01:06 prosody[764741]: Prosody was unable to find LuaSec
août 06 15:01:06 prosody[764741]: This package can be obtained in the following ways:
août 06 15:01:06 prosody[764741]: Debian/Ubuntu | sudo apt install lua-sec
août 06 15:01:06 prosody[764741]: luarocks | luarocks install luasec
août 06 15:01:06 prosody[764741]: Source | https://github.com/brunoos/luasec
août 06 15:01:06 prosody[764741]: LuaSec is required for Prosody to run, so we will now exit.
août 06 15:01:06 prosody[764741]: More help can be found on our website, at https://prosody.im/doc/depends
août 06 15:01:06 prosody[764741]: **************************
août 06 15:01:06 prosody[764741]: **************************
août 06 15:01:06 prosody[764741]: Prosody was unable to find lua-unbound
août 06 15:01:06 prosody[764741]: This package can be obtained in the following ways:
août 06 15:01:06 prosody[764741]: Debian/Ubuntu | sudo apt install lua-unbound
août 06 15:01:06 prosody[764741]: luarocks | luarocks install luaunbound
août 06 15:01:06 prosody[764741]: Source | https://www.zash.se/luaunbound.html
août 06 15:01:06 prosody[764741]: Old DNS resolver library will be used
août 06 15:01:06 prosody[764741]: More help can be found on our website, at https://prosody.im/doc/depends
août 06 15:01:06 prosody[764741]: **************************
août 06 15:01:06 systemd[1]: prosody.service: Main process exited, code=exited, status=1/FAILURE
août 06 15:01:06 systemd[1]: prosody.service: Failed with result 'exit-code'.
```
[13:10:10] <orhtej2> Try reporting issue on githuba https://github.com/YunoHost-Apps/prosody_ynh/issues
[13:10:51] <orhtej2> > <@chatpitaine:cirkau.art> It's not only lua-sec in my case :
> ```
> août 05 12:42:56 prosody[2857911]: **************************
> août 05 12:42:56 prosody[2857911]: Prosody was unable to find lua-unbound
> août 05 12:42:56 prosody[2857911]: This package can be obtained in the following ways:
> août 05 12:42:56 prosody[2857911]: Debian/Ubuntu | sudo apt install lua-unbound
> août 05 12:42:56 prosody[2857911]: luarocks | luarocks install luaunbound
> août 05 12:42:56 prosody[2857911]: Source | https://www.zash.se/luaunbound.html
> août 05 12:42:56 prosody[2857911]: Old DNS resolver library will be used
> août 05 12:42:56 prosody[2857911]: More help can be found on our website, at https://prosody.im/doc/depends
> août 05 12:42:56 prosody[2857911]: **************************
> août 05 12:42:56 systemd[1]: prosody.service: Main process exited, code=exited, status=1/FAILURE
> août 05 12:42:56 systemd[1]: prosody.service: Failed with result 'exit-code'.
> août 06 15:01:06 systemd[1]: Started Prosody XMPP Server.
> août 06 15:01:06 prosody[764741]: **************************
> août 06 15:01:06 prosody[764741]: Prosody was unable to find luaexpat
> août 06 15:01:06 prosody[764741]: This package can be obtained in the following ways:
> août 06 15:01:06 prosody[764741]: Debian/Ubuntu | sudo apt install lua-expat
> août 06 15:01:06 prosody[764741]: luarocks | luarocks install luaexpat
> août 06 15:01:06 prosody[764741]: Source | http://matthewwild.co.uk/projects/luaexpat/
> août 06 15:01:06 prosody[764741]: luaexpat is required for Prosody to run, so we will now exit.
> août 06 15:01:06 prosody[764741]: More help can be found on our website, at https://prosody.im/doc/depends
> août 06 15:01:06 prosody[764741]: **************************
> août 06 15:01:06 prosody[764741]: **************************
> août 06 15:01:06 prosody[764741]: Prosody was unable to find luasocket
> août 06 15:01:06 prosody[764741]: This package can be obtained in the following ways:
> août 06 15:01:06 prosody[764741]: Debian/Ubuntu | sudo apt install lua-socket
> août 06 15:01:06 prosody[764741]: luarocks | luarocks install luasocket
> août 06 15:01:06 prosody[764741]: Source | http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
> août 06 15:01:06 prosody[764741]: luasocket is required for Prosody to run, so we will now exit.
> août 06 15:01:06 prosody[764741]: More help can be found on our website, at https://prosody.im/doc/depends
> août 06 15:01:06 prosody[764741]: **************************
> août 06 15:01:06 prosody[764741]: **************************
> août 06 15:01:06 prosody[764741]: Prosody was unable to find LuaSec
> août 06 15:01:06 prosody[764741]: This package can be obtained in the following ways:
> août 06 15:01:06 prosody[764741]: Debian/Ubuntu | sudo apt install lua-sec
> août 06 15:01:06 prosody[764741]: luarocks | luarocks install luasec
> août 06 15:01:06 prosody[764741]: Source | https://github.com/brunoos/luasec
> août 06 15:01:06 prosody[764741]: LuaSec is required for Prosody to run, so we will now exit.
> août 06 15:01:06 prosody[764741]: More help can be found on our website, at https://prosody.im/doc/depends
> août 06 15:01:06 prosody[764741]: **************************
> août 06 15:01:06 prosody[764741]: **************************
> août 06 15:01:06 prosody[764741]: Prosody was unable to find lua-unbound
> août 06 15:01:06 prosody[764741]: This package can be obtained in the following ways:
> août 06 15:01:06 prosody[764741]: Debian/Ubuntu | sudo apt install lua-unbound
> août 06 15:01:06 prosody[764741]: luarocks | luarocks install luaunbound
> août 06 15:01:06 prosody[764741]: Source | https://www.zash.se/luaunbound.html
> août 06 15:01:06 prosody[764741]: Old DNS resolver library will be used
> août 06 15:01:06 prosody[764741]: More help can be found on our website, at https://prosody.im/doc/depends
> août 06 15:01:06 prosody[764741]: **************************
> août 06 15:01:06 systemd[1]: prosody.service: Main process exited, code=exited, status=1/FAILURE
> août 06 15:01:06 systemd[1]: prosody.service: Failed with result 'exit-code'.
> ```

In Claus case the package was installed /o\
[15:21:04] <eric_G> mavric34: need to be tested... https://github.com/YunoHost-Apps/deluge_ynh
[15:27:43] <Claus> > In Claus case the package was installed /o\

i rebooted the server, but that didn't help.
[16:03:21] <Claus> Now prosody is also missing luaexpat and luasocket. luaunbound is not listed as missing.
[19:15:43] <nalla22> Bonjour, j'ai créé un dossier à la racine du système de fichier, auquel j'ai donné les autorisations au groupe admins de yunohost, les utilisateurs admins de Yunohost ont effectivement les droits de lecture et d'écriture dans ce dossier...

Mais Synchting (installé depuis YunoHost) n'a pas les droits sur ce dossier, comment lui accorder les droits du groupe "admins" depuis l'interface Yunohost?
[19:35:23] <tituspijean[m]> nalla22 Depuis l'interface tu ne peux pas. Regarde du côté des ACL pour donner des droits supplémentaires à un autre groupe sur le dossier.
[19:35:45] <tituspijean[m]> Il faudra passer par la ligne de commande
[19:39:49] <nalla22> > <@titus:pijean.ovh> nalla22 Depuis l'interface tu ne peux pas. Regarde du côté des ACL pour donner des droits supplémentaires à un autre groupe sur le dossier.

J'ai déjà fait un `usermod -aG admins syncthing` pour ajouter l'utilisateur syncthing au groupe admins, puis j'ai lancé la commande `su -l syncthing` pour me connecter sur l'user et valider les changements sans redémarrer la machine, mais ça n'a pas fonctionné !
[19:40:15] <nalla22> https://aria.im/_matrix/media/v1/download/matrix.org/XfMhTfjULYxLIIFCEOJdOBOu
[19:41:14] <tituspijean[m]> Crois-tu qu'il est raisonnable de potentiellement donner un accès admin à une application ?
[19:41:19] <nalla22> Voici ce que la commande `grep syncthing /etc/passwd` m'a renvoyé : https://termbin.com/141u
[19:41:52] <nalla22> Malheureusement sans ça elle ne pourra pas accéder au dossier
[19:43:41] <nalla22> J'aurai besoin que d'autres applications comme syncthing (Jellyfin, photoprism...) puissent accéder également à ce dossier, et je n'ai pas envie de redémarrer la machine à chaque permission :/
[19:46:35] <tituspijean[m]> Il y a des alternatives. Puisque tu ne sembles pas vouloir envisager les ACL, faisons autrement.

1. Retire `syncthing` du groupe `admins`.
2. Crée un groupe intermédiaire `pouet`
3. `chown -R UnUtilisateur:pouet /TonDossier`
4. `chmod g+rws -R /TonDossier`
5. `usermod -aG pouet syncthing`
6. `usermod -aG pouet photoprism`
7. Etc.
[19:46:59] <tituspijean[m]> Pas besoin de redémarrer le serveur... juste les services des apps.
[19:47:42] <tituspijean[m]> Numéro 2 se fait avec `groupadd pouet`.
[19:49:04] <tituspijean[m]> *les services des apps concernées
[19:49:14] <nalla22> Je vais tester ça tout de suite, si ça fonctionne ça serait le meilleur compromis entre les deux :)
[19:57:56] <tituspijean[m]> 🤞
[20:04:19] <nalla22> tituspijean Effectivement, ça à fonctionner du premier coup, tu es un magicien 🧙‍♂️ ! Syncthing a désormais accès au dossier et la synchronisation des fichiers avec l'ancien NAS à démarré dès que j'avais reboot le service.

Je vais vite noter cette technique dans ma base de connaissance. Merci 🙂👍️
[20:47:05] <orhtej2> @Claus @Chatpitaine Caverne I reported https://github.com/YunoHost-Apps/prosody_ynh/issues/15, someone more competent than me needs to have a look at this