NOTE: Plume's Gitea instance does not seem to send emails so it is impossible to activate my account, even via github's account linking process.
After having banned my first user, Plume fails to start.
Plume fails to start with the following message:
sept. 16 17:36:36 web-01 plume[715590]: Configuration read from /var/www/plumeblog/.env
sept. 16 17:36:38 web-01 plume[715590]: thread 'main' panicked at 'Failed to cache local instance user: Blocklisted(false, "")', plume-models/src/instance.rs:115:18
sept. 16 17:36:38 web-01 plume[715590]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I checked the database and I don't see anything weird
With backtrace:
# RUST_BACKTRACE=1 plume
Configuration read from /var/www/plumeblog/.env
thread 'main' panicked at 'Failed to cache local instance user: Blocklisted(false, "")', plume-models/src/instance.rs:115:18
stack backtrace:
0: rust_begin_unwind
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panicking.rs:577:5
1: core::panicking::panic_fmt
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/core/src/panicking.rs:135:14
2: core::result::unwrap_failed
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/core/src/result.rs:1737:5
3: once_cell::imp::OnceCell<T>::initialize::{{closure}}
4: once_cell::imp::initialize_or_wait
5: once_cell::imp::OnceCell<T>::initialize
6: plume_models::instance::Instance::cache_local_instance_user
7: plume::init_rocket
8: plume::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
With full backtrace:
# RUST_BACKTRACE=full plume
Configuration read from /var/www/plumeblog/.env
thread 'main' panicked at 'Failed to cache local instance user: Blocklisted(false, "")', plume-models/src/instance.rs:115:18
stack backtrace:
0: 0x555c0275509c - std::backtrace_rs::backtrace::libunwind::trace::h9c95184963fef745
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x555c0275509c - std::backtrace_rs::backtrace::trace_unsynchronized::h5d21f8fdfc262588
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x555c0275509c - std::sys_common::backtrace::_print_fmt::h6ce732896d3b7bc2
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/sys_common/backtrace.rs:67:5
3: 0x555c0275509c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h56a1b948079bb60c
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/sys_common/backtrace.rs:46:22
4: 0x555c0277d35c - core::fmt::write::ha787ab3b9068d913
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/core/src/fmt/mod.rs:1168:17
5: 0x555c0274cbe3 - std::io::Write::write_fmt::h4913c71f24efdd75
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/io/mod.rs:1653:15
6: 0x555c02757a62 - std::sys_common::backtrace::_print::h8ba799ac9853e240
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/sys_common/backtrace.rs:49:5
7: 0x555c02757a62 - std::sys_common::backtrace::print::hc1060288e0e5dcfe
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/sys_common/backtrace.rs:36:9
8: 0x555c02757a62 - std::panicking::default_hook::{{closure}}::h5623b336a8b38b2c
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panicking.rs:290:50
9: 0x555c02757645 - std::panicking::default_hook::h7f9b0932f349911f
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panicking.rs:307:9
10: 0x555c02758114 - std::panicking::rust_panic_with_hook::h87cab73890184b28
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panicking.rs:691:17
11: 0x555c02757df7 - std::panicking::begin_panic_handler::{{closure}}::h541a05bf9df15ade
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panicking.rs:581:13
12: 0x555c02755544 - std::sys_common::backtrace::__rust_end_short_backtrace::h18b7b64c8e3dc986
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/sys_common/backtrace.rs:139:18
13: 0x555c02757b09 - rust_begin_unwind
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panicking.rs:577:5
14: 0x555c018f85c3 - core::panicking::panic_fmt::h1720bda5e8269e46
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/core/src/panicking.rs:135:14
15: 0x555c018f86b3 - core::result::unwrap_failed::hf939f97f1c5ed232
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/core/src/result.rs:1737:5
16: 0x555c01c70ffc - once_cell::imp::OnceCell<T>::initialize::{{closure}}::ha04c87d9b0aab204
17: 0x555c027211d3 - once_cell::imp::initialize_or_wait::hdecf96bf5a9a1e0d
18: 0x555c018bb382 - once_cell::imp::OnceCell<T>::initialize::he036ea8628b8ab4f
19: 0x555c01da3943 - plume_models::instance::Instance::cache_local_instance_user::h4e82f81de694932e
20: 0x555c01a8f103 - plume::init_rocket::hf7a3a1c15d8aeb08
21: 0x555c01a97b47 - plume::main::h60ab4c229ca636c9
22: 0x555c01a32893 - std::sys_common::backtrace::__rust_begin_short_backtrace::hb0706cfb5e0d1bbe
23: 0x555c01b884f9 - std::rt::lang_start::{{closure}}::h91ffb41cf926ee9a
24: 0x555c02754757 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hce9a5e26b1a2c58c
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/core/src/ops/function.rs:259:13
25: 0x555c02754757 - std::panicking::try::do_call::h6c2996a203e8e883
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panicking.rs:485:40
26: 0x555c02754757 - std::panicking::try::hb55cfc029aa1d1ae
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panicking.rs:449:19
27: 0x555c02754757 - std::panic::catch_unwind::h9d5a29e8020cfa03
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panic.rs:136:14
28: 0x555c02754757 - std::rt::lang_start_internal::{{closure}}::h3aef114df9bcaef3
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/rt.rs:128:48
29: 0x555c02754757 - std::panicking::try::do_call::ha59134c701ee03a3
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panicking.rs:485:40
30: 0x555c02754757 - std::panicking::try::h5a79ced7a6a77bd0
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panicking.rs:449:19
31: 0x555c02754757 - std::panic::catch_unwind::h580b9b0c2eacfaaf
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/panic.rs:136:14
32: 0x555c02754757 - std::rt::lang_start_internal::ha11525fb3cb33455
at /rustc/6abb6385b2cb7249f67b9b3ce7522527767dd907/library/std/src/rt.rs:128:20
33: 0x555c01aaed12 - main
34: 0x7fbbb7b6dd0a - __libc_start_main
35: 0x555c018f8d9a - _start
36: 0x0 - <unknown>
My .env file:
# cat /var/www/plumeblog/.env
# The address of the database
# (replace USER, PASSWORD, PORT and DATABASE_NAME with your values)
#
# If you are using SQlite, use the full path of the database file (`plume.db` for instance)
# Windows user's paths are backslashes, change them to forward slashes
#DATABASE_URL=/etc/path/to/Plume/plume.db
DATABASE_URL=postgres://(myuser):(mypasswd)[email protected]:5432/plumeliberta
# For PostgreSQL: migrations/postgres
# For SQlite: migrations/sqlite
MIGRATION_DIRECTORY=migrations/postgres
# The domain on which your instance will be available
BASE_URL=blog.liberta.vip
# Secret key used for private cookies and CSRF protection
# You can generate one with `openssl rand -base64 32`
ROCKET_SECRET_KEY=(mykey)
# Mail settings
# If you don't want to setup a mail server and/or address for plume
# and don't plan to use the "password reset" feature,
# you can comment these lines.
MAIL_SERVER=mail.gandi.net
MAIL_USER=(myemail)
MAIL_PASSWORD=(mypass)
MAIL_HELO_NAME=mail.gandi.net
MAIL_ADDRESS=(myemail)
- Plume version: Latest dev version and latest release both have the same behaviour
- Operating system: Debian 11 (bullseye)
- Web Browser: Firefox (Debian 11)
C: Bug