Monday, August 12, 2024
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
 
             

[07:30:17] <matt> Good morning
[07:30:35] <matt> I have a recuring issue with updating Nextcloud on my instance of Yunohost
[07:30:51] <matt> Here is the log" https://paste.yunohost.org/raw/wixuxogola
[07:31:09] <matt> Do you think I should get to the forum and open a thread?
[07:55:29] <tituspijean> @matematt:matrix.orglooks like this issue: https://github.com/nextcloud/polls/issues/3551
[07:55:50] <tituspijean> Can you try disabling/removing the Polls app and try again?
[08:30:24] <matt> ok the problem is deeper, I usually never connect to the web version,
[08:32:31] <matt> I think a previous upgrade of the php packages from the sury have triggered an version incompatibility
[08:33:07] <matt> It tells me there is an internal error. So I tried to turn on maintenance mode before operating
[08:33:59] <matt> Do you know howw to install php8.0 and the correct modules to get back to a normal mode.
[08:34:09] <matt> but it says that it uses php7.4.33, but this version need php8.0
[08:35:00] <matt> php8.0 is installed.
[08:35:19] <matt> maybe the config.php files is clunky
[08:36:46] <tituspijean> > So I tried to turn on maintenance mode before operating

If you try something on the command line, we need to know what you wrote in the terminal. :)
[08:37:05] <matt> 😅
[08:37:24] <matt> sudo -u www-data php /var/www/nextcloud__2/occ maintenance:mode --on
[08:37:58] <tituspijean> Sorry, that's incorrect :) but first, is there any detail to the "internal error"?
[08:39:14] <tituspijean> then php occ will use the right php version ;)
[08:39:21] <tituspijean> to run commands in the app's context (including the right php version):
yunohost app shell nextcloud__2
[08:44:00] <matt> So how do I check the log in this shell?
[08:44:56] <matt> tail /var/log/nextcloud__2/nextcloud.log
[08:45:10] <matt> same way :/
[08:49:07] <matt> I found this : "Failed to open stream: No such file or directory at /var/www/nextcloud__2/lib/private/Files/Storage/Local.php#331""
[09:00:46] <matt> OK, I ended up modifying the config.php because the command php /var/www/nextcloud__2/occ maintenance:mode --on didn't work
[09:08:31] <matt> tituspijean How do I get the right information from the log? I keep looking but I cannot find any proper error log in nextcloud.log
[09:34:27] <tituspijean> (Sorry, in a meeting now at $dayjob 😅)
[09:35:32] <matt> No worries, I have time. $dayjob as well :)
[10:08:31] <matt> Here is the problem I have, I cannot send any command via php:
nextcloud__2@domain:~$ php occ app:disable Polls
Error in argument 1, char 1: no argument for option -
[13:21:23] <Marc_> Hello, I'm self-hosting services (essentially XMPP and Adguard Home) on a Raspberry Pi 4 on raspbian and I'm considering to migrate to Yunohost. I have two questions
[13:23:00] <Marc_> I actually use ejabberd as XMPP server, if I switch to Yunohost I'll have to migrate from ejabberd to metronome too, can I export ejabberd database and import it on metronome ?
[13:23:34] <Aleks (he/him/il/lui)> i highly doubt it since they are two completely different software
[13:24:16] <Marc_> For emails I would to prevent me to read my user's emails, is the Yunohost mail server compatible either with mail_crypt with per user keys or trees ?
[13:24:21] <Aleks (he/him/il/lui)> on the other hand, YunoHost 12.x/Bookworm doesn't ship Metronome anymore (it's turned into an app) so i suppose you could set up ejabberd manually (but then what's the big gain in switching to YunoHost 😅)
[13:24:46] <Aleks (he/him/il/lui)> > <Marc_> For emails I would to prevent me to read my user's emails, is the Yunohost mail server compatible either with mail_crypt with per user keys or trees ?

not really, except if you tweak stuff by hand possibly
[13:27:37] <Marc_> > on the other hand, YunoHost 12.x/Bookworm doesn't ship Metronome anymore (it's turned into an app) so i suppose you could set up ejabberd manually (but then what's the big gain in switching to YunoHost 😅)
Ok thank you, I already did it on my actual server but it would be less convenient for users to use two accounts. I'll think about it
[13:28:44] <Marc_> > > <Marc_> For emails I would to prevent me to read my user's emails, is the Yunohost mail server compatible either with mail_crypt with per user keys or trees ?
>
> not really, except if you tweak stuff by hand possibly
Ok, my main question was about passwords since they're supposed to be secret
[13:29:27] <Aleks (he/him/il/lui)> (also i'll sound bad at marketing the project i contribute to but Adguard home is a tricky app to integrate, their might be some hickups in the current app, though I think it was heavily improved recently)
[13:29:44] <Aleks (he/him/il/lui)> hmmm idk, passwords are hashed of course yeah ?
[13:30:05] <Aleks (he/him/il/lui)> but mails are still stored in clear by default yeah
[13:32:09] <Marc_> > (also i'll sound bad at marketing the project i contribute to but Adguard home is a tricky app to integrate, their might be some hickups in the current app, though I think it was heavily improved recently)
I can install it manually, I'm the only one user of Adguard Home
[13:33:13] <Marc_> I have installed Yunohost on an old laptop for testing
[13:38:43] <Marc_> And I tried to enable mail_crypt but the doc is unclear for me:
I added these lines on /etc/dovecot.conf
```
mail_attribute_dict = file:%h/Maildir/dovecot-attributes
mail_plugins = $mail_plugins quota notify push_notification mail_crypt
```
and
```
plugin {
mail_crypt_curve = secp521r1
mail_crypt_save_version = 2
mail_crypt_require_encrypted_user_key = yes
}
```

And on /etc/dovecot-sql.conf.ext
```
password_query = SELECT email as user, password, '%w' AS userdb_mail_crypt_private_password FROM users WHERE email='%u';
```
[13:39:51] <Aleks (he/him/il/lui)> uuuuh that sql query feels like the password used to encrypt is ... in cleartext in some DB ?
[13:40:01] <Aleks (he/him/il/lui)> that kind of defeats the purpose ? x_X
[13:41:19] <Marc_> Strange
[13:41:34] <Marc_> I'm following the doc: https://doc.dovecot.org/configuration_manual/mail_crypt_plugin/
[13:42:19] <Marc_> I just change "FROM virtual_users" to "FROM users" because I see Yunohost uses system users
[13:42:57] <Aleks (he/him/il/lui)> YunoHost doesn't use system users, users are in an LDAP database
[13:44:38] <Marc_> Ah ok
[13:45:05] <Marc_> But each one has a home dir
[13:46:18] <Aleks (he/him/il/lui)> no need to be a system user to have a home dir
[13:46:28] <Aleks (he/him/il/lui)> though "system user" is a fuzzy notion
[13:46:58] <Aleks (he/him/il/lui)> but by "system user" i assume you mean "a classical Linux/UNIX user existing via the fact that it's listed in /etc/passwd"
[13:47:31] <Aleks (he/him/il/lui)> but there are mechanism to extend what are the existing user on a system, such as via an LDAP database, nslcd / nsswitch / unscd etc
[13:48:09] <Marc_> Ok
[13:48:19] <Marc_> > but by "system user" i assume you mean "a classical Linux/UNIX user existing via the fact that it's listed in /etc/passwd"
Yes I mean that
[14:04:28] <Marc_> But when I send an email to myself I get this error in Evolution:
L’erreur signalée était « L’ajout à Sent a échoué : Erreur lors de l’ajout du message: generate_keypair(Sent) failed: mail_crypt_require_encrypted_user_key set, cannot generate user keypair without password or key (0.003 + 0.000 + 0.002 secs).
[14:06:48] <Aleks (he/him/il/lui)> ¯\\\_(ツ)\_/¯ i never experimented with mail\_crypt
[14:07:39] <Marc_> Ok thank you
[14:09:46] <Marc_> I'll post my question on the forum
[14:36:15] <matt> > <@matematt:matrix.org> Here is the problem I have, I cannot send any command via php:
> nextcloud__2@domain:~$ php occ app:disable Polls
> Error in argument 1, char 1: no argument for option -

Mabe [Aleks (he/him/il/lui)](https://matrix.to/#/%40Alekswag%3Amatrix.org) can help?
[14:36:49] <matt> I was discussing this issue with tituspijean this morning
[14:37:44] <Aleks (he/him/il/lui)> i'm guessing you opened the shell with `yunohost app shell nextcloud__2` right ?
[14:37:59] <Aleks (he/him/il/lui)> can you show the result of `alias php` ?
[15:08:46] <Marc_> ejabberd will not be added as an app on Bookworm ?
[15:09:59] <Aleks (he/him/il/lui)> not particularly, it's already a big step to remove metronome from the core by default (allowing to possibly use other xmpp servers more easily), just gotta find some XMPP enthusiast to package ejabberd to the catalog too ...
[15:12:26] <Marc_> Ok
[16:34:00] <Séβαστιεν, wokiste végétal> Arf … je crois que j’ai fait une bétise.
Aujourd’hui, j’ai changé de registrar pour mon nom de domaine (Gandi -> Infomaniak).
Et comme un nigaud, je n’ai pas récupéré ma config DNS depuis Gandi avant de passer à Infomaniak.
Évidemment, je n’ai pas mon serveur sous la main … et je n’y ai plus accès car le nom de domaine ne redirige plus vers lui.
¿ Il y a moyen de récupérer le coup en paramètrant mes DNS Infomaniak ? Sachant que j’ai avec moi des sauvegardes tar de mon Yunhost.
[16:40:57] <Aleks (he/him/il/lui)> hmmm apriori si tu connais l'IP de ton serveur faut surtout creer un enregistrement de type A qui fait pointer ton domaine vers l'IP de ton serveur
[16:41:04] <Aleks (he/him/il/lui)> ou alors tu peux aller sur ton serveur avec son IP globale
[16:42:51] <Séβαστιεν, wokiste végétal> Je ne connais pas l’IP de mon serveur. Elle serait quelque part dans le tar ?
[16:44:26] <Séβαστιεν, wokiste végétal> J’ai cherché en vain.
[17:03:03] <Séβαστιεν, wokiste végétal> Ou depuis le cache de mon navigateur ?
[17:35:19] <Aleks (he/him/il/lui)> okay ...
[17:35:19] <Aleks (he/him/il/lui)> c'est un VPS ? un serveur à la maison ?
[17:35:19] <Aleks (he/him/il/lui)> tu connais pas l'IP de ton serveur ...
[17:45:47] <Séβαστιεν, wokiste végétal> Le serveur est chez mes parents, à 40km de chez moi.
[17:56:59] <Marc_> Ah je pouvais demander de l'aide en français en fait 😅️
[18:30:14] <Aleks (he/him/il/lui)> > <@tuxakadjseb:mozilla.org> Le serveur est chez mes parents, à 40km de chez moi.

dans ce cas si t'as moyen de contacter une personne la bas, tu peux lui demander d'aller sur genre https://whatismyipaddress.com/
[18:30:57] <Aleks (he/him/il/lui)> (bon faut ignorer les conneries sur "Your location might be exposed", c'est du fear-monging pour essayer de vendre du VPN)
[18:33:49] <tufek> https://ip.yunohost.org/ < all 😆
[18:34:35] <Séβαστιεν, wokiste végétal> Personne là-bas (ils sont en vacances). En plus le PC familial est en réparation.
Je vais aller là-bas, démarrer le serveur avec une distrib live pour récupérer l’IP.
¿ Pas d’autres solution a priori ?
[18:42:41] <Séβαστιεν, wokiste végétal> Ah si ! Je suis sauvé. J’avais noté l’IPv4 global.
[18:46:33] <Séβαστιεν, wokiste végétal> Je vais voir sur ma config Infomaniak si je peux rentrer tout ça.
[19:18:09] <Séβαστιεν, wokiste végétal> Tout semble rentrer dans l’ordre 😀
[19:26:17] <Séβαστιεν, wokiste végétal> En fait, je m’étais écrit quelques notes pour faciliter la restauration. Et dans ces notes, j’avais noté l’IP.
[19:31:59] <Séβαστιεν, wokiste végétal> Merci pour votre patience et de m’avoir aidé à corriger mes conneries.
[19:33:00] <Séβαστιεν, wokiste végétal> ¿ A c’est pour l’IPv4 et AAAA pour l’IPv6 ?
[19:33:24] <Aleks (he/him/il/lui)> yep
[19:33:47] <Aleks (he/him/il/lui)> (c'est lié à la longueur du cri que tu pousses lorsque tu as un problème avec)
[19:34:29] <Séβαστιεν, wokiste végétal> mdr
[20:51:26] <geoma> I am trying to install flohmarkt but can't because I already have couchdb installed... how do I know what app installed couchdb and if I can uninstall it or find out its password for flohmarkt to use/