From 0a37d155dda915f80cc70d5bbd223d820f996511 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 24 Dec 2022 22:23:08 +0100 Subject: =?UTF-8?q?plume:=20pas=20de=20creation=20d'utilisateur=20(on=20a?= =?UTF-8?q?=20ldap=20maintenant);=20d=C3=A9placement=20ds=20d=C3=A9bogage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/operations/courantes/plume.md | 52 ----------------------------------- content/operations/debogage/plume.md | 32 +++++++++++++++++++++ 2 files changed, 32 insertions(+), 52 deletions(-) delete mode 100644 content/operations/courantes/plume.md create mode 100644 content/operations/debogage/plume.md (limited to 'content') diff --git a/content/operations/courantes/plume.md b/content/operations/courantes/plume.md deleted file mode 100644 index 03e47c5..0000000 --- a/content/operations/courantes/plume.md +++ /dev/null @@ -1,52 +0,0 @@ -+++ -title = "Plume" -description = "Plume" -date = 2022-12-22 -dateCreated = 2022-12-22 -weight = 11 -+++ - -## Creating a new Plume user - - 1. Bind nomad on your machine with SSH (check the README file at the root of this repo) - 2. Go to http://127.0.0.1:4646 - 3. Select `plume` -> click `exec` button (top right) - 4. Select `plume` on the left panel - 5. Press `enter` to get a bash shell - 6. Run: - -```bash -plm users new \ - --username alice \ - --display-name Alice \ - --bio Just an internet user \ - --email alice@example.com \ - --password s3cr3t -``` - -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 -``` diff --git a/content/operations/debogage/plume.md b/content/operations/debogage/plume.md new file mode 100644 index 0000000..c256a45 --- /dev/null +++ b/content/operations/debogage/plume.md @@ -0,0 +1,32 @@ ++++ +title = "Plume" +description = "Plume" +date = 2022-12-22 +dateCreated = 2022-12-22 +weight = 11 ++++ + +## 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 +``` -- cgit v1.2.3