Unable to launch on Ubuntu 22.04
I installed Anthenticator via snap (v4.2.0) but it crashes when I try to run it.
Here is the full backtrace
RUST_BACKTRACE=full authenticator
2023-12-14T10:05:02.382209Z INFO authenticator::application: Authenticator (com.belmoussaoui.Authenticator)
2023-12-14T10:05:02.382234Z INFO authenticator::application: Version: 4.2.0 ()
2023-12-14T10:05:02.382238Z INFO authenticator::application: Datadir: /usr/share/authenticator
2023-12-14T10:05:02.402868Z INFO authenticator::application: Migrating the secrets to the file backend
2023-12-14T10:05:02.407963Z ERROR authenticator::application: Failed to migrate your data DBus error zbus error org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.282" (uid=1000 pid=40690 comm="/snap/authenticator/3/usr/bin/authenticator " label="snap.authenticator.authenticator (enforce)") interface="org.freedesktop.Secret.Service" member="OpenSession" error name="(unset)" requested_reply="0" destination="org.freedesktop.secrets" (uid=1000 pid=3044 comm="/usr/bin/gnome-keyring-daemon --daemonize --login " label="unconfined")
thread 'main' panicked at 'Failed to start a location service: DBus(Zbus(MethodError(OwnedErrorName(ErrorName(Str(Owned("org.freedesktop.DBus.Error.AccessDenied")))), Some("An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.283\" (uid=1000 pid=40690 comm=\"/snap/authenticator/3/usr/bin/authenticator \" label=\"snap.authenticator.authenticator (enforce)\") interface=\"org.freedesktop.Secret.Service\" member=\"OpenSession\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.secrets\" (uid=1000 pid=3044 comm=\"/usr/bin/gnome-keyring-daemon --daemonize --login \" label=\"unconfined\")"), Msg { type: Error, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 2, body: Signature("s") })))', src/application.rs:310:18
stack backtrace:
0: 0x55c61179706a - std::backtrace_rs::backtrace::libunwind::trace::ha271a8a7e1f3d4ef
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x55c61179706a - std::backtrace_rs::backtrace::trace_unsynchronized::h85739da0352c791a
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x55c61179706a - std::sys_common::backtrace::_print_fmt::hbc6ebcfb2910b329
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:65:5
3: 0x55c61179706a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he1c117e52d53614f
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:44:22
4: 0x55c6117b9f3e - core::fmt::write::h25eb51b9526b8e0c
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/fmt/mod.rs:1213:17
5: 0x55c611791895 - std::io::Write::write_fmt::ha9edec5fb1621933
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/io/mod.rs:1682:15
6: 0x55c611796e35 - std::sys_common::backtrace::_print::hf8657cd429fc3452
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:47:5
7: 0x55c611796e35 - std::sys_common::backtrace::print::h41b9b18ed86f86bd
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:34:9
8: 0x55c61179861f - std::panicking::default_hook::{{closure}}::h22a91871f4454152
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:267:22
9: 0x55c61179835b - std::panicking::default_hook::h21ddc36de0cd4ae7
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:286:9
10: 0x55c611798d29 - std::panicking::rust_panic_with_hook::h5059419d6d59b3d0
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:688:13
11: 0x55c611798ac9 - std::panicking::begin_panic_handler::{{closure}}::h0f383c291cd78343
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:579:13
12: 0x55c61179751c - std::sys_common::backtrace::__rust_end_short_backtrace::h70ab22f2ad318cdd
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:137:18
13: 0x55c6117987d2 - rust_begin_unwind
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:575:5
14: 0x55c610bcad53 - core::panicking::panic_fmt::hd1d46bcde3c61d72
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/panicking.rs:64:14
15: 0x55c610bcb203 - core::result::unwrap_failed::h456a23f68607268c
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/result.rs:1790:5
16: 0x55c610d12efe - authenticator::application::Application::run::{{closure}}::h1964a7314b41f7c9
17: 0x55c610d0c07f - tokio::runtime::park::CachedParkThread::block_on::h6e15458864086b9d
18: 0x55c610dbe2b9 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h98688163600076e9
19: 0x55c610bf7a98 - tokio::runtime::runtime::Runtime::block_on::ha058160752ac9f81
20: 0x55c610e3702e - authenticator::application::Application::run::haf6c477d4dfe2be9
21: 0x55c610fbd89e - authenticator::main::ha68cb217c3d3a58b
22: 0x55c610c24603 - std::sys_common::backtrace::__rust_begin_short_backtrace::hc128dd9356010c26
23: 0x55c610c246e9 - std::rt::lang_start::{{closure}}::h9d4a256e93e87437
24: 0x55c61178cb8c - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h203afb3af230319a
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/ops/function.rs:287:13
25: 0x55c61178cb8c - std::panicking::try::do_call::hf68e87013b70f3c5
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:483:40
26: 0x55c61178cb8c - std::panicking::try::h040ea8f298390ba2
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:447:19
27: 0x55c61178cb8c - std::panic::catch_unwind::h1e17b198887a05fa
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panic.rs:140:14
28: 0x55c61178cb8c - std::rt::lang_start_internal::{{closure}}::hfb902d8927e51b86
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/rt.rs:148:48
29: 0x55c61178cb8c - std::panicking::try::do_call::h354e6eb41f2e7d42
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:483:40
30: 0x55c61178cb8c - std::panicking::try::h4a39749cd018228c
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:447:19
31: 0x55c61178cb8c - std::panic::catch_unwind::h30bce83b8de61cca
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panic.rs:140:14
32: 0x55c61178cb8c - std::rt::lang_start_internal::h8f7e70b1a2558118
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/rt.rs:148:20
33: 0x55c610fc01a5 - main
34: 0x7f1b120f1d90 - <unknown>
35: 0x7f1b120f1e40 - __libc_start_main
36: 0x55c610bcb805 - _start
37: 0x0 - <unknown>
I am on Ubuntu 22.04.3