aboutsummaryrefslogtreecommitdiff
path: root/content/operations/plume.md
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-04-17 12:24:51 +0200
committerAlex Auvolat <alex@adnab.me>2023-04-17 12:24:51 +0200
commit7d41074f738de8f9d7a7e910fb1c26ed698373c2 (patch)
tree4f9ec3cea7b573d7fe7a90e619453ab3473b6a40 /content/operations/plume.md
parent1701a090c292f9f3f1894e6844032b3cbe6d15de (diff)
parent4a98a21215262f646307113782b3e8762de70660 (diff)
downloadguide.deuxfleurs.fr-7d41074f738de8f9d7a7e910fb1c26ed698373c2.tar.gz
guide.deuxfleurs.fr-7d41074f738de8f9d7a7e910fb1c26ed698373c2.zip
Merge branch 'main' into reduce-image-sizes
Diffstat (limited to 'content/operations/plume.md')
-rw-r--r--content/operations/plume.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/content/operations/plume.md b/content/operations/plume.md
new file mode 100644
index 0000000..8b8aa2a
--- /dev/null
+++ b/content/operations/plume.md
@@ -0,0 +1,34 @@
+---
+title: "Plume"
+description: "Plume"
+date: 2022-12-22
+dateCreated: 2022-12-22
+weight: 11
+extra:
+ parent: 'operations/debogage.md'
+---
+
+## 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
+```