From aa36dd62c7982d1620a0f8e302000fe7c2d0f1d7 Mon Sep 17 00:00:00 2001 From: "Kaz Saita(raspi5)" Date: Sun, 7 Apr 2024 17:00:14 +0900 Subject: [PATCH] sync notes(auto) --- content/20240324102024 Umamiのインストール.md | 21 +++++++++++++++++++ ...nodejs npmを Raspberry piにインストール.md | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/content/20240324102024 Umamiのインストール.md b/content/20240324102024 Umamiのインストール.md index a073eca..d0a7c4e 100644 --- a/content/20240324102024 Umamiのインストール.md +++ b/content/20240324102024 Umamiのインストール.md @@ -74,6 +74,27 @@ DATABASE_URL=mysql://[username]:[password]@localhost:3306/umami_db ``` $ yarn build ``` +でエラーになり、 +``` +✗ Command failed: prisma migrate deploy +Error: P3009 + +migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve +The `05_add_visit_id` migration started at 2024-04-07 07:47:46.598 UTC failed + + + +error Command failed with exit code 1. +info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. +ERROR: "check-db" exited with 1. +error Command failed with exit code 1. +info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. +``` +こうなった場合は、 +``` +$ npx prisma migrate resolve --applied "05_add_visit_id" +``` +をやってみる。 cf: [prisma migrate deploy Error: P3009 · Issue #2645 · umami-software/umami · GitHub](https://github.com/umami-software/umami/issues/2645#issuecomment-2038626975) port :3000は[[20240312115855 Raspi4 GiteaからForgejoに変更してみる|forgejo]]が使っていたので、ポートを変更して起動。 ``` diff --git a/content/20240407155359 nodejs npmを Raspberry piにインストール.md b/content/20240407155359 nodejs npmを Raspberry piにインストール.md index 5ba7fa2..4f5a763 100644 --- a/content/20240407155359 nodejs npmを Raspberry piにインストール.md +++ b/content/20240407155359 nodejs npmを Raspberry piにインストール.md @@ -2,7 +2,8 @@ #nodejs #raspberrypi #npm aptでインストールするとバージョンが古い。 -下記に書いてあるとおりの作業をした。 +下記に書いてあるとおりの作業をした。 nvmでもよかったかもしれない。 + ``` $ sudo apt install -y nodejs npm $ sudo npm install n -g