Serveur indisponible

Bonjour,
Je fais une installation de kresus via l’image Docker, tout se passe correctement, la base de données à bien été initialisé sur ma db Postgres. Le problème, c’est que quand je cherche à accéder à l’interface, j’ai un affichage m’indiquant que le service est indisponible (affichage classique de Firefox).

Voici ma commande pour lancer le conteneur :

docker run -p 10080:9876 -e LOCAL_USER_ID=`id -u` -v ${HOME}/data/kresus/data:/home/user/data -v ${HOME}/data/woob:/woob -v ${HOME}/data/kresus/config.ini:/opt/config.ini -v /etc/localtime:/etc/localtime -v ${HOME}/data/woob:/home/user/.cache/pip --rm --name kresus -ti bnjbvr/kresus

Tous mes répertoires sont existants

Comment pourrais-je résoudre ce problème ?

Bonjour,

Question bête mais à quelle adresse essaies-tu d’accéder à ton Kresus ?

localhost:10080 vu que j’ai mappé 9876 sur le 10080, j’ai aussi testé d’autres ports, mais sans plus de succès.

Peux-tu fournir les logs de Kresus stp ?

[ENTRYPOINT] Starting with UID : 1000
[ENTRYPOINT] Setting fake values for git config...
[ENTRYPOINT] Updating woob...
Already up-to-date.
[ENTRYPOINT] Done updating.
[ENTRYPOINT] Updating Woob dependencies...
e[33mThe directory '/home/user/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.e[0m
e[33mThe directory '/home/user/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.e[0m
Collecting lxml (from -r /tmp/requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/0a/12/ec66192d5eca20a92302af5a6ce6147d96dc4b65050e9b0509180adf6252/lxml-4.6.3-cp35-cp35m-manylinux1_x86_64.whl (5.5MB)
e[K    100% |████████████████████████████████| 5.5MB 301kB/s 
e[?25hCollecting cssselect (from -r /tmp/requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/3b/d4/3b5c17f00cce85b9a1e6f91096e1cc8e8ede2e1be8e96b87ce1ed09e92c5/cssselect-1.1.0-py2.py3-none-any.whl
Collecting requests>=2.0.0 (from -r /tmp/requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl (61kB)
e[K    100% |████████████████████████████████| 61kB 4.0MB/s 
e[?25hCollecting python-dateutil (from -r /tmp/requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
e[K    100% |████████████████████████████████| 235kB 2.2MB/s 
e[?25hCollecting PyYAML (from -r /tmp/requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz (269kB)
e[K    100% |████████████████████████████████| 276kB 2.6MB/s 
e[?25hCollecting html2text>=3.200 (from -r /tmp/requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/ae/88/14655f727f66b3e3199f4467bafcc88283e6c31b562686bf606264e09181/html2text-2020.1.16-py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from -r /tmp/requirements.txt (line 7))
Collecting unidecode (from -r /tmp/requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/9e/25/723487ca2a52ebcee88a34d7d1f5a4b80b793f179ee0f62d5371938dfa01/Unidecode-1.2.0-py2.py3-none-any.whl (241kB)
e[K    100% |████████████████████████████████| 245kB 2.4MB/s 
e[?25hCollecting Pillow (from -r /tmp/requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/56/3d/f3031fe0a88b797fd09ee0772f611e65be34f30263eefb838cce8f367e75/Pillow-7.2.0-cp35-cp35m-manylinux1_x86_64.whl (2.2MB)
e[K    100% |████████████████████████████████| 2.2MB 680kB/s 
e[?25hCollecting Babel (from -r /tmp/requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/aa/96/4ba93c5f40459dc850d25f9ba93f869a623e77aaecc7a9344e19c01942cf/Babel-2.9.1-py2.py3-none-any.whl (8.8MB)
e[K    100% |████████████████████████████████| 8.8MB 198kB/s 
e[?25hCollecting urllib3<1.27,>=1.21.1 (from requests>=2.0.0->-r /tmp/requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/5f/64/43575537846896abac0b15c3e5ac678d787a4021e906703f1766bfb8ea11/urllib3-1.26.6-py2.py3-none-any.whl (138kB)
e[K    100% |████████████████████████████████| 143kB 2.7MB/s 
e[?25hCollecting idna<3,>=2.5 (from requests>=2.0.0->-r /tmp/requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB)
e[K    100% |████████████████████████████████| 61kB 2.2MB/s 
e[?25hCollecting certifi>=2017.4.17 (from requests>=2.0.0->-r /tmp/requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/05/1b/0a0dece0e8aa492a6ec9e4ad2fe366b511558cdc73fd3abc82ba7348e875/certifi-2021.5.30-py2.py3-none-any.whl (145kB)
e[K    100% |████████████████████████████████| 153kB 5.7MB/s 
e[?25hRequirement already satisfied: chardet<5,>=3.0.2 in /usr/local/lib/python3.5/dist-packages (from requests>=2.0.0->-r /tmp/requirements.txt (line 3))
Collecting pytz>=2015.7 (from Babel->-r /tmp/requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl (510kB)
e[K    100% |████████████████████████████████| 512kB 1.5MB/s 
e[?25hInstalling collected packages: lxml, cssselect, urllib3, idna, certifi, requests, python-dateutil, PyYAML, html2text, unidecode, Pillow, pytz, Babel
  Found existing installation: idna 2.2
    Not uninstalling idna at /usr/lib/python3/dist-packages, outside environment /usr
  Running setup.py install for PyYAML ... e[?25l- \ | / done
e[?25hSuccessfully installed Babel-2.9.1 Pillow-7.2.0 PyYAML-5.3.1 certifi-2021.5.30 cssselect-1.1.0 html2text-2020.1.16 idna-2.10 lxml-4.6.3 python-dateutil-2.8.1 pytz-2021.1 requests-2.25.1 unidecode-1.2.0 urllib3-1.26.6
[ENTRYPOINT] Done updating Woob dependencies.
[ENTRYPOINT] Trying to update kresus...
[ENTRYPOINT] Done.
[ENTRYPOINT] Changing rights on user home directory...
[ENTRYPOINT] Changing rights on /woob directory...
[ENTRYPOINT] Running kresus as user.
[2021-07-05T06:32:25.636] [INFO] apply-config - Running Kresus with the following parameters:
[2021-07-05T06:32:25.640] [INFO] apply-config - NODE_ENV = production
[2021-07-05T06:32:25.640] [INFO] apply-config - KRESUS_LOGIN = user
[2021-07-05T06:32:25.640] [INFO] apply-config - KRESUS_DIR = /home/user/data
[2021-07-05T06:32:25.640] [INFO] apply-config - KRESUS_USER_ID = null
[2021-07-05T06:32:25.640] [INFO] apply-config - PORT = 10080
[2021-07-05T06:32:25.640] [INFO] apply-config - HOST = 0.0.0.0
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_PYTHON_EXEC = python3
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_URL_PREFIX = /
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_SALT = (hidden)
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_FORCE_DEMO_MODE = false
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_WOOB_DIR = /woob
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_WOOB_SOURCES_LIST = null
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_EMAIL_TRANSPORT = smtp
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_EMAIL_SENDMAIL_BIN = null
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_EMAIL_FROM = no-reply@davidmohamed.fr
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_EMAIL_HOST = ssl0.ovh.net
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_EMAIL_PORT = null
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_EMAIL_USER = no-reply@davidmohamed.fr
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_EMAIL_PASSWORD = (hidden)
[2021-07-05T06:32:25.641] [INFO] apply-config - KRESUS_EMAIL_FORCE_TLS = false
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_EMAIL_REJECT_UNAUTHORIZED_TLS = true
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_APPRISE_API_BASE_URL = null
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_AUTH = null
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_LOG_FILE = /home/user/data/kresus.log
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_DB_TYPE = postgres
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_DB_LOG = error
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_DB_SQLITE_PATH = null
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_DB_HOST = davidmohamed.fr
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_DB_PORT = <port de ma db>
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_DB_USERNAME = <username>
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_DB_PASSWORD = (hidden)
[2021-07-05T06:32:25.642] [INFO] apply-config - KRESUS_DB_NAME = kresus
[2021-07-05T06:32:26.606] [INFO] models/index - User has id 1
[2021-07-05T06:32:26.638] [INFO] init - Starting bank accounts polling et al...
[2021-07-05T06:32:26.647] [INFO] poller - > Next check of accounts on 06/07/2021 at 02:17:00
[2021-07-05T06:32:26.648] [INFO] poller - Checking accounts and operations for all accesses...
[2021-07-05T06:32:26.704] [INFO] poller - All accounts have been polled.
[2021-07-05T06:32:26.705] [INFO] poller - Maybe sending reports...
[2021-07-05T06:32:26.706] [INFO] report-manager - No emailer found, skipping reports management.
[2021-07-05T06:32:26.706] [INFO] poller - Reports have been sent.
[2021-07-05T06:32:26.706] [INFO] init - Server is ready, let's start the show!

J’ai supprimée les X lignes de barres de progressions des telechargements et le user et le port de ma db (ceux-ci étant accessible en ligne)

Et si tu y accèdes via 0.0.0.0:10080 ?

Aucune différence. :sob:

netstat -plnt | grep 10080 te retourne quoi ?

tcp        0      0 0.0.0.0:10080           0.0.0.0:*               LISTEN      190667/docker-proxy
tcp6       0      0 :::10080                :::*                    LISTEN      190676/docker-proxy

Hm, je ne m’attendais pas à voir « docker-proxy » mais plutôt « node »…
Tu utilises donc un proxy devant docker ? Tu as essayé sans ?

euh… je n’ai pas de proxy devant docker, j’utilise docker directement installé sur ma machine

Ah c’est peut-être netstat qui affiche ça à partir d’une liste de ports connus.

Bref, je pense avoir trouvé : https://www.itigic.com/fr/chrome-blocks-tcp-port-10080-to-prevent-attacks/

Essaie avec curl ? Et un autre port ?

Je viens d’essayer avec le port 8080 et 80 (après avoir stoppé mon apache local) et aucun changement, l’affichage navigateur est le même que ce soit chrome ou firefox et curl me renvoi :
curl: (56) Recv failure: Connexion ré-initialisée par le correspondant

Peux-tu donner la requête curl complète stp ?

curl http://localhost:8080

curl: (56) Recv failure: Connexion ré-initialisée par le correspondant

Et sur 0.0.0.0 ? Et sur l’IP v6 ? Est-ce que l’ip v4 est activée ?

Même chose pour 0.0.0.0.
Pour l’ip v6 ca me donne
curl -6 :::8080
curl: (3) URL using bad/illegal format or missing URL

Je pense que je manque quelque chose. comment je peux checker ca ?