Thursday, November 21, 2024
support@conference.yunohost.org
November
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
 
             

[03:05:43] <thatoo> ```
libreerp@ynh:~$ source venv/bin/activate
(venv) libreerp@ynh:~$ pip show markupsafe
Name: MarkupSafe
Version: 2.1.2
Summary: Safely add untrusted strings to HTML/XML markup.
Home-page: https://palletsprojects.com/p/markupsafe/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD-3-Clause
Location: /var/www/libreerp/venv/lib/python3.11/site-packages
Requires:
Required-by: Jinja2
(venv) libreerp@ynh:~$ pip install --force markupsafe==2.0.1
Collecting markupsafe==2.0.1
Downloading MarkupSafe-2.0.1.tar.gz (18 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: markupsafe
Building wheel for markupsafe (setup.py) ... done
Created wheel for markupsafe: filename=MarkupSafe-2.0.1-cp311-cp311-linux_x86_64.whl size=27081 sha256=e160dc5376fb85ebbe886ff8d43e503db149110b8b7a43426d7eb9c06479c910
Stored in directory: /var/www/libreerp/.cache/pip/wheels/ea/18/79/6266ea508b8164a77b95aa19534c77eb805f2878612c37efca
Successfully built markupsafe
Installing collected packages: markupsafe
Attempting uninstall: markupsafe
Found existing installation: MarkupSafe 2.1.2
Uninstalling MarkupSafe-2.1.2:
Successfully uninstalled MarkupSafe-2.1.2
Successfully installed markupsafe-2.0.1
```
[03:06:41] <thatoo> and it works
[03:08:12] <thatoo> I mean the service is now running : 
```
$ sudo yunohost service status libreerp
configuration: unknown
description: libreerp
last_state_change: 2024-11-21 04:05:18
start_on_boot: enabled
status: running
```

but now I have a 404 error when I open my url
[03:09:42] <thatoo> logs are now https://paste.yunohost.org/lemiluwete
[09:09:15] <orhtej2> > <@thatoo:defis.info> logs are now https://paste.yunohost.org/lemiluwete

if this the case of you migrated from YNH 11 to 12? What you're getting now is what I call WTF error that would easily be explained by change from OpenSSL 1.x to OpenSSL 3.x
[09:09:40] <orhtej2> have you tried force-upgrading libreerp?
[09:18:18] <thatoo> `` sudo yunohost app upgrade -F libreerp ``
?
Yes but not after the change `` pip install --force markupsafe==2.0.1 ``
I'll try.
[09:36:31] <thatoo> ```
sudo yunohost app upgrade -F libreerp
Info : Mise à jour de libreerp…
==========
**WARNING**: LibreERP is a complex app. Upgrades will **PROBABLY** break your installation and plugins.

**PLEASE ENSURE** backups are done and you have time to fix the upgrade aftewrards !
==========
Info : Creating a safety backup prior to the upgrade
Info : Collecte des fichiers devant être sauvegardés pour libreerp…
Info : Declaring files to be backed up...
Info : Backing up the PostgreSQL database...
Info : Backup script completed for libreerp. (YunoHost will then actually copy those files to the archive).
Info : Création d'une archive de sauvegarde à partir des fichiers collectés…
Info : L'archive contiendra environ 894.0MB de données.
Succès ! Sauvegarde créée : libreerp-pre-upgrade2
Succès ! Sauvegarde supprimée : libreerp-pre-upgrade1
Info : Updating sources...
Info : Updating system_user...
Info : Updating install_dir...
Info : Updating permissions...
Info : Updating ports...
Info : Updating apt...
Info : Updating database...
Info : [+++.................] > Stopping libreerp's systemd service...
Info : [###+++..............] > Upgrading source files...
Info : [######++++..........] > Building app...
Attention : ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
Attention : pdfminer-six 20240706 requires cryptography>=36.0.0, but you have cryptography 3.4.8 which is incompatible.
Info : [##########+++.......] > Upgrading system configurations related to libreerp...
Info : [#############+++....] > Starting libreerp's systemd service...
Info : [####################] > Upgrade of libreerp completed
Succès ! libreerp mis à jour
Succès ! Mise à jour terminée
```


I find the error quiet interesting then.
[09:37:38] <thatoo> libreerp service is failing again now with this logs : https://paste.yunohost.org/gugihuyagu
[09:56:30] <thatoo> Well, that sounds like the end of the story for me for Odoo... As soon as I can get back my invoices pdf from libreerp, I'll migrate to Dolibarr...
[12:35:20] <orhtej2> > <@thatoo:defis.info> libreerp service is failing again now with this logs : https://paste.yunohost.org/gugihuyagu

good good, now downgrade safemarkup again
[14:31:50] <thatoo> ```
libreerp@ynh:~$ source venv/bin/activate
(venv) libreerp@ynh:~$ pip install --force markupsafe==2.0.1
Collecting markupsafe==2.0.1
Using cached MarkupSafe-2.0.1-cp311-cp311-linux_x86_64.whl
Installing collected packages: markupsafe
Attempting uninstall: markupsafe
Found existing installation: MarkupSafe 2.1.2
Uninstalling MarkupSafe-2.1.2:
Successfully uninstalled MarkupSafe-2.1.2
WARNING: Failed to remove contents in a temporary directory '/var/www/libreerp/venv/lib/python3.11/site-packages/~arkupSafe-2.1.2.dist-info'.
You can safely remove it manually.
WARNING: Failed to remove contents in a temporary directory '/var/www/libreerp/venv/lib/python3.11/site-packages/~arkupsafe'.
You can safely remove it manually.
WARNING: Ignoring invalid distribution ~arkupsafe (/var/www/libreerp/venv/lib/python3.11/site-packages)
Successfully installed markupsafe-2.0.1
```
[14:34:10] <thatoo> 🎉
[14:35:00] <thatoo> Libreerp works again. Thank you so much <a data-mention-type="user" href="https://matrix.to/#/@orhtej2:circledsquareroot.ovh" contenteditable="false">orhtej2</a>  . I can retrieve my pdf invoices.
[15:07:43] <satadaes> anyone know on bullseye we had "yunohost domain cert-install --no-checks" which was a godsend for SSLing many domains at once, is their anything like that in the bookworm release?
[15:08:25] <satadaes> tyvmia
[15:21:04] <Aleks (he/him/il/lui)> probably without the dash in "cert-install" -> yunohost domain cert intall --no-checks
[15:21:45] <Aleks (he/him/il/lui)> also there's no an option to provision a subdomain with a lets encrypt cert when creating one from the webadmin but there's probably an equivalent option in CLI
[20:47:47] <ShortDOM> I'm running into an issue when trying to update Nextcloud through Yunohost. I have Nextcloud installed on *domain.tld* and Synapse (Matrix) installed on *matrix.domain.tld*, with an SRV DNS setup to use the root domain for my Matrix (@user:domain.tld). However, when I try to update Nextcloud, I get the following error messages: https://paste.yunohost.org/raw/guyezuquxo

Has anyone else encountered this issue, and is there a way to resolve the conflict without breaking my Matrix setup?
[20:48:46] <ShortDOM> Is it supported to run Synapse at **matrix.domain.tld** and Nextcloud at **domain.tld**?
[20:50:12] <ShortDOM> Is it supported to run *Synapse* at **matrix.domain.tld** and *Nextcloud* at **domain.tld**?
[22:49:15] <Carlos Solís> > <@my:fed.gdn> Is it supported to run *Synapse* at **matrix.domain.tld** and *Nextcloud* at **domain.tld**?

Synapse is generally expected to run as the root *domain.tld*, from what I remember