From 069ceb47b256b6c55d76adf839f40f72cb36be96 Mon Sep 17 00:00:00 2001 From: Till Tomczak / Torben via Frontend Date: Tue, 1 Apr 2025 15:44:17 +0200 Subject: [PATCH] fehler --- fehler | 114 ++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 62 deletions(-) diff --git a/fehler b/fehler index d34d8b8..13cba4a 100644 --- a/fehler +++ b/fehler @@ -1,11 +1,11 @@ root@m040tbaraspi001:/home/user/Projektarbeit-MYP# ./raspi-frontend-deploy.sh -[2025-04-01 15:14:56] Datenbankverzeichnis existiert bereits: /srv/MYP-DB +[2025-04-01 15:38:07] Datenbankverzeichnis existiert bereits: /srv/MYP-DB ===== Backend-URL Konfiguration ===== -[2025-04-01 15:14:56] Standard-Backend-URL: http://192.168.0.105:5000 +[2025-04-01 15:38:07] Standard-Backend-URL: http://192.168.0.105:5000 Möchten Sie eine andere Backend-URL verwenden? (j/n): n -[2025-04-01 15:14:58] Verwende Standard-Backend-URL: http://192.168.0.105:5000 +[2025-04-01 15:38:08] Verwende Standard-Backend-URL: http://192.168.0.105:5000 ===== MYP Frontend Deployment ===== @@ -25,68 +25,58 @@ Ihre Wahl (1-9): 2 ===== Docker-Image bauen ===== -[2025-04-01 15:15:01] Baue Docker-Image: myp-rp:latest -[2025-04-01 15:15:01] Baue Docker-Image... (Dies kann auf einem Raspberry Pi mehrere Minuten dauern) -[+] Building 190.3s (14/14) FINISHED docker:default - => [internal] load build definition from Dockerfile 0.1s +[2025-04-01 15:38:13] Baue Docker-Image: myp-rp:latest +[2025-04-01 15:38:13] Baue Docker-Image... (Dies kann auf einem Raspberry Pi mehrere Minuten dauern) +[+] Building 74.4s (14/14) FINISHED docker:default + => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 697B 0.0s - => [internal] load metadata for docker.io/library/node:20-bookworm-slim 2.4s - => [internal] load .dockerignore 0.1s + => [internal] load metadata for docker.io/library/node:20-bookworm-slim 1.1s + => [internal] load .dockerignore 0.0s => => transferring context: 402B 0.0s - => [internal] load build context 0.3s - => => transferring context: 902.43kB 0.1s - => [ 1/10] FROM docker.io/library/node:20-bookworm-slim@sha256:d6e4ec9eaf2390129b5d23904d07ae03ef744818386bcab3fc45fe63405b5eb2 42.4s - => => resolve docker.io/library/node:20-bookworm-slim@sha256:d6e4ec9eaf2390129b5d23904d07ae03ef744818386bcab3fc45fe63405b5eb2 0.1s - => => sha256:d6e4ec9eaf2390129b5d23904d07ae03ef744818386bcab3fc45fe63405b5eb2 6.49kB / 6.49kB 0.0s - => => sha256:e8d60c144455a9c01544bc7cb6711c61d03d0e0cd9e4527afe2983b4f794678e 1.93kB / 1.93kB 0.0s - => => sha256:89b89445c2070aa5b044871cb695f8ad4ea5e8c0b03ab1a10c50cefa4527abea 6.56kB / 6.56kB 0.0s - => => sha256:d9b6365477446a79987b20560ae52637be6f54d6d2f801e16aaa0ca25dd0964b 28.04MB / 28.04MB 39.1s - => => sha256:2fb5eed0caf79ea16b3f5da5eb35cbcce775654a9f0fbc87e28bfc02838f49de 3.31kB / 3.31kB 10.7s - => => sha256:147aa1b8b6ccb141b05828de1bfe05fee0415461a7f40cb5c1fdbe3280ee225e 41.12MB / 41.12MB 22.1s - => => sha256:74eebdbc2f2507c2ac26dd4fad60e975501251559c9734c4332473f634c7792f 1.71MB / 1.71MB 16.2s - => => sha256:af55cd7b8a542488e44b7ec4a11ea6086934185e190fc532e39b84a666453ea4 449B / 449B 17.1s - => => extracting sha256:d9b6365477446a79987b20560ae52637be6f54d6d2f801e16aaa0ca25dd0964b 1.0s - => => extracting sha256:2fb5eed0caf79ea16b3f5da5eb35cbcce775654a9f0fbc87e28bfc02838f49de 0.0s - => => extracting sha256:147aa1b8b6ccb141b05828de1bfe05fee0415461a7f40cb5c1fdbe3280ee225e 1.2s - => => extracting sha256:74eebdbc2f2507c2ac26dd4fad60e975501251559c9734c4332473f634c7792f 0.1s - => => extracting sha256:af55cd7b8a542488e44b7ec4a11ea6086934185e190fc532e39b84a666453ea4 0.0s - => [ 2/10] RUN mkdir -p /usr/src/app 7.5s - => [ 3/10] WORKDIR /usr/src/app 0.3s - => [ 4/10] COPY package.json /usr/src/app 0.3s - => [ 5/10] COPY pnpm-lock.yaml /usr/src/app 0.3s - => [ 6/10] RUN corepack enable pnpm 0.7s - => [ 7/10] RUN pnpm install 59.8s - => [ 8/10] COPY . /usr/src/app 0.4s - => [ 9/10] RUN pnpm run db 5.7s - => ERROR [10/10] RUN pnpm run build 69.8s + => [internal] load build context 0.0s + => => transferring context: 19.02kB 0.0s + => [ 1/10] FROM docker.io/library/node:20-bookworm-slim@sha256:d6e4ec9eaf2390129b5d23904d07ae03ef744818386bcab3fc45fe63405b5eb2 0.0s + => CACHED [ 2/10] RUN mkdir -p /usr/src/app 0.0s + => CACHED [ 3/10] WORKDIR /usr/src/app 0.0s + => CACHED [ 4/10] COPY package.json /usr/src/app 0.0s + => CACHED [ 5/10] COPY pnpm-lock.yaml /usr/src/app 0.0s + => CACHED [ 6/10] RUN corepack enable pnpm 0.0s + => CACHED [ 7/10] RUN pnpm install 0.0s + => [ 8/10] COPY . /usr/src/app 0.3s + => [ 9/10] RUN pnpm run db 5.9s + => ERROR [10/10] RUN pnpm run build 66.7s ------ > [10/10] RUN pnpm run build: -0.892 -0.892 > myp-rp@1.0.0 build /usr/src/app -0.892 > next build -0.892 -1.778 ▲ Next.js 14.2.3 -1.779 - Environments: .env.local, .env -1.779 -1.799 Creating an optimized production build ... -45.57 Browserslist: caniuse-lite is outdated. Please run: -45.57 npx update-browserslist-db@latest -45.57 Why you should do it regularly: https://github.com/browserslist/update-db#readme -52.34 ✓ Compiled successfully -52.35 Linting and checking validity of types ... -67.74 Failed to compile. -67.74 -67.74 ./src/app/auth/login/callback/route.ts:45:63 -67.74 Type error: Expected 1 arguments, but got 2. -67.74 -67.74 43 | try { -67.74 44 | // Verwende die zentral definierte Callback-URL für konsistente Validierung -67.74 > 45 | const tokens = await github.validateAuthorizationCode(code, OAUTH_CALLBACK_URL); -67.74 | ^ -67.74 46 | -67.74 47 | // Log zur Fehlersuche -67.74 48 | console.log(`GitHub OAuth Token-Validierung mit Callback-URL: ${OAUTH_CALLBACK_URL}`); -67.77  ELIFECYCLE  Command failed with exit code 1. +0.917 +0.917 > myp-rp@1.0.0 build /usr/src/app +0.917 > node update-package.js && next build +0.917 +0.968 ℹ️ OAuth-Konfiguration ist bereits aktuell. +0.969 ℹ️ OAuth-Callback-Route ist bereits aktuell. +0.970 ℹ️ package.json ist bereits aktualisiert. +0.970 ✅ OAuth-Konfiguration wurde erfolgreich vorbereitet. +1.800 ▲ Next.js 14.2.3 +1.801 - Environments: .env.local, .env +1.801 +1.821 Creating an optimized production build ... +43.85 Browserslist: caniuse-lite is outdated. Please run: +43.85 npx update-browserslist-db@latest +43.85 Why you should do it regularly: https://github.com/browserslist/update-db#readme +50.09 ✓ Compiled successfully +50.09 Linting and checking validity of types ... +64.70 Failed to compile. +64.70 +64.70 ./src/app/auth/login/route.ts:14:3 +64.70 Type error: Object literal may only specify known properties, and 'redirectURI' does not exist in type '{ scopes?: string[] | undefined; }'. +64.70 +64.70 12 | const url = await github.createAuthorizationURL(state, { +64.70 13 | scopes: ["user"], +64.70 > 14 | redirectURI: OAUTH_CALLBACK_URL, +64.70 | ^ +64.70 15 | }); +64.70 16 | const ONE_HOUR = 60 * 60; +64.70 17 | +64.75  ELIFECYCLE  Command failed with exit code 1. ------ Dockerfile:29 -------------------- @@ -97,4 +87,4 @@ Dockerfile:29 31 | EXPOSE 3000 -------------------- ERROR: failed to solve: process "/bin/sh -c pnpm run build" did not complete successfully: exit code: 1 -[2025-04-01 15:18:12] FEHLER: Fehler beim Bauen des Docker-Images. +[2025-04-01 15:39:28] FEHLER: Fehler beim Bauen des Docker-Images.