Bretagne-Vivante / GeoNature

Application de saisie et de synthèse des observations faune et flore
GNU General Public License v3.0
0 stars 0 forks source link

Geonature - Error API sur login - génération token #5

Closed pierre56 closed 4 months ago

pierre56 commented 7 months ago

Version 2.13.4

Description du bug error API sur login + taxhub

https://taxhub.bretagne-vivante.org/api/taxref/allnamebylist/101

non fonctionnel -> error 500

Comportement attendu Description du comportement attendu en lieu et place du problème rencontré.

Comment reproduire Étapes à suivre pour reproduire le problème (sur quelle page se rendre, sur quel bouton cliquer, avec quelles données présentes, …).

Logs Extrait du fichier /var/log/geonature.log dans le cas d’une erreur 500.

[Fri Feb 16 12:15:53.393527 2024] [proxy_http:error] [pid 32971:tid 140286911047424] [client 192.168.30.2:51318] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: https://geonature.bretagne-vivante.org/


Tentative résolution

DOC

https://serverfault.com/questions/965602/apache-2-4-proxy-httperror-proxyerror

Issues similaires

https://github.com/PnX-SI/GeoNature/issues/2521 https://wiki-sinp.cbn-alpin.fr/serveurs/installation/hosts-hostname

pierre56 commented 7 months ago

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

add server name = localhost to suppress message

Error 401 not all https://geonature.bretagne-vivante.org/api/users/login/recovery

ERROR Object { headers: {…}, status: 401, statusText: "OK", url: "https://geonature.bretagne-vivante.org/api/users/login/recovery", ok: false, name: "HttpErrorResponse", message: "Http failure response for https://geonature.bretagne-vivante.org/api/users/login/recovery: 401 OK", error: {…} } ​ error: Object { msg: "<!doctype html>\n\n401 Unauthorized\n

Unauthorized

\n

The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.

\n" } ​

message: "Http failure response for https://geonature.bretagne-vivante.org/api/users/login/recovery: 401 OK" name: "HttpErrorResponse" ok: false status: 401 statusText: "OK" url: "https://geonature.bretagne-vivante.org/api/users/login/recovery" ​ /api/pypn/register/post_usershub/create_cor_role_token https://github.com/PnX-SI/UsersHub/blame/2.4.0/app/api/route_register.py

https://geonature.bretagne-vivante.org/api/pypn/register/post_usershub/create_cor_role_token https://geonature.bretagne-vivante.org/api/pypn/test_connexion

/api/users/menu/2


192.168.30.2 - - [19/Feb/2024:16:38:43 +0100] "POST /api/pypn/register/post_usershub/create_cor_role_token HTTP/1.1" 401 563 "-" "python-requests/2.31.0" 192.168.30.2 - - [19/Feb/2024:16:38:43 +0100] "POST /api/users/login/recovery HTTP/1.1" 401 702 "https://geonature.bretagne-vivante.org/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0"

pierre56 commented 4 months ago

Pb résolu avec geonature 3.14 et maj de usershub