3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/services
Ivan Kozik d95960e275 nixos/bitwarden_rs: fix startup on 32 thread machines
LimitNPROC=64 is too low for bitwarden_rs to start on a 32 thread machine.
Remove the limit.

This fixes:

```
bitwarden_rs[38701]: /--------------------------------------------------------------------\
bitwarden_rs[38701]: |                       Starting Bitwarden_RS                        |
bitwarden_rs[38701]: |--------------------------------------------------------------------|
bitwarden_rs[38701]: | This is an *unofficial* Bitwarden implementation, DO NOT use the   |
bitwarden_rs[38701]: | official channels to report bugs/features, regardless of client.   |
bitwarden_rs[38701]: | Send usage/configuration questions or feature requests to:         |
bitwarden_rs[38701]: |   https://bitwardenrs.discourse.group/                             |
bitwarden_rs[38701]: | Report suspected bugs/issues in the software itself at:            |
bitwarden_rs[38701]: |   https://github.com/dani-garcia/bitwarden_rs/issues/new           |
bitwarden_rs[38701]: \--------------------------------------------------------------------/
bitwarden_rs[38701]: [INFO] No .env file found.
bitwarden_rs[38701]: [2021-05-24 03:34:41.121][bitwarden_rs::api::core::sends][INFO] Initiating send deletion
bitwarden_rs[38701]: [2021-05-24 03:34:41.122][start][INFO] Rocket has launched from http://127.0.0.1:8222
bitwarden_rs[38701]: [2021-05-24 03:34:41.126][panic][ERROR] thread 'unnamed' panicked at 'failed to spawn thread: Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }': /build/rustc-1.52.1-src/library/std/src/thread/mod.rs:620
bitwarden_rs[38701]:    0: bitwarden_rs::init_logging::{{closure}}
bitwarden_rs[38701]:    1: std::panicking::rust_panic_with_hook
bitwarden_rs[38701]:    2: std::panicking::begin_panic_handler::{{closure}}
bitwarden_rs[38701]:    3: std::sys_common::backtrace::__rust_end_short_backtrace
bitwarden_rs[38701]:    4: rust_begin_unwind
bitwarden_rs[38701]:    5: core::panicking::panic_fmt
bitwarden_rs[38701]:    6: core::result::unwrap_failed
bitwarden_rs[38701]:    7: hyper::server::listener::spawn_with
bitwarden_rs[38701]:    8: hyper::server::listener::ListenerPool<A>::accept
bitwarden_rs[38701]:    9: std::sys_common::backtrace::__rust_begin_short_backtrace
bitwarden_rs[38701]:   10: core::ops::function::FnOnce::call_once{{vtable.shim}}
bitwarden_rs[38701]:   11: std::sys::unix:🧵:Thread:🆕:thread_start
bitwarden_rs[38701]:   12: start_thread
bitwarden_rs[38701]:   13: __GI___clone
bitwarden_rs[38701]: [2021-05-24 03:34:41.126][panic][ERROR] thread 'main' panicked at 'internal error: entered unreachable code: the call to `handle_threads` should block on success': /build/bitwarden_rs-1.20.0-vendor.tar.gz/rocket/src/rocket.rs:751
bitwarden_rs[38701]:    0: bitwarden_rs::init_logging::{{closure}}
bitwarden_rs[38701]:    1: std::panicking::rust_panic_with_hook
bitwarden_rs[38701]:    2: std::panicking::begin_panic_handler::{{closure}}
bitwarden_rs[38701]:    3: std::sys_common::backtrace::__rust_end_short_backtrace
bitwarden_rs[38701]:    4: rust_begin_unwind
bitwarden_rs[38701]:    5: core::panicking::panic_fmt
bitwarden_rs[38701]:    6: rocket:🚀:Rocket::launch
bitwarden_rs[38701]:    7: bitwarden_rs::main
bitwarden_rs[38701]:    8: std::sys_common::backtrace::__rust_begin_short_backtrace
bitwarden_rs[38701]:    9: std::rt::lang_start::{{closure}}
bitwarden_rs[38701]:   10: std::rt::lang_start_internal
bitwarden_rs[38701]:   11: main
```
2021-05-24 04:36:17 +00:00
..
admin
amqp
audio nixos/botamusique: init 2021-05-23 01:01:51 +02:00
backup Merge pull request #104420 from danielfullmer/syncoid-perm-fix 2021-05-22 17:57:56 +02:00
blockchain/ethereum
cluster Fix description for services.kubernetes.addonManager.enable (#71448) 2021-05-19 13:49:27 -07:00
computing nixos/services/foldingathome: Add an option to set the "nice level" (#122864) 2021-05-18 18:44:52 +02:00
continuous-integration treewide: remove nand0p as maintainer 2021-05-17 01:50:49 +02:00
databases clickhouse: 20.11.4.13-stable -> 21.3.11.5-lts 2021-05-19 14:08:46 -07:00
desktops nixos/flatpak: Remove guiPackages internal option 2021-05-18 14:06:23 +02:00
development python3Packages.scikitlearn: rename to scikit-learn 2021-05-17 17:41:36 +07:00
display-managers
editors
games nixos/terraria: open ports in the firewall 2021-05-20 12:11:08 -07:00
hardware nixos/spacenavd: run as user service 2021-05-22 12:48:12 +02:00
logging nixos/promtail: Set TimeoutStopSec=10 2021-04-28 21:02:11 +02:00
mail nixos/mailman: fix documentation option links 2021-05-14 18:33:24 +02:00
misc Merge pull request #123941 from mweinelt/matrix-synapse 2021-05-22 22:20:16 +02:00
monitoring nixos/prometheus: init pihole-exporter 2021-05-24 04:05:59 +02:00
network-filesystems nixos: convert netatalk to settings-style configuration 2021-05-20 17:39:28 +02:00
networking Merge pull request #123828 from Lassulus/solanum2 2021-05-21 23:23:01 +02:00
printing
scheduling nixos/atd: prefer 'install' over 'mkdir/chmod/chown' 2021-05-01 15:16:19 +02:00
search
security nixos/bitwarden_rs: fix startup on 32 thread machines 2021-05-24 04:36:17 +00:00
system nixos/self-deploy: init (#120940) 2021-05-18 08:29:37 -07:00
torrent nixos/services/torrent/transmission.nix: add a missing apparmor rule 2021-05-05 22:47:52 +02:00
ttys
video nixos/mirakurun: add polkit rule for smart card access (#122066) 2021-05-12 13:57:49 -04:00
wayland cage: drop maintainership (#121174) 2021-04-29 18:07:13 +02:00
web-apps Merge pull request #121778 from talyz/keycloak-security 2021-05-21 16:55:26 +02:00
web-servers Merge pull request #122825 from Izorkin/update-duplicates-systemcallfilters 2021-05-17 12:06:06 +01:00
x11 Merge pull request #121031 from romildo/fix.lxqt 2021-05-23 15:06:55 -03:00