Open Stefal opened 6 months ago
woob is installed in a virtualenv, so it makes sense. To access it through CLI you probably need to do something like https://github.com/YunoHost-Apps/kresus_ynh/blob/master/scripts/install#L69.
It looks like the venv is already activated when the shell starts
If I activated manually I've got the same results:
kresus@yuno:~$ source venv/bin/activate
(venv) woob --version
woob v3.6 Copyright(C) 2010-2024 Romain Bignon
(venv) woob --help
usage: woob [--version] <command> [<args>]
Use one of this commands:
Instruction non permise
(venv)
Maybe it's the normal behaviour with this shell, I don't really understand how it works inside YunoHost.
OK, so, what is the actual issue?
Kresus doesn't work
Can you provide kresus' logs then please?
This is what I have in /var/log/kresus/kresus.log
[2024-04-29T22:04:59.409] [INFO] HTTP - GET /kresus/api/all/ - 200 (1937 ms)
[2024-04-29T22:36:32.840] [INFO] apply-config - Running Kresus with the following parameters:
[2024-04-29T22:36:33.105] [INFO] apply-config - NODE_ENV = production
[2024-04-29T22:36:33.106] [INFO] apply-config - KRESUS_LOGIN = user
[2024-04-29T22:36:33.106] [INFO] apply-config - KRESUS_DIR = /home/yunohost.app/kresus
[2024-04-29T22:36:33.106] [INFO] apply-config - KRESUS_USER_ID = null
[2024-04-29T22:36:33.107] [INFO] apply-config - PORT = 58638
[2024-04-29T22:36:33.107] [INFO] apply-config - HOST = 127.0.0.1
[2024-04-29T22:36:33.107] [INFO] apply-config - KRESUS_PYTHON_EXEC = /var/www/kresus/venv/bin/python
[2024-04-29T22:36:33.107] [INFO] apply-config - KRESUS_URL_PREFIX = /kresus
[2024-04-29T22:36:33.108] [INFO] apply-config - KRESUS_SALT = (hidden)
[2024-04-29T22:36:33.108] [INFO] apply-config - KRESUS_FORCE_DEMO_MODE = false
[2024-04-29T22:36:33.108] [INFO] apply-config - KRESUS_WOOB_DIR = null
[2024-04-29T22:36:33.108] [INFO] apply-config - KRESUS_WOOB_SOURCES_LIST = null
[2024-04-29T22:36:33.109] [INFO] apply-config - KRESUS_EMAIL_TRANSPORT = smtp
[2024-04-29T22:36:33.109] [INFO] apply-config - KRESUS_EMAIL_SENDMAIL_BIN = null
[2024-04-29T22:36:33.109] [INFO] apply-config - KRESUS_EMAIL_FROM = kresus@redacted.tld
[2024-04-29T22:36:33.109] [INFO] apply-config - KRESUS_EMAIL_HOST = 127.0.0.1
[2024-04-29T22:36:33.109] [INFO] apply-config - KRESUS_EMAIL_PORT = 25
[2024-04-29T22:36:33.109] [INFO] apply-config - KRESUS_EMAIL_USER = kresus
[2024-04-29T22:36:33.109] [INFO] apply-config - KRESUS_EMAIL_PASSWORD = (hidden)
[2024-04-29T22:36:33.110] [INFO] apply-config - KRESUS_EMAIL_FORCE_TLS = false
[2024-04-29T22:36:33.110] [INFO] apply-config - KRESUS_EMAIL_REJECT_UNAUTHORIZED_TLS = false
[2024-04-29T22:36:33.110] [INFO] apply-config - KRESUS_APPRISE_API_BASE_URL = null
[2024-04-29T22:36:33.110] [INFO] apply-config - KRESUS_AUTH = null
[2024-04-29T22:36:33.110] [INFO] apply-config - KRESUS_LOG_FILE = /var/log/kresus/kresus.log
[2024-04-29T22:36:33.110] [INFO] apply-config - KRESUS_DB_TYPE = postgres
[2024-04-29T22:36:33.110] [INFO] apply-config - KRESUS_DB_LOG = error
[2024-04-29T22:36:33.110] [INFO] apply-config - KRESUS_DB_SQLITE_PATH = null
[2024-04-29T22:36:33.111] [INFO] apply-config - KRESUS_DB_HOST = localhost
[2024-04-29T22:36:33.111] [INFO] apply-config - KRESUS_DB_PORT = 5432
[2024-04-29T22:36:33.111] [INFO] apply-config - KRESUS_DB_USERNAME = kresus
[2024-04-29T22:36:33.111] [INFO] apply-config - KRESUS_DB_PASSWORD = (hidden)
[2024-04-29T22:36:33.111] [INFO] apply-config - KRESUS_DB_NAME = kresus
[2024-04-29T22:37:01.617] [INFO] models/index - database is ready
[2024-04-29T22:37:01.739] [INFO] models/index - User has id 1
[2024-04-29T22:37:01.740] [INFO] init - Starting bank accounts polling et al...
[2024-04-29T22:37:01.745] [INFO] poller - > Next check of accounts on 30/04/2024 at 03:07:00
[2024-04-29T22:37:01.747] [INFO] poller - Checking accounts and transactions for all accesses...
[2024-04-29T22:37:01.927] [INFO] poller - All accounts have been polled.
[2024-04-29T22:37:01.928] [INFO] poller - Maybe sending reports...
[2024-04-29T22:37:01.934] [INFO] report-manager - Checking if user has enabled daily report...
[2024-04-29T22:37:01.971] [INFO] report-manager - User hasn't enabled daily report.
[2024-04-29T22:37:01.972] [INFO] report-manager - Checking if user has enabled weekly report...
[2024-04-29T22:37:01.987] [INFO] report-manager - User hasn't enabled weekly report.
[2024-04-29T22:37:01.987] [INFO] poller - Reports have been sent.
[2024-04-29T22:37:01.987] [INFO] init - Server is ready, let's start the show!
[2024-04-29T22:41:38.718] [INFO] providers/woob - Calling woob: command version...
[2024-04-29T22:41:42.690] [INFO] providers/woob - exited with code null.
[2024-04-29T22:41:42.691] [ERROR] providers/woob - When getting Woob version: Error: Process exited with non-zero error code null. Unknown error. Stderr was:
[2024-04-29T22:41:42.745] [INFO] HTTP - GET /kresus/api/all/ - 200 (4118 ms)
Are you running software in some kind of sandbox?
Is this an ARM CPU, and if so, are you using the right package compiled for your specific target architecture?
Initial message states it's an x86 machine. Is this by chance an x86 32 bits machine, and you're trying to use the 64-bits version?
Are you running software in some kind of sandbox?
No, just Yunohost with Kresus and VaultWarden
~Is this an ARM CPU, and if so, are you using the right package compiled for your specific target architecture?~ Initial message states it's an x86 machine. Is this by chance an x86 32 bits machine, and you're trying to use the 64-bits version?
It's a 64-bits release:
admin@yuno:~$ uname -a
Linux yuno.redacted.tld 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 GNU/Linux
Ah sorry, no ideas; it's super weird to get an "instruction non permise" error. It'd be nice to understand whether it's coming from Python or the CPU.
One thing to try out to remove the Python possibility: can you remove and re-create the woob directory entirely? (or maybe remove and reinstall Kresus, since it ought to remove the Python dir) In particular, I wonder if removing the .pyc
files everywhere in the Woob's directories would be sufficient.
Can you give more info regarding the VM? And its host?
Sorry, I deleted my comment due to anonymization issues. I'll post it again as soon as I have some time.
Describe the bug
After the 0.20.1~ynh3 upgrade, I have this message
Please install Woob 3.5 or later
. I know that Woob 3.6 was installed before the update.Context
Logs
I've tried to remove and reinstall Kresus, with the same result.
I've try this :