Till Tomczak / Torben via Frontend 069ceb47b2 fehler
2025-04-01 15:44:17 +02:00

91 lines
8.0 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

root@m040tbaraspi001:/home/user/Projektarbeit-MYP# ./raspi-frontend-deploy.sh
[2025-04-01 15:38:07] Datenbankverzeichnis existiert bereits: /srv/MYP-DB
===== Backend-URL Konfiguration =====
[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:38:08] 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: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 1.1s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 402B 0.0s
=> [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.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
--------------------
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:39:28] FEHLER: Fehler beim Bauen des Docker-Images.