Wednesday, October 04, 2023
support@conference.yunohost.org
October
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
         

[06:12:07] <jwgn> > <@jwgn:matrix.org> not sure if I did this correctly, but I have created a pull request with a possible fix (if it's really just a typo) https://github.com/YunoHost-Apps/synapse_ynh/pull/417

https://github.com/YunoHost-Apps/synapse_ynh/pull/417#issuecomment-1746186756

Already done by [#413](https://github.com/YunoHost-Apps/synapse_ynh/pull/413)

How do I use the corrected version?
[06:34:18] <jwgn> Seems it has not yet been merged https://github.com/YunoHost-Apps/synapse\_ynh/pull/415 So how can I switch to the testing branch to get the fixed version?
[06:49:00] <jwgn> ```
08:48:17 jwgn@f1sh ~ → sudo yunohost app upgrade synapse -u https://github.com/YunoHost-Apps/synapse_ynh/tree/testing
Error: Could not find synapse in the list of installed apps
```
[09:26:48] <jwgn> any advise?
[09:28:04] <Salamandar> can you run yunohost app list to see what apps you have installed ?
[09:29:39] <jwgn> yes, it's not in the list
[09:30:34] <jwgn> and restore still fails with setuptools dependency error. there is a fix, but it's in testing. I don't know how to use the testing tree for restore
[09:46:54] <Chatpitaine Caverne> > <@jwgn:matrix.org> and restore still fails with setuptools dependency error. there is a fix, but it's in testing. I don't know how to use the testing tree for restore

I'm afraid you gonna have to modify and report the fix inside the backup archive. And then restore with this modified archive.
[10:14:16] <jwgn> what do I need to modify there and how?
[10:27:09] <jwgn> ok `/apps/synapse/settings/scripts/_common.sh` apparently
[10:29:56] <jwgn> > <@chatpitaine:cirkau.art> I'm afraid you gonna have to modify and report the fix inside the backup archive. And then restore with this modified archive.

what do you mean by "report the fix"?
[10:35:53] <jwgn> same error https://paste.yunohost.org/raw/sunolebire
[10:36:25] <Chatpitaine Caverne> The curpit :
[10:36:30] <Chatpitaine Caverne> The curpit : https://github.com/YunoHost-Apps/synapse_ynh/blob/master/scripts/_common.sh#L49-L54
[10:37:09] <jwgn> yes, changed it to `pip3 install --upgrade setuptools wheel pip`
[10:37:22] <Chatpitaine Caverne> Remove the If else fi and keep only pip3 install -- upgrade setuptools whhel pip.
[10:37:36] <Chatpitaine Caverne> > <@jwgn:matrix.org> yes, changed it to `pip3 install --upgrade setuptools wheel pip`

shit, didn't work ?
[10:37:36] <jwgn> > <@chatpitaine:cirkau.art> Remove the If else fi and keep only pip3 install -- upgrade setuptools whhel pip.

this is exactly what I did
[10:39:38] <Chatpitaine Caverne> Are you sure you executed the modified version cause in the log, I see :
```
++ lsb_release --codename --short
2023-10-04 12:34:47,330: DEBUG - + '[' bullseye == bullseye ']'
2023-10-04 12:34:47,330: DEBUG - + pip3 install --upgrade setuptools==60.8.2 wheel pip
2023-10-04 12:34:48,560: DEBUG - Collecting setuptools==60.8.2
2023-10-04 12:34:48,585: DEBUG - Using cached setuptools-60.8.2-py3-none-any.whl (1.1 MB)
```
[10:39:44] <jwgn> oh I canged it to `pip3 install --upgrade setuptools wheel pip pip3 install --upgrade setuptools wheel pip` accidentially. will try again
[10:55:24] <jwgn> restoring...wish me luck
[10:55:30] <jwgn> `Reinstalling dependencies...` is already through
[11:01:12] <jwgn> It worked! my synapse is back online 🤩
[11:17:44] <jwgn> seems the backup just takes the tar.gz file, so no idea why there is a .tar symlink pointing to that tar.gz
[11:59:53] <Chatpitaine Caverne> I think this is for compatibility reason with the yunohost admin page showing the backups when the compression feature was added.
[17:42:21] <fch> I ran some updates today, but openssl was kept back:
[17:42:23] <fch> $ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
openssl
The following packages will be upgraded:
libc-bin libc-dev-bin libc-devtools libc-l10n libc6 libc6-dbg libc6-dev libssl-dev libssl1.1 locales
10 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 20.5 MB of archives.
After this operation, 17.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y

[17:43:05] <fch> is it safe to run sudo apt install openssl? that's what I mainly do on debian when this occurs
[17:53:36] <fch> no, not a good idea lol
[17:53:43] <fch> $ sudo apt install openssl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
bc bind9-dnsutils dns-root-data dnsmasq dnsmasq-base dovecot-antispam equivs fail2ban fonts-glyphicons-halflings haveged jq ldap-utils libc-ares2 libdbd-ldap-perl libdigest-bubblebabble-perl libev4
libhavege2 libjq1 libjs-bootstrap4 libjs-popper.js libjs-requirejs libjs-sizzle libmail-spf-perl libmemcached11 libminiupnpc17 libnet-dns-perl libnet-dns-sec-perl libnet-ip-perl libnetaddr-ip-perl
libnss-ldapd libnss-myhostname libodbc1 libopendbx1 libopendbx1-sqlite3 libopendkim11 libpam-ldapd libperl4-corelibs-perl librbl1 libunbound8 libunwind8 libvbr2 lua-json lua-ldap lua-lpeg lua-rex-pcre
moulinette node-jquery nslcd nslcd-utils opendkim-tools php-mbstring php-php-gettext php7.4-curl php7.4-intl php7.4-ldap php7.4-mbstring php7.4-mysql php8.2-mbstring postfix-policyd-spf-perl postsrsd
python3-appdirs python3-attr python3-bottle python3-cached-property python3-dateutil python3-dbus python3-defusedxml python3-distro-info python3-freezegun python3-future python3-gevent
python3-gevent-websocket python3-greenlet python3-ifaddr python3-isodate python3-jinja2 python3-ldap python3-lexicon python3-markupsafe python3-miniupnpc python3-packaging python3-pip
python3-prompt-toolkit python3-psutil python3-publicsuffix2 python3-pyasn1 python3-pyasn1-modules python3-pygments python3-pyinotify python3-pyparsing python3-requests-file python3-systemd
python3-tldextract python3-wcwidth python3-wheel python3-zeep python3-zeroconf python3-zope.event python3-zope.interface rspamd slapd ssowat sudo-ldap unattended-upgrades unscd whois
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
yunohost yunohost-admin
The following packages will be upgraded:
openssl
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
yunohost
1 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 837 kB of archives.
After this operation, 13.8 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] ^C

[19:15:05] <jwgn> uninstalling yunohost seems to be a totally safe operation. go
[19:19:10] <ChriChri> > <@chrichri:librem.one> ```
> server {
> listen 80 default_server;
> # listen [::]:80 default_server;
> server_name *.xyz-point-do.main xyz-point-do.main *.xyzpoint.do.main xyzpoint.do.main *.xyz-point.do.main xyz-point.do.main;
> location / {
> return 301 https://www.xyz-point.do.main$request_uri;
> }
> location /.well-known/acme-challenge/ {
> root /var/www/html/;
> }
> }
> server {
> listen 443 ssl default_server;
> # listen [::]:443 ssl default_server;
>
> ssl_certificate /etc/ssl/www.xyz-point.do.main.fullchain.cer;
> ssl_certificate_key /etc/ssl/private/www.xyz-point.do.main.key;
> server_name www.xyz-point.do.main;
> location / {
> proxy_pass http://192.168.1.1/;
> }
> }
> ```
> This is my working config...

...from a not yunohost ngnix server...
[21:42:33] <Marsi> Hey so im getting this error in the installation process "Installation of Yunohost packages failed" and this is in the logs "Yunohost : Conflicts: openssl (>= 1.1.1o-0) but 1.1.1w-0~deb11u1+rpt1 is to be installed." can anyone help?
[21:43:22] <Marsi> i can give full logs in about 5min
[21:44:32] <orhtej2> > <@marsi59:matrix.org> i can give full logs in about 5min

Please do
[21:46:34] <Marsi> well i looked if its still there its not i will redo the installation now and then give the log
[21:46:44] <tituspijean> if that's you (https://forum.yunohost.org/t/rasperry-pi-2b-yunohost-installation-failing-due-to-openssl-package-conflict/26621) add logs there too. 😉
[21:46:56] <Marsi> nope not me
[21:47:20] <tituspijean> damn, once it's happenstance, twice it's a bug. ☹️
[21:53:20] <Marsi> https://aria.im/_matrix/media/v1/download/matrix.org/nVTeYNkfPBtSRgGzKxiJYRPZ
[21:53:22] <Marsi> here it is
[21:57:33] <tituspijean> You've got a RPI2 too?
[21:57:50] <Marsi> nope raspberry pi zero w
[21:59:17] <tituspijean> close enough in that case.
[21:59:25] <Marsi> yep
[21:59:38] <tituspijean> If it were any other package I would have suggested to force-remove it, but I think removing openssl might break something. Good thing it's a fresh system. 🙂
`sudo apt remove openssl -y`
[22:00:11] <tituspijean> then let's try `sudo apt install openssl=1.1.1w-0~deb11u1+rpt1`
[22:00:42] <Marsi> lol "Package 'openssl' is not installed, so not removed"
[22:00:59] <tituspijean> uhm wait I think I'm in the wrong
[22:01:48] <tituspijean> can you do a `apt update` then `apt search openssl`
[22:02:03] <tituspijean> YunoHost wants version >= 1.1.1o-0 but somehow apt wants to install 1.1.1w-0~deb11u1+rpt1
[22:04:20] <Marsi> do you really need everything of it it shows like 200 lines
[22:04:55] <Marsi> i found this "openssl/stable,now 1.1.1w-0~deb11u1+rpt1 armhf [installed]
Secure Sockets Layer toolkit - cryptographic utility

openssl-dbgsym/stable 1.1.1w-0~deb11u1+rpt1 armhf
debug symbols for openssl"
[22:04:58] <tituspijean> nope just check the version proposed for openssl
[22:05:28] <Marsi> so now try to install yunohost again?
[22:07:35] <Marsi> i assume when no one says anything it means yes
[22:08:11] <tituspijean> unfortunately it's not somehing you could fix I think. We need to report that upstream
[22:08:27] <Marsi> wdym?
[22:09:31] <tituspijean> YunoHost expects version >= 1.1.1o-0 but "only" 1.1.1w-0~deb11u1+rpt1 seem available to you
[22:09:55] <Marsi> ok
[22:10:11] <tituspijean> issue created: https://github.com/YunoHost/issues/issues/2261
[22:11:04] <Marsi> yep subscribed to it so i get the notifications but thanks for helping
[22:49:39] <Solrac> Hello. I've a question, has anyone tried a headless nextcloud client to sync specific folders? I'd like to trying doing something similar to sync my book library for use with Calibre Web