Upgrade Plume + debug info
This commit is contained in:
parent
2695a79e8a
commit
60ad398c44
4 changed files with 29 additions and 9 deletions
|
@ -82,8 +82,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./plume/build/plume
|
context: ./plume/build/plume
|
||||||
args:
|
args:
|
||||||
VERSION: 57a54cf016cdf566fe45c081bda1971f176c4532
|
VERSION: 8709f6cf9f8ff7e3c5ee7ea699ee7c778e92fefc
|
||||||
image: superboum/plume:v7
|
image: superboum/plume:v8
|
||||||
|
|
||||||
postfix:
|
postfix:
|
||||||
build:
|
build:
|
||||||
|
@ -106,7 +106,3 @@ services:
|
||||||
context: ./backup/build/backup-consul
|
context: ./backup/build/backup-consul
|
||||||
image: lxpz/backup_consul:12
|
image: lxpz/backup_consul:12
|
||||||
|
|
||||||
backup-matrix:
|
|
||||||
build:
|
|
||||||
context: ./backup/build/backup-matrix
|
|
||||||
image: superboum/backup_matrix:4
|
|
||||||
|
|
|
@ -29,4 +29,4 @@ LDAP_USER_MAIL_ATTR=mail
|
||||||
LDAP_TLS=false
|
LDAP_TLS=false
|
||||||
|
|
||||||
RUST_BACKTRACE=1
|
RUST_BACKTRACE=1
|
||||||
RUST_LOG=info
|
RUST_LOG=trace
|
||||||
|
|
|
@ -23,7 +23,7 @@ job "plume-blog" {
|
||||||
|
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
config {
|
config {
|
||||||
image = "superboum/plume:v7"
|
image = "superboum/plume:v8"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
ports = [ "web_port" ]
|
ports = [ "web_port" ]
|
||||||
#command = "cat"
|
#command = "cat"
|
||||||
|
|
|
@ -17,4 +17,28 @@ plm users new \
|
||||||
```
|
```
|
||||||
|
|
||||||
That's all folks, now you can use your new account at https://plume.deuxfleurs.fr
|
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
|
||||||
|
```
|
||||||
|
|
Reference in a new issue