Friday, February 24, 2023
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
         
             

[12:02:51] <douwe[m]> hey
[12:03:37] <douwe[m]> I just installed YNH on debian 11 virtual server using the .nohost.me domain
[12:04:03] <douwe[m]> now I want to install a Let's Encrypt cert, but the websinterface won't allow me. Do I just need to wait a little for the DNS to update?
[12:04:12] <guilhem451[m]> great! :) godd day
[12:04:13] <guilhem451[m]> good day
[12:04:18] <guilhem451[m]> :)
[12:04:28] <guilhem451[m]> hello douwe
[12:05:42] <douwe[m]> hello willow.
[12:06:01] <guilhem451[m]> yes.in 2 days of time if dignostics of panel admin is good and everything is ok you will be able to choose lets encrypt.
[12:06:04] <douwe[m]> I was too impatient I just found out; waiting was the solution :-)
[12:06:16] <douwe[m]> 2 days is long. After running the diagnosis script; it let me install the cert
[12:06:40] <guilhem451[m]> but u can install many domains and subdomains and web apps less waiting !!
[12:06:54] <guilhem451[m]> yunohost is so much cool
[12:07:09] <douwe[m]> yeah I ❤️ YNH
[12:08:58] <guilhem451[m]> but you need to check regulary the validity of lets encrypt because "renouvellement automatique" don t works very fine for me
[12:10:27] <douwe[m]> ah, good tip. Is that also on a nohost.me domain?
[12:10:55] <douwe[m]> one other thing: I just installed a fresh YNH server with `curl https://install.yunohost.org | bash`.
[12:11:11] <douwe[m]> this installed YunoHost 11.1.11.1 (testing).
[12:11:32] <douwe[m]> isn't it a bit weird to server a testing branch when people use the default installing script?
[12:11:39] <douwe[m]> * isn't it a bit weird to serve a testing branch when people use the default installing script?
[12:12:17] <guilhem451[m]> i am on stable version
[12:16:41] <douwe[m]> that is nice. But how do you get the stable version on a new server when the default install script gives me testing?
[12:17:23] <douwe[m]> tbh, I think this is a bug
[12:17:29] <douwe[m]> in the script it says
[12:17:41] <douwe[m]> ```
###############################################################################
# Main functions #
###############################################################################

function usage() {
echo "
Usage :
`basename $0` [-a] [-d <DISTRIB>] [-h]

Options :
-a Enable automatic mode. No questions are asked.
This does not perform the post-install step.
-d Choose the distribution to install ('stable', 'testing', 'unstable').
Defaults to 'stable'
-f Ignore checks before starting the installation. Use only if you know
what you are doing.
-h Prints this help and exit
"
}
```
[12:17:53] <douwe[m]> Defaults to stable is clearly going wrong here
[12:19:49] <guilhem451[m]> ok but someone will explain to u how to do it in few moments... testing isn t dangerous :) i don t know the answer to do it but many people know how to do it
[12:21:33] <douwe[m]> reinstalling and testing to see if it happens again before I create more confusion ;-)
[12:21:39] <douwe[m]> * reinstalling and testing now to see if it happens again before I create more confusion ;-)
[12:28:21] <Aleks (he/him/il/lui)> :|
[12:28:32] <Aleks (he/him/il/lui)> 11.1.11 was mistakenly flagged as testing but it's actually stable
[12:28:48] <Aleks (he/him/il/lui)> I pushed a new version just to have it properly flagged as stable ...
[12:30:27] <Aleks (he/him/il/lui)> hercut: essaye `apt install libzip4=1.7.3-1` pour débloquer la situation
[12:45:11] <douwe[m]> I reinstalled and the default curl script now gave me 11.1.11.2 (stable).
[12:47:03] <douwe[m]> But I do have some issues installing apps...
[12:49:24] <douwe[m]> tried several apps. Most give this error now
[12:50:44] <c014> try sudo yunohost service restart
[12:51:43] <Aleks (he/him/il/lui)> ... that command doesnt even exist ... restart wat ?
[12:51:56] <Aleks (he/him/il/lui)> what's the actual error ? x_x
[12:52:48] <douwe[m]> ```
Error: "500"
Action: "GET" /yunohost/api/apps/manifest?app=cryptpad&with_screenshot&locale=en
```
[12:52:49] <c014> No I meant restart yunohost
[12:52:51] <douwe[m]> ```
Traceback

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 457, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 584, in process
return func(**arguments)
File "/usr/lib/python3/dist-packages/yunohost/app.py", line 907, in app_manifest
manifest["install"] = hydrate_questions_with_choices(raw_questions)
File "/usr/lib/python3/dist-packages/yunohost/utils/config.py", line 1621, in hydrate_questions_with_choices
question = ARGUMENTS_TYPE_PARSERS[raw_question.get("type", "string")](
File "/usr/lib/python3/dist-packages/yunohost/utils/config.py", line 1347, in __init__
if root_mail in user_info(user).get("mail-aliases", []):
File "/usr/lib/python3/dist-packages/yunohost/user.py", line 616, in user_info
if service_status("dovecot")["status"] != "running":
File "/usr/lib/python3/dist-packages/yunohost/service.py", line 357, in service_status
output = {
File "/usr/lib/python3/dist-packages/yunohost/service.py", line 358, in <dictcomp>
s: _get_and_format_service_status(s, infos) for s, infos in services.items()
File "/usr/lib/python3/dist-packages/yunohost/service.py", line 395, in _get_and_format_service_status
raw_status, raw_service = _get_service_information_from_systemd(systemd_service)
File "/usr/lib/python3/dist-packages/yunohost/service.py", line 370, in _get_service_information_from_systemd
d = dbus.SystemBus()
File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 195, in __new__
return Bus.__new__(cls, Bus.TYPE_SYSTEM, mainloop=mainloop,
File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 102, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 124, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
```
[12:52:56] <Aleks (he/him/il/lui)> there's no service called "yunohost"
[12:53:08] <Aleks (he/him/il/lui)> hm you don't have dbus installed on the machine
[12:53:36] <Aleks (he/him/il/lui)> i wonder why we havnt seen this error more frequently actually
[12:53:37] <Aleks (he/him/il/lui)> can you try `apt install dbus` ?
[12:54:56] <douwe[m]> ```
# apt install dbus
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dbus is already the newest version (1.12.24-0+deb11u1).
dbus set to manually installed.
```
[12:55:28] <douwe[m]> a little background. This is a fresh debian 11 install. the only things I did was
`apt update && apt upgrade && apt install curl`
[12:55:59] <c014> Had the same error some days ago, just restarted yunohost-api and it went away
[12:56:01] <douwe[m]> then I ran the YNH install script from the documentation, did postinstall stuff, ran the diagnosis, installed a certificate
[12:57:03] <Aleks (he/him/il/lui)> can you check if `systemctl | grep dbus` is showing a dbus service and socket ?
[12:57:20] <douwe[m]> > <@c014:libera.chat> Had the same error some days ago, just restarted yunohost-api and it went away

restarting fixed it indeed
[12:58:01] <douwe[m]> > <@Alekswag[m]:libera.chat> can you check if `systemctl | grep dbus` is showing a dbus service and socket ?

```
dbus.service loaded active running D-Bus System Message Bus
dbus.socket loaded active running D-Bus System Message Bus Socket
```
[12:58:10] <Aleks (he/him/il/lui)> @_@
[12:58:19] <c014> See.. I did a thing.. Helped
[12:58:28] <douwe[m]> 😆
[12:58:58] <douwe[m]> I hate it when restarting fixes things... as it doesn't really fix anything. The problem is gone now, but I don't know what it was
[12:59:09] <Aleks (he/him/il/lui)> wtf ... why would restarting yunohost-api magically create the dbus socket x_x
[12:59:24] <douwe[m]> I am giving a YNH workshop to some 30 people next week. Adding a step that says "now restart the server to install apps" just feels... meh...
[12:59:29] <c014> haha
[12:59:51] <Aleks (he/him/il/lui)> yeah and i don't know how to fix that issue either :|
[12:59:55] <c014> All in all yunohost is really awesome
[13:00:30] <douwe[m]> > <@c014:libera.chat> All in all yunohost is really awesome

it sure it. I am even making some money ginving this workshop this time. I'll make sure to wire a percentage to YNH
[13:00:48] <douwe[m]> > <@c014:libera.chat> All in all yunohost is really awesome

* it sure is. I am even making some money ginving this workshop this time. I'll make sure to wire a percentage to YNH
[13:00:54] <douwe[m]> * it sure is. I am even making some money giving this workshop this time. I'll make sure to wire a percentage to YNH
[13:06:15] <hercut> > <@Alekswag:matrix.org> hercut: essaye `apt install libzip4=1.7.3-1` pour débloquer la situation

Genial ca fonctionne ! Je vais tester l'application voir si elle fonctionne au mieux.

Merci beaucoup Aleks (he/him/il/lui) Tu assure a tout les coup ;)
[13:10:40] <hercut> Bon l'application ne fonctionne pas :'(
[13:11:11] <hercut> Je peux allé dessus mais apres ca ne fonctionne pas
[13:12:13] <hercut> quand je clique sur nimporte quel lien ca me renvoie sur l'acceuil de yunohost
[13:27:27] <fch> nextcloud ist not working anymore after updating to 25.0.4 on nextcloud-desktop on debian stable...anyone has the same problem?
[13:27:53] <fch> nextcloud web and mobile on lineage are working fine
[13:29:28] <Aleks (he/him/il/lui)> "not working" can mean anything
[13:33:05] <ljf[m]> https://forum.yunohost.org/admin/users/6678/alien3dsaul
[18:29:30] <kemi83> where did matrix in combination with whatsapp bridge save the userdata like thumbnails audio and so on, i plan to delete them periodicly because of limitet storage capacity
[18:46:44] <Chatpitaine Caverne> > <@kemi83:govinda.krshna.at> where did matrix in combination with whatsapp bridge save the userdata like thumbnails audio and so on, i plan to delete them periodicly because of limitet storage capacity

Not fully sure about Whatsapp bridge cause I don't use it , but to clean the local media, I found these links :
https://github.com/ffulm/scripts/blob/3df10ccd2f24dcf158676782fb82b35e935a9d43/clean_matrix
https://github.com/matrix-org/synapse/blob/v1.26.0/docs/admin_api/media_admin_api.md
https://github.com/matrix-org/synapse/blob/v1.26.0/docs/admin_api/README.rst

From these sources, and with some help on the Matrix Support room, I successfully executed this command which cleaned all the media files (not the people avatar) older than 3 months.
```
curl -v --header "Authorization: Bearer <MY_TOKEN>" -XPOST "http://localhost:8008/\_synapse/admin/v1/media/MYDOMAIN/delete?before\_ts=`date --date='3 months ago' +%s%3N`"

```
Hope this help you.
[18:48:22] <kemi83> thank you very much^^ il try that :)
[19:02:18] <Chatpitaine Caverne> > <@kemi83:govinda.krshna.at> thank you very much^^ il try that :)

Just in case here is the link of the synapse admin room where I found some help : https://matrix.to/#/#synapse:matrix.org