aboutsummaryrefslogtreecommitdiff
path: root/op_guide
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-04-23 22:04:14 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-04-23 22:04:14 +0200
commit60ad398c4471b94be9a2b6a13caa17941cb28131 (patch)
tree928f1918c8c7d25e4deaf848d8392a6bc7088641 /op_guide
parent2695a79e8ad351c8a62a126c2b4d614a12319a07 (diff)
downloadinfrastructure-60ad398c4471b94be9a2b6a13caa17941cb28131.tar.gz
infrastructure-60ad398c4471b94be9a2b6a13caa17941cb28131.zip
Upgrade Plume + debug info
Diffstat (limited to 'op_guide')
-rw-r--r--op_guide/plume/README.md26
1 files changed, 25 insertions, 1 deletions
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
+```