From 60ad398c4471b94be9a2b6a13caa17941cb28131 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sat, 23 Apr 2022 22:04:14 +0200 Subject: [PATCH] Upgrade Plume + debug info --- app/docker-compose.yml | 8 ++------ app/plume/config/app.env | 2 +- app/plume/deploy/plume.hcl | 2 +- op_guide/plume/README.md | 26 +++++++++++++++++++++++++- 4 files changed, 29 insertions(+), 9 deletions(-) diff --git a/app/docker-compose.yml b/app/docker-compose.yml index cfd06b2..47f74cc 100644 --- a/app/docker-compose.yml +++ b/app/docker-compose.yml @@ -82,8 +82,8 @@ services: build: context: ./plume/build/plume args: - VERSION: 57a54cf016cdf566fe45c081bda1971f176c4532 - image: superboum/plume:v7 + VERSION: 8709f6cf9f8ff7e3c5ee7ea699ee7c778e92fefc + image: superboum/plume:v8 postfix: build: @@ -106,7 +106,3 @@ services: context: ./backup/build/backup-consul image: lxpz/backup_consul:12 - backup-matrix: - build: - context: ./backup/build/backup-matrix - image: superboum/backup_matrix:4 diff --git a/app/plume/config/app.env b/app/plume/config/app.env index 3dbf609..0d30ba9 100644 --- a/app/plume/config/app.env +++ b/app/plume/config/app.env @@ -29,4 +29,4 @@ LDAP_USER_MAIL_ATTR=mail LDAP_TLS=false RUST_BACKTRACE=1 -RUST_LOG=info +RUST_LOG=trace diff --git a/app/plume/deploy/plume.hcl b/app/plume/deploy/plume.hcl index 14f460e..266a665 100644 --- a/app/plume/deploy/plume.hcl +++ b/app/plume/deploy/plume.hcl @@ -23,7 +23,7 @@ job "plume-blog" { driver = "docker" config { - image = "superboum/plume:v7" + image = "superboum/plume:v8" network_mode = "host" ports = [ "web_port" ] #command = "cat" diff --git a/op_guide/plume/README.md b/op_guide/plume/README.md index 4a8bbac..16f7af9 100644 --- a/op_guide/plume/README.md +++ b/op_guide/plume/README.md @@ -17,4 +17,28 @@ plm users new \ ``` That's all folks, now you can use your new account at https://plume.deuxfleurs.fr - + +## Bug and debug + +If you can't follow a new user and have this error: + +``` +2022-04-23T19:26:12.639285Z WARN plume::routes::errors: Db(DatabaseError(UniqueViolation, "duplicate key value violates unique constraint \"follows_unique_ap_url\"")) +``` + +You might have an empty field in your database: + +``` +plume=> select * from follows where ap_url=''; + id | follower_id | following_id | ap_url +------+-------------+--------------+-------- + 2118 | 20 | 238 | +(1 row) +``` + +Simply set the `ap_url` as follows: + +``` +plume=> update follows set ap_url='https://plume.deuxfleurs.fr/follows/2118' where id=2118; +UPDATE 1 +```