This commit is contained in:
Till Tomczak / Torben via Frontend 2025-04-01 15:19:37 +02:00
parent 94532743ad
commit 5807303d90

100
fehler Normal file
View File

@ -0,0 +1,100 @@
root@m040tbaraspi001:/home/user/Projektarbeit-MYP# ./raspi-frontend-deploy.sh
[2025-04-01 15:14:56] Datenbankverzeichnis existiert bereits: /srv/MYP-DB
===== Backend-URL Konfiguration =====
[2025-04-01 15:14:56] 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
===== MYP Frontend Deployment =====
Bitte wählen Sie eine Option:
1) Alles automatisch (Build, Deploy, Starten)
2) Docker-Image bauen
3) Docker-Image speichern
4) Docker-Image laden
5) Container mit Docker Compose starten
6) Container direkt mit Docker Run starten
7) Anwendung ohne Docker starten
8) Nur Backend-URL konfigurieren
9) Beenden
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
=> => transferring dockerfile: 697B 0.0s
=> [internal] load metadata for docker.io/library/node:20-bookworm-slim 2.4s
=> [internal] load .dockerignore 0.1s
=> => 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
------
> [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.
------
Dockerfile:29
--------------------
27 |
28 | # Build the application
29 | >>> RUN pnpm run build
30 |
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.