Friday, February 09, 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
     
             

[13:39:20] <Chatpitaine Caverne> > <@Alekswag:matrix.org> cf also https://github.com/YunoHost-Apps/nextcloud_ynh/pull/648 but to me it's not the right fix, i'm not sure why the issue happens in the first place because the phpversion setting is explicitly fetched, gotta dig deeper into the log from the last comment

Hello, found another consequence of the nextcloud admin panel trick :
```
/etc/yunohost/apps/nextcloud # grep -Rnw './' -e '7.4'
./scripts/upgrade:53: NEXTCLOUD_PHP_VERSION="7.4"
./settings.yml:18:fpm_config_dir: /etc/php/7.4/fpm
./settings.yml:29:phpversion: '7.4'
```
Tell me if you need a report somewhere else. TY.
[14:06:16] <philippe> > <@obsidian7:matrix.org> On dirait que je vais devoir hébérger un gitlab (c'est trop lourd pour ce que je veux faire mais quand il faut, il faut ...) :(

j'avais la même préoccupation, il semble que woodpecker devrait être une option aussi, mais je n'ai pas encore réussi à configurer l'intégration avec gitea
[14:06:51] <ben> hmm I need some help for matrix synapse, when I made someone an mod in a room on my server it somehow, I guess I scrolled with the mouse, made me a mod too, so now the room is adminless, which is a pitty. There seems to be possible ways to make a user in the room an admin again, but I can't get it done. :-(

Anyone here who could help me?

I have cli access, my matrix user should be admin of the server.

it is Yunohost, fully updated, except for nextcloud app.
[14:12:45] <Mateusz Szymański> > <@ben:utzer.de> hmm I need some help for matrix synapse, when I made someone an mod in a room on my server it somehow, I guess I scrolled with the mouse, made me a mod too, so now the room is adminless, which is a pitty. There seems to be possible ways to make a user in the room an admin again, but I can't get it done. :-(
>
> Anyone here who could help me?
>
> I have cli access, my matrix user should be admin of the server.
>
> it is Yunohost, fully updated, except for nextcloud app.

https://matrix-org.github.io/synapse/latest/admin_api/rooms.html#make-room-admin-api ? not really YNH-specific
[14:12:45] <pixelgesicht> Hello, I'm having problems with ldap and piwigo on yunohost. I just cannot find the correct configuration. I am already in contact with the ldap-plugin developer of the piwigo plugin but now he wants to see the log files of ldap login, I just have nno idea where to find them. Anyone can help me with it?
[14:15:01] <ben> > <@orhtej2:matrix.org> https://matrix-org.github.io/synapse/latest/admin_api/rooms.html#make-room-admin-api ? not really YNH-specific

I spend 1 hour already, will read the link later and try. Thanks.
[14:22:26] <Mateusz Szymański> > <@pixelgesicht:frei.chat> Hello, I'm having problems with ldap and piwigo on yunohost. I just cannot find the correct configuration. I am already in contact with the ldap-plugin developer of the piwigo plugin but now he wants to see the log files of ldap login, I just have nno idea where to find them. Anyone can help me with it?

what config are you trying? The one that works for me is based on what Funkwhale_ynh is doing: https://github.com/YunoHost-Apps/funkwhale_ynh/blob/958401bca40f8f21e348fbfa061327e0798f5531/conf/env.prod#L151C1-L159C32
[14:25:29] <Mateusz Szymański> from what I can tell we're using default `slapd` logging config which is 'log nothing to journalctl'
[14:29:44] <pixelgesicht> > <@orhtej2:matrix.org> what config are you trying? The one that works for me is based on what Funkwhale_ynh is doing: https://github.com/YunoHost-Apps/funkwhale_ynh/blob/958401bca40f8f21e348fbfa061327e0798f5531/conf/env.prod#L151C1-L159C32

I'm tryin to setup the ldap_login Plugin of Piwigo. But there is always the error message "Error : Binding OK, but no valid DN found on server ldap://localhost:389 for user xyz" So the dev asked for a log to see what goes wrong
[14:29:45] <Mateusz Szymański> did you set any config?
[14:30:29] <Mateusz Szymański> typical gotcha would be `ld_binddn`needs to be `''`
[14:43:37] <Mateusz Szymański> hmm indeed it's there and looks properly set up
[14:43:37] <pixelgesicht> > <@orhtej2:matrix.org> did you set any config?

nope, I thought because the ldap_plugin is already there after installation of piwigo, I don't need to set any config
[14:43:38] <Mateusz Szymański> 🤷 no clue then
[14:52:40] <pixelgesicht> ok, thx, I found the location of the log /var/www/piwigo/plugins/Ldap_Login/logs, so hope I can go on from there
[15:02:12] <Salamandar> > <@philippe:ecologeek.ch> j'avais la même préoccupation, il semble que woodpecker devrait être une option aussi, mais je n'ai pas encore réussi à configurer l'intégration avec gitea

*ahem*
[15:02:13] <Salamandar> je suis le packageur de woodpecker, c'est un peu la galère l'intégration
[15:02:22] <Salamandar> mais j'ai réussi à la faire fonctionne sur un serveur de test
[17:43:33] <philippe> > <@Salamandar:matrix.org> je suis le packageur de woodpecker, c'est un peu la galère l'intégration

intéressant, y'a un truc à savoir ? je n'arrive pas à avoir oauth qui fonctionne
[17:43:33] <Salamandar> Chépu 😔
[17:43:34] <ben> > <@orhtej2:matrix.org> https://matrix-org.github.io/synapse/latest/admin_api/rooms.html#make-room-admin-api ? not really YNH-specific

so how can I use the API from CLI with that command?

POST /_synapse/admin/v1/rooms/<room_id_or_alias>/make_room_admin
{
"user_id": "@foo:example.com"
}

[17:43:34] <Salamandar> Faut que les applis soient en public je pense déjà
[18:07:21] <ben> > <@chatpitaine:cirkau.art> ben: I'm out of your question, but maybe not of your goal. Can't you install synapse admin on your Yunohost server ? It's easy in it.

ah, I tried that, but somehow I fail to sign in, it just shows me the synapse admin gui for split second and then wants me to login again.
[18:07:21] <Chatpitaine Caverne> ben: I'm out of your question, but maybe not of your goal. Can't you install synapse admin on your Yunohost server ? It's easy in it.
[18:08:07] <ben> ah, tried again, now loads
[18:08:13] <ben> ok, will check there now.
[18:10:20] <ben> can you maybe point me how to do it with the synapse admin?
[18:23:11] <ben> > <@chatpitaine:cirkau.art> >can you maybe point me how to do it with the synapse admin?
>
> ben: Please never use the threads on this room, many people can't easily reed them. TY.
>
> Once your are inside Synapse admin, you go on rooms, search for your broken admin room, Click on it, Go to members, click on your profile you want to re-become admin and give him admin chek-box.

I will check again, but I think there is no such option in any of the rooms, not the ones I am admin in nor the one I have the problem with.

Thanks for the info about threads. I thought that would be better to not annoy everyone in the room, but I don't mind not using a thread.

it is so annoying, that it was even possible to make my admin user a moderator only, I even realized it when it happened and thought... now carefully look for the cancel button, but it was saved instantly. Such a painful user experience.
[18:23:11] <Chatpitaine Caverne> >can you maybe point me how to do it with the synapse admin?

ben: Please never use the threads on this room, many people can't easily reed them. TY.

Once your are inside Synapse admin, you go on rooms, search for your broken admin room, Click on it, Go to members, click on your profile you want to re-become admin and give him admin chek-box.
[18:25:53] <ben> https://aria.im/_matrix/media/v1/download/utzer.de/SxdAeQCkuUFYPBdNSdTTMyQL
[18:31:04] <Chatpitaine Caverne> https://aria.im/_matrix/media/v1/download/cirkau.art/gMokoORovDcdcdooLHAfszPZ
[18:31:05] <ben> yes, but that is just the users setting, not the room settings and the user is server admin, but not room admin.
[18:31:05] <Chatpitaine Caverne> if you click on the user, don't you get something like this (mine is french) :
[18:34:54] <Chatpitaine Caverne> Sorry, completely missed that point... Never used for that... Let me search a bit.
[18:34:55] <ben> > <@chatpitaine:cirkau.art> Sorry, completely missed that point... Never used for that... Let me search a bit.

I mean I searched a bit online and it seems that it is possible to recover the admin, I also have an API call from above, which seem to work with this curl:
curl -v -X POST -H "Authorization: Bearer my_token_for_ben_utzer.de" -H "Content-Type: application/json" -d '{"user_id": "@ben:utzer.de"}' 'https://matrix.utzer.de/_synapse/admin/v1/rooms/!JHGZEDcZuseubejvAiV:utzer.de/make_room_admin'

(Switched out the room id)
[18:36:31] <ben> that curl returns an empty bracket {} without the -v and with the verbose it prints some long information that does not show any problem and has some HTTP200 as well.
[18:46:19] <douwe> hey peeps. good evening (or morning), question: I need to migrate my YNH installation to another VPS.
I am doubting to do a fresh install and move data myself, or backup the server, and then restore from backup.
[18:46:33] <douwe> anyone here with a strong opinion on the best migration route?
[18:47:13] <Aleks (he/him/il/lui)> people sometimes report sucesful migration by backing up the entire yunohost using yunohost backup system and restoring the backup on the new setp
[18:48:59] <douwe> Hey Aleks (he/him/il/lui) I might try that indeed. Moving the 17Gb backup file with scp to the new server would then be the most logical probably, right?

The main reason I am doubting is that my current YNH VPS has a never resolved issue with Nextcloud: https://help.nextcloud.com/t/this-server-has-no-working-internet-connection-when-it-actually-does/167527/18
[18:49:40] <douwe> So maybe a fresh Nextcloud install resolves that...
[18:50:50] <douwe> By the way, let me use the occasion to thank all involved in YNH, but you in particular for the years of work that went into this project. It is truly one of of my favourite pieces of software ever. ❤️
[18:50:54] <ben> > <@Alekswag:matrix.org> people sometimes report sucesful migration by backing up the entire yunohost using yunohost backup system and restoring the backup on the new setp

I did that some months ago.
[18:56:43] <Chatpitaine Caverne> ben: I passed on private room with you. Cause it start to be a bit long for Yunohost support room for a non Yunohost subject.
If we manage to find it, we'll report here for people general knowledge.
[19:23:47] <tonio10> Hi! How are you? I need help, I receive emails every 10 min. It's written ns0.yunohost.org is not affiliated to Ipv6 or something like that.. It's a dyndns problem I think ^^^
[19:41:59] <Chatpitaine Caverne> Well, well, well, doesn't seem possible to get back a room admin privilege if no more admins in the room...
For knowledge : general discussion over here and arround : https://github.com/matrix-org/matrix-spec/issues/165
Lets be careful when playing with admin role privileges...
[19:42:00] <ben> > <@chatpitaine:cirkau.art> Well, well, well, doesn't seem possible to get back a room admin privilege if no more admins in the room...
> For knowledge : general discussion over here and arround : https://github.com/matrix-org/matrix-spec/issues/165
> Lets be careful when playing with admin role privileges...

and if you demote yourself it is active instantly, no saving needed, no cancel possible it seems. Not even the "are you sure?" is shown.
[20:10:55] <douwe> quick q': if I want to restore an app, do I first need to make the (sub)domain related to the app, or will the restore function also (re)create the domain?
[20:11:51] <Aleks (he/him/il/lui)> the restore doesn't recreate the domain automatically
[20:12:37] <douwe> ok, that would explain why it failed 😅
[20:17:43] <ben> I think that is also written somewhere... but if you restore the whole yunohost you don't need to do that and also all other things will be overwritten.
[20:33:22] <douwe> Yeah, I am doing the restoration a bit on the cautious side: app by app and no system settings.
[20:33:47] <ben> > <@douwe:thorp.eu> Yeah, I am doing the restoration a bit on the cautious side: app by app and no system settings.

that might not work... because the users are not there or have different ID. But just try.
[20:33:51] <ben> not sure
[20:34:34] <douwe> ahw, didn;t think of that. I thought I just recreate the users later (are just a few...). But there might indeed be SSO issues then...
[20:45:31] <ben> I think you can either restore an app and it will work or it won't. During the restore it will reinstall the app and apply the few settings included in the backup, then it will restore the apps data/database, if there is one app that does not work, like nextcloud then there is two options I think, try to restore see if that solved the problem, if not, you can restore without. In that case you might keep the old NC running on the old VPS and then ask the users to move to a new installation.

Like old nextcloud.example.com and new cloud.example.com and then users can move data by sharing all with the new server. You can actually move the data manually by Rsync and then make nextcloud reindex a folder.
[20:46:19] <ben> advantage, you'll also keep the users and their personal data (not the nextcloud data, but form their home folder) and also it will keep the mails and other stuff.
[20:47:44] <ben> if the full restore does not work or has the same issue in Nextcloud you can still start from scratch an reset the new VPS again. To see if the restore worked you need to change the domains you use (subdomains and domains) DNS entries.
[20:49:20] <douwe> cool, thnx for all these tips! 🚀
[23:24:12] <Anmol> My dnsmasq is failing after installing pihole. regen-conf says this: https://paste.yunohost.org/naxekayupu.yaml