des fois on se complique la vie …
PEERTUBE_LOG_LEVEL=debug
Je vous ai envoyé le log d’une transaction en MP sur matrix (plus de 20ko, existe-t-il un autre moyen ?).
Mais on voit bien qu’il récupère correctement les infos du Nextcloud :
peertube_1 | [<srv>:443 peertube-plugin-auth-openid-connect] 2024-12-19 12:10:35.804 debug: Got userinfo from openid auth. {
peertube_1 | "userInfo": {
peertube_1 | "sub": "<login>",
peertube_1 | "preferred_username": "<login>",
peertube_1 | "roles": [],
peertube_1 | "updated_at": 1734608938,
peertube_1 | "name": "<le display_name>",
peertube_1 | "quota": "500 GB",
peertube_1 | "email": "<email>",
peertube_1 | "email_verified": false
peertube_1 | },
peertube_1 | "settings": {
peertube_1 | "mail-property": "email",
peertube_1 | "username-property": "sub",
peertube_1 | "display-name-property": "name",
peertube_1 | "role-property": "",
peertube_1 | "group-property": "",
peertube_1 | "allowed-group": ""
peertube_1 | }
peertube_1 | }
Il y a aussi la ligne :
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.499 debug: Getting User (username/email: <login>, password: ******).
Suivi d’un gros select :
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.522 debug: Executed SQL request - Executing (default): SELECT "UserModel".*, "Account->Actor->Server"."id" AS ...
Suivi par 2 GET, dont seul le second semble provoquer l’erreur :
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.531 info: 147.94.140.147 - - [19/Dec/2024:12:10:36 +0000] "GET /client/assets/images/favicon.png?a8aa20780142ae52f08d1ebdc4b6e104fc37619d HTTP/1.0" 200 746 "https://<srv>/login?externalAuthToken=a4a6bbd6f4354bfd9975720e4e1603ccd144cb154dd8477c126024ebad32b1cb&username=<login>" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 OPR/115.0.0.0"
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.750 info: 147.94.140.147 - - [19/Dec/2024:12:10:36 +0000] "GET /manifest.webmanifest?7aeb83a51326b2ba7eb6facb7e94c4e65f799948 HTTP/1.0" 200 883 "https://<srv>/login?externalAuthToken=a4a6bbd6f4354bfd9975720e4e1603ccd144cb154dd8477c126024ebad32b1cb&username=<login>" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 OPR/115.0.0.0"
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.873 debug: Executed SQL request - Executing (default): SELECT "id", "state", "registrationReason", "moderationResponse", "password", "username", "email", "emailVerified", "accountDisplayName", "channelHandle", "channelDisplayName", "processedAt", "userId", "createdAt", "updatedAt" FROM "userRegistration" AS "UserRegistrationModel" WHERE ("UserRegistrationModel"."email" = '<login>' OR "UserRegistrationModel"."username" = '<login>') LIMIT 1;
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.891 warn: Login error {
peertube_1 | "err": {
peertube_1 | "stack": "invalid_grant: Invalid grant: user credentials are invalid\n at handlePasswordGrant (file:///app/dist/core/lib/auth/oauth.js:112:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async handleToken (file:///app/dist/core/controllers/api/users/token.js:32:23)",
peertube_1 | "message": "Invalid grant: user credentials are invalid",
peertube_1 | "statusCode": 400,
peertube_1 | "status": 400,
peertube_1 | "code": 400,
peertube_1 | "name": "invalid_grant"
peertube_1 | }
peertube_1 | }
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.895 debug: Bad HTTP request. {
peertube_1 | "json": {
peertube_1 | "type": "https://docs.joinpeertube.org/api-rest-reference.html#section/Errors/invalid_grant",
peertube_1 | "detail": "Invalid grant: user credentials are invalid",
peertube_1 | "status": 400,
peertube_1 | "docs": "https://docs.joinpeertube.org/api-rest-reference.html#operation/getOAuthToken",
peertube_1 | "code": "invalid_grant"
peertube_1 | }
peertube_1 | }
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.900 info: 147.94.140.147 - - [19/Dec/2024:12:10:36 +0000] "POST /api/v1/users/token HTTP/1.0" 400 271 "https://<srv>/login?externalAuthToken=a4a6bbd6f4354bfd9975720e4e1603ccd144cb154dd8477c126024ebad32b1cb&username=<login>" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 OPR/115.0.0.0"
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.971 debug: Checking POST - /api/v1/server/logs/client parameters {
peertube_1 | "body": {
peertube_1 | "message": "Backend returned code 400, errorMessage is: Invalid grant: user credentials are invalid",
peertube_1 | "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 OPR/115.0.0.0",
peertube_1 | "url": "https://<srv>/login?externalAuthToken=a4a6bbd6f4354bfd9975720e4e1603ccd144cb154dd8477c126024ebad32b1cb&username=<login>",
peertube_1 | "level": "error",
peertube_1 | "meta": "{\"url\":\"https://<srv>/api/v1/users/token\"}"
peertube_1 | },
peertube_1 | "params": {},
peertube_1 | "query": {}
peertube_1 | }
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.974 error: Client log: Backend returned code 400, errorMessage is: Invalid grant: user credentials are invalid {
peertube_1 | "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 OPR/115.0.0.0",
peertube_1 | "meta": "{\"url\":\"https://<srv>/api/v1/users/token\"}",
peertube_1 | "url": "https://<srv>/login?externalAuthToken=a4a6bbd6f4354bfd9975720e4e1603ccd144cb154dd8477c126024ebad32b1cb&username=<login>"
peertube_1 | }
peertube_1 | [<srv>:443] 2024-12-19 12:10:36.979 info: 147.94.140.147 - - [19/Dec/2024:12:10:36 +0000] "POST /api/v1/server/logs/client HTTP/1.0" 204 - "https://<srv>/login?externalAuthToken=a4a6bbd6f4354bfd9975720e4e1603ccd144cb154dd8477c126024ebad32b1cb&username=<login>" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 OPR/115.0.0.0"