Wednesday, November 20, 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
 
             

[02:27:51] <xananax> > <@Xananax:matrix.org> I `chown`-ed the files in `/bin` to `mastodon`, let's see

Nope, same result
[02:27:54] <xananax> https://aria.im/_matrix/media/v1/download/matrix.org/jCEfVIxaBrgYGxCotRFTMjlv
[02:29:06] <xananax> If anyone has an idea what I should do, I'd be glad. I have 20 users who depend on my instance for communicating with friends etc. They know I do this pro bono and are patient, but I'd still like to make it run
[02:29:50] <xananax> Here's the log in case it helps https://paste.yunohost.org/raw/ipojelinag
[06:34:06] <frozentongue> a test
[06:59:16] <frozentongue> test
[11:22:05] <isAAAc> test ok , i can see you
[15:04:46] <thatoo> Hello,
I tried to solve my issue https://paste.yunohost.org/ajavelidor doing
`` /var/www/libreerp/venv/bin/pip3 install pdfminer.six ``
and then restarting the service libreerpbut it keep telling me the same error
[15:05:40] <thatoo> Should I restart an other service or reboot ynh?
[15:38:39] <orhtej2> > <@thatoo:defis.info> Hello,
> I tried to solve my issue https://paste.yunohost.org/ajavelidor doing
> `` /var/www/libreerp/venv/bin/pip3 install pdfminer.six ``
> and then restarting the service libreerpbut it keep telling me the same error

did you do thatnas libreerp user?
[15:42:47] <thatoo> ```
sudo -u libreerp /var/www/libreerp/venv/bin/pip3 install pdfminer.six
Requirement already satisfied: pdfminer.six in /var/www/libreerp/venv/lib/python3.11/site-packages (20240706)
Requirement already satisfied: charset-normalizer>=2.0.0 in /var/www/libreerp/venv/lib/python3.11/site-packages (from pdfminer.six) (3.4.0)
Requirement already satisfied: cryptography>=36.0.0 in /var/www/libreerp/venv/lib/python3.11/site-packages (from pdfminer.six) (43.0.3)
Requirement already satisfied: cffi>=1.12 in /var/www/libreerp/venv/lib/python3.11/site-packages (from cryptography>=36.0.0->pdfminer.six) (1.17.1)
Requirement already satisfied: pycparser in /var/www/libreerp/venv/lib/python3.11/site-packages (from cffi>=1.12->cryptography>=36.0.0->pdfminer.six) (2.22)
```
[15:45:29] <miro5001> sudo yunohost app shell libreerp
pip install
[16:21:48] <rodinux> hello I need help... my zabbix-server broke, I have a bdd dump and have remove it, I would like to reinstall it, but I can't !
[16:23:10] <rodinux> O have also try restore a backup it did not work or a oldest branch...
[16:29:52] <Aleks (he/him/il/lui)> 🪵
[16:31:28] <rodinux> Is it dead to restore a zabbix on a debian 11 ??
[16:32:08] <rodinux> https://paste.yunohost.org/raw/uvobijolow
[16:32:11] <Aleks (he/him/il/lui)> as always, nobody can't say anything without full logs / error mssages ..
[16:32:21] <Aleks (he/him/il/lui)> `WARNING - chmod: impossible d'accéder à '/usr/share/zabbix': Aucun fichier ou dossier de ce type`
[16:32:26] <Aleks (he/him/il/lui)> hmm
[16:32:36] <rodinux> yes ??
[16:32:38] <thatoo> > <@miro5001:matrix.org> sudo yunohost app shell libreerp
> pip install

```
libreerp@ynh:~$ pip install pdfminer.six
Requirement already satisfied: pdfminer.six in ./venv/lib/python3.11/site-packages (20240706)
Requirement already satisfied: charset-normalizer>=2.0.0 in ./venv/lib/python3.11/site-packages (from pdfminer.six) (3.4.0)
Requirement already satisfied: cryptography>=36.0.0 in ./venv/lib/python3.11/site-packages (from pdfminer.six) (43.0.3)
Requirement already satisfied: cffi>=1.12 in ./venv/lib/python3.11/site-packages (from cryptography>=36.0.0->pdfminer.six) (1.17.1)
Requirement already satisfied: pycparser in ./venv/lib/python3.11/site-packages (from cffi>=1.12->cryptography>=36.0.0->pdfminer.six) (2.22)
```
[16:34:16] <Aleks (he/him/il/lui)> > <@Alekswag:matrix.org> `WARNING - chmod: impossible d'accéder à '/usr/share/zabbix': Aucun fichier ou dossier de ce type`

i guess it's supposed to be created by the zabbix package but it says `zabbix-agent is already the newest version (1:5.0.45-1+debian11)` ...
[16:34:35] <Aleks (he/him/il/lui)> howver i have seen situation in the past where some /usr/share dir for transmission mysteriously disappeared
[16:34:48] <Aleks (he/him/il/lui)> if you run `dpkg --list | grep zabbix`, is zabbix installed right now ?
[16:35:05] <Aleks (he/him/il/lui)> (in terms of dpkg packages at least)
[16:35:17] <rodinux> yes I have zabbix packages !
[16:35:42] <rodinux> I must remove them before...
[16:36:22] <Aleks (he/him/il/lui)> hmmm
[16:36:31] <Aleks (he/him/il/lui)> ah yea maybe that could force to reinstall them
[16:43:06] <thatoo> I guess that doing``  /var/www/libreerp/venv/bin/pip3 install pdfminer.six `` as root has created some issue, now, not only libreerp still doesn't work but mastodon stop working...
[16:44:40] <rodinux> removing zabbix* and try an fresh install failed https://paste.yunohost.org/raw/fawopomuce
[16:46:14] <rodinux> I try a backup restore
[16:47:29] <Aleks (he/him/il/lui)> `sed: impossible de lire /etc/zabbix/zabbix_server.conf: Aucun fichier ou dossier de ce type`
[16:47:46] <Aleks (he/him/il/lui)> i don't know much about zabbix but pretty sure that file is supposed to come from the debian package x_x
[16:49:03] <rodinux> not in the script install... https://github.com/YunoHost-Apps/zabbix_ynh/blob/f731b1697c2c64e6f10d2ce0bef918ebbf0d6640/manifest.toml#L96
[16:50:05] <rodinux> debian have an old package, but tje dependencies between this app and debian sometime brake it
[16:53:30] <rodinux> Ok I could restore an old backup, I then try restore the db
[17:06:00] <rodinux> perhaps I need first rewove the db, recreate it and the import it ??
[17:14:44] <rodinux> Ok, it's running again... Before this issue I have got in the system upgrade

```
23: current_version: 1:5.0.44-1+debian11 name: zabbix-agent new_version: 1:5.0.44+dfsg-1+deb11u1
24: current_version: 1:5.0.44-1+debian11 name: zabbix-frontend-php new_version: 1:5.0.44+dfsg-1+deb11u1
25: current_version: 1:5.0.44-1+debian11 name: zabbix-server-mysql new_version: 1:5.0.44+dfsg-1+deb11u1
```
[17:16:06] <rodinux> Now I have this
```
dpkg --list | grep zabbix
ii zabbix-agent 1:5.0.45-1+debian11 amd64 Zabbix network monitoring solution - agent
ii zabbix-frontend-php 1:5.0.45-1+debian11 all Zabbix network monitoring solution - PHP front-end
ii zabbix-server-mysql 1:5.0.45-1+debian11 amd64 Zabbix network monitoring solution - server (MySQL)
ii zabbix-ynh-deps 5.0.41~ynh2 all Fake package for zabbix (YunoHost app) dependencies
```
[18:56:19] <thatoo> > <@thatoo:defis.info> ```
> libreerp@ynh:~$ pip install pdfminer.six
> Requirement already satisfied: pdfminer.six in ./venv/lib/python3.11/site-packages (20240706)
> Requirement already satisfied: charset-normalizer>=2.0.0 in ./venv/lib/python3.11/site-packages (from pdfminer.six) (3.4.0)
> Requirement already satisfied: cryptography>=36.0.0 in ./venv/lib/python3.11/site-packages (from pdfminer.six) (43.0.3)
> Requirement already satisfied: cffi>=1.12 in ./venv/lib/python3.11/site-packages (from cryptography>=36.0.0->pdfminer.six) (1.17.1)
> Requirement already satisfied: pycparser in ./venv/lib/python3.11/site-packages (from cffi>=1.12->cryptography>=36.0.0->pdfminer.six) (2.22)
> ```

It didn't help. Libreerp is still not working and logs are the same : https://paste.yunohost.org/keletufuzu 
[19:02:03] <miro5001> > <@thatoo:defis.info> It didn't help. Libreerp is still not working and logs are the same : https://paste.yunohost.org/keletufuzu 

Did you try pip uninstall then pip install
[19:02:39] <thatoo> I'll try
[19:05:51] <rodinux> well now can I used pinned to keep zabbix working ??
```
apt-cache policy zabbix-agent
zabbix-agent:
Installé : 1:5.0.45-1+debian11
Candidat : 1:5.0.45-1+debian11
Table de version :
*** 1:5.0.45-1+debian11 100
100 /var/lib/dpkg/status
1:5.0.44+dfsg-1+deb11u1 500
500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
1:5.0.8+dfsg-1 500
500 http://ftp.debian.org/debian bullseye/main amd64 Packages

apt-cache policy zabbix-frontend-php
zabbix-frontend-php:
Installé : 1:5.0.45-1+debian11
Candidat : 1:5.0.45-1+debian11
Table de version :
*** 1:5.0.45-1+debian11 100
100 /var/lib/dpkg/status
1:5.0.44+dfsg-1+deb11u1 500
500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
1:5.0.8+dfsg-1 500
500 http://ftp.debian.org/debian bullseye/main amd64 Packages

apt-cache policy zabbix-server-mysql
zabbix-server-mysql:
Installé : 1:5.0.45-1+debian11
Candidat : 1:5.0.45-1+debian11
Table de version :
*** 1:5.0.45-1+debian11 100
100 /var/lib/dpkg/status
1:5.0.44+dfsg-1+deb11u1 500
500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
1:5.0.8+dfsg-1 500
500 http://ftp.debian.org/debian bullseye/main amd64 Package
```
[22:41:30] <thatoo> ```
Found existing installation: pdfminer.six 20240706
Uninstalling pdfminer.six-20240706:
Would remove:
/var/www/libreerp/venv/bin/dumppdf.py
/var/www/libreerp/venv/bin/pdf2txt.py
/var/www/libreerp/venv/lib/python3.11/site-packages/pdfminer.six-20240706.dist-info/*
/var/www/libreerp/venv/lib/python3.11/site-packages/pdfminer/*
Proceed (Y/n)?
Successfully uninstalled pdfminer.six-20240706
libreerp@ynh:~$ pip3 install pdfminer.six
Collecting pdfminer.six
Using cached pdfminer.six-20240706-py3-none-any.whl.metadata (4.1 kB)
Requirement already satisfied: charset-normalizer>=2.0.0 in ./venv/lib/python3.11/site-packages (from pdfminer.six) (3.4.0)
Requirement already satisfied: cryptography>=36.0.0 in ./venv/lib/python3.11/site-packages (from pdfminer.six) (43.0.3)
Requirement already satisfied: cffi>=1.12 in ./venv/lib/python3.11/site-packages (from cryptography>=36.0.0->pdfminer.six) (1.17.1)
Requirement already satisfied: pycparser in ./venv/lib/python3.11/site-packages (from cffi>=1.12->cryptography>=36.0.0->pdfminer.six) (2.22)
Using cached pdfminer.six-20240706-py3-none-any.whl (5.6 MB)
Installing collected packages: pdfminer.six
Successfully installed pdfminer.six-20240706
libreerp@ynh:~$ exit
exit
administrateur@ynh:~$ sudo yunohost service restart libreerp
Succès ! Le service 'libreerp' a été redémarré
```

but still failing and logs are still the same : https://paste.yunohost.org/ihecubezed
[22:55:17] <orhtej2> > <@thatoo:defis.info> ```
> Found existing installation: pdfminer.six 20240706
> Uninstalling pdfminer.six-20240706:
> Would remove:
> /var/www/libreerp/venv/bin/dumppdf.py
> /var/www/libreerp/venv/bin/pdf2txt.py
> /var/www/libreerp/venv/lib/python3.11/site-packages/pdfminer.six-20240706.dist-info/*
> /var/www/libreerp/venv/lib/python3.11/site-packages/pdfminer/*
> Proceed (Y/n)?
> Successfully uninstalled pdfminer.six-20240706
> libreerp@ynh:~$ pip3 install pdfminer.six
> Collecting pdfminer.six
> Using cached pdfminer.six-20240706-py3-none-any.whl.metadata (4.1 kB)
> Requirement already satisfied: charset-normalizer>=2.0.0 in ./venv/lib/python3.11/site-packages (from pdfminer.six) (3.4.0)
> Requirement already satisfied: cryptography>=36.0.0 in ./venv/lib/python3.11/site-packages (from pdfminer.six) (43.0.3)
> Requirement already satisfied: cffi>=1.12 in ./venv/lib/python3.11/site-packages (from cryptography>=36.0.0->pdfminer.six) (1.17.1)
> Requirement already satisfied: pycparser in ./venv/lib/python3.11/site-packages (from cffi>=1.12->cryptography>=36.0.0->pdfminer.six) (2.22)
> Using cached pdfminer.six-20240706-py3-none-any.whl (5.6 MB)
> Installing collected packages: pdfminer.six
> Successfully installed pdfminer.six-20240706
> libreerp@ynh:~$ exit
> exit
> administrateur@ynh:~$ sudo yunohost service restart libreerp
> Succès ! Le service 'libreerp' a été redémarré
> ```
>
> but still failing and logs are still the same : https://paste.yunohost.org/ihecubezed

if you look at what is `ExecStart` in unit file and try to run it as `libreerp` user once you `source ~/venv/bin/activate`, does it work then?
[22:55:52] <orhtej2> I feel like the environment is not propagated to unit file and there's no easy way around it other than having wrapper script that sources venv, then runs the desired exec
[22:56:33] <orhtej2> you can run it from command line for testing purposes
[22:56:34] <thatoo> sorry, I'm not sure what command you want me to try
[22:58:07] <thatoo> ```
libreerp.service - libreerp
Loaded: loaded (/etc/systemd/system/libreerp.service; enabled; preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2024-11-20 23:53:49 CET; 897ms ago
Process: 61633 ExecStart=/var/www/libreerp/venv/bin/python3 /var/www/libreerp/libreerp/odoo-bin --config /etc/libreerp/main.conf --logfile /var/log/libreerp.log (code=exited, status=1/FAILURE)
Main PID: 61633 (code=exited, status=1/FAILURE)
CPU: 520ms
```
[22:58:13] <orhtej2> > <@thatoo:defis.info> sorry, I'm not sure what command you want me to try

`cat /etc/systemd/system/libreerp.service | grep ExecStart`
It should show you the exact command service is trying to run
[22:58:47] <thatoo> `` ExecStart=/var/www/libreerp/venv/bin/python3 /var/www/libreerp/libreerp/odoo-bin --config /etc/libreerp/main.conf --logfile /var/log/libreerp.log ``
[22:58:48] <orhtej2> ah, then I'm wrong, it already uses the proper `python`
[22:59:45] <thatoo> ```
sudo ls -al /var/www/libreerp/venv/bin/
total 248
drwxr-x--- 3 libreerp libreerp 4096 20 nov. 20:11 .
drwxr-x--- 6 libreerp libreerp 4096 13 nov. 13:17 ..
-rw-r--r-- 1 libreerp libreerp 1989 14 nov. 13:43 activate
-rw-r--r-- 1 libreerp libreerp 915 14 nov. 13:43 activate.csh
-rw-r--r-- 1 libreerp libreerp 2195 14 nov. 13:43 activate.fish
-rw-r--r-- 1 libreerp libreerp 9033 14 nov. 13:43 Activate.ps1
-rwxr-x--- 1 libreerp libreerp 233 13 nov. 13:17 change_tz
-rwxr-x--- 1 libreerp libreerp 238 13 nov. 13:17 chardetect
-rwxr-xr-x 1 libreerp libreerp 14390 20 nov. 20:11 dumppdf.py
-rwxr-x--- 1 libreerp libreerp 232 13 nov. 13:17 ics_diff
-rwxr-x--- 1 libreerp libreerp 35115 13 nov. 13:17 miniterm.py
-rwxr-x--- 1 libreerp libreerp 28907 13 nov. 13:17 miniterm.pyc
-rwxr-xr-x 1 root root 250 20 nov. 15:58 normalizer
-rwxr-xr-x 1 libreerp libreerp 9829 20 nov. 20:11 pdf2txt.py
-rwxr-x--- 1 libreerp libreerp 238 13 nov. 13:17 pip
-rwxr-x--- 1 libreerp libreerp 238 13 nov. 13:17 pip3
-rwxr-x--- 1 libreerp libreerp 238 13 nov. 13:17 pip3.11
-rwxr-x--- 1 libreerp libreerp 239 13 nov. 13:17 pybabel
drwxr-x--- 2 libreerp libreerp 4096 20 nov. 20:11 __pycache__
-rwxr-x--- 1 libreerp libreerp 223 13 nov. 13:17 pysassc
lrwxrwxrwx 1 libreerp libreerp 15 13 nov. 13:03 python -> /usr/bin/python
lrwxrwxrwx 1 libreerp libreerp 6 13 nov. 13:03 python3 -> python
lrwxrwxrwx 1 libreerp libreerp 6 13 nov. 13:03 python3.11 -> python
-rwxr-x--- 1 libreerp libreerp 238 13 nov. 13:17 qr
-rwxr-x--- 1 libreerp libreerp 731 13 nov. 13:17 rst2html4.py
-rwxr-x--- 1 libreerp libreerp 1154 13 nov. 13:17 rst2html5.py
-rwxr-x--- 1 libreerp libreerp 611 13 nov. 13:17 rst2html.py
-rwxr-x--- 1 libreerp libreerp 808 13 nov. 13:17 rst2latex.py
-rwxr-x--- 1 libreerp libreerp 616 13 nov. 13:17 rst2man.py
-rwxr-x--- 1 libreerp libreerp 1743 13 nov. 13:17 rst2odt_prepstyles.py
-rwxr-x--- 1 libreerp libreerp 781 13 nov. 13:17 rst2odt.py
-rwxr-x--- 1 libreerp libreerp 618 13 nov. 13:17 rst2pseudoxml.py
-rwxr-x--- 1 libreerp libreerp 654 13 nov. 13:17 rst2s5.py
-rwxr-x--- 1 libreerp libreerp 888 13 nov. 13:17 rst2xetex.py
-rwxr-x--- 1 libreerp libreerp 619 13 nov. 13:17 rst2xml.py
-rwxr-x--- 1 libreerp libreerp 687 13 nov. 13:17 rstpep2html.py
-rwxr-x--- 1 libreerp libreerp 16301 13 nov. 13:17 runxlrd.py
-rwxr-x--- 1 libreerp libreerp 221 13 nov. 13:17 sassc
-rwxr-x--- 1 libreerp libreerp 1970 13 nov. 13:17 vba_extract.py
-rwxr-x--- 1 libreerp libreerp 225 13 nov. 13:17 wheel
```
[23:00:34] <orhtej2> perhaps it's caused by `ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/var/www/libreerp/venv/lib/python3.11/site-packages/markupsafe/__init__.py)` ?
[23:01:03] <orhtej2> https://stackoverflow.com/a/72747002/7034621
[23:01:56] <orhtej2> actually the pdfminer error is from a week ago, now it crashes because of that `markupsafe` failure
[23:02:10] <orhtej2> so can you try downgrading it as user `libreerp` in the `venv`?
[23:03:00] <orhtej2> ```sh
source venv/bin/activate
pip install --force markupsafe==2.0.1
```

[23:04:55] <thatoo> should I do
`` sudo yunohost app shell libreerp ``
first?
[23:04:55] <thatoo> how do you know it should be version 2.0.1?
[23:05:46] <orhtej2> > <@thatoo:defis.info> should I do
> `` sudo yunohost app shell libreerp ``
> first?

sure
[23:06:16] <orhtej2> > <@thatoo:defis.info> how do you know it should be version 2.0.1?

because a random comment on SO claims so, you can always revert to previous version if that does not help ;)
[23:07:07] <thatoo> how can I check the current installed version before?
[23:08:33] <orhtej2> > <@thatoo:defis.info> how can I check the current installed version before?

[`pip show markupsafe`](https://stackoverflow.com/a/10215100/7034621)
[23:10:13] <thatoo> sorry, I don't know what is going on but my ssh connection is very slow right now...
[23:10:27] <thatoo> > <@thatoo:defis.info> should I do
> `` sudo yunohost app shell libreerp ``
> first?

still waiting for this...