Replies: 5 comments 1 reply
-
SIGTERM is send from outside Vaultwarden so you should check why (i.e. if it's because of a resource limit or something else that might be triggering the signal). |
Beta Was this translation helpful? Give feedback.
-
Thanks @stefan0xC , so since I am running in docker swarm - is it something from docker swarm that would be initiating the SIGTERM? |
Beta Was this translation helpful? Give feedback.
-
I don't know and I can't diagnose your system for you. Have you checked your resource usage at the time the SIGTERM has been received? You might just have run out of memory... |
Beta Was this translation helpful? Give feedback.
-
Check the swarm logs for oomkills or other items related to Vaultwarden. |
Beta Was this translation helpful? Give feedback.
-
Thank you both, I will investigate further - really appreciate the quick responses |
Beta Was this translation helpful? Give feedback.
-
Subject of the issue
Over the last 2-3 months, I've noticed my vaultwarden container getting a SIGTERM and exiting. I am not terminating it and I don't see any errors or access patterns that would cause it to exit. I have enabled tracing logs to see if it would show something more, but not seeing anything indicative of an issue. The logs are mostly similar to the following excerpt:
[2024-04-05 05:01:38.445][tracing::span][TRACE] parse_headers;
[2024-04-05 05:01:38.445][tracing::span::active][TRACE] -> parse_headers;
[2024-04-05 05:01:38.445][tracing::span::active][TRACE] <- parse_headers;
[2024-04-05 05:01:38.446][tracing::span][TRACE] -- parse_headers;
[2024-04-05 05:01:38.446][request][INFO] GET /alive
[2024-04-05 05:01:38.449][response][INFO] (alive) GET /alive => 200 OK
[2024-04-05 05:01:38.450][tracing::span][TRACE] encode_headers;
[2024-04-05 05:01:38.450][tracing::span::active][TRACE] -> encode_headers;
[2024-04-05 05:01:38.450][tracing::span::active][TRACE] <- encode_headers;
[2024-04-05 05:01:38.450][tracing::span][TRACE] -- encode_headers;
[2024-04-05 05:01:40.027][vaultwarden::api::core::two_factor][DEBUG] Sending notifications for incomplete 2FA logins
[2024-04-05 05:01:40.028][vaultwarden::api::core::accounts][DEBUG] Purging auth requests
[2024-04-05 05:02:38.689][tracing::span][TRACE] parse_headers;
[2024-04-05 05:02:38.690][tracing::span::active][TRACE] -> parse_headers;
[2024-04-05 05:02:38.690][tracing::span::active][TRACE] <- parse_headers;
[2024-04-05 05:02:38.690][tracing::span][TRACE] -- parse_headers;
[2024-04-05 05:02:38.690][request][INFO] GET /alive
[2024-04-05 05:02:38.692][response][INFO] (alive) GET /alive => 200 OK
[2024-04-05 05:02:38.692][tracing::span][TRACE] encode_headers;
[2024-04-05 05:02:38.693][tracing::span::active][TRACE] -> encode_headers;
[2024-04-05 05:02:38.693][tracing::span::active][TRACE] <- encode_headers;
[2024-04-05 05:02:38.693][tracing::span][TRACE] -- encode_headers;
[2024-04-05 05:02:40.031][vaultwarden::api::core::accounts][DEBUG] Purging auth requests
[2024-04-05 05:02:40.031][vaultwarden::api::core::two_factor][DEBUG] Sending notifications for incomplete 2FA logins
[2024-04-05 05:03:10.034][vaultwarden::api::core::emergency_access][DEBUG] Start emergency_notification_reminder_job
[2024-04-05 05:03:10.041][vaultwarden::api::core::emergency_access][DEBUG] No emergency request reminder notification to send
[2024-04-05 05:03:40.035][vaultwarden::api::core::two_factor][DEBUG] Sending notifications for incomplete 2FA logins
[2024-04-05 05:03:40.035][vaultwarden::api::core::accounts][DEBUG] Purging auth requests
[2024-04-05 05:04:40.037][vaultwarden::api::core::two_factor][DEBUG] Sending notifications for incomplete 2FA logins
[2024-04-05 05:04:40.038][vaultwarden::api::core::accounts][DEBUG] Purging auth requests
[2024-04-05 05:05:10.040][vaultwarden::api::core::sends][DEBUG] Purging sends
[2024-04-05 05:05:40.042][vaultwarden::api::core::accounts][DEBUG] Purging auth requests
[2024-04-05 05:05:40.043][vaultwarden::api::core::two_factor][DEBUG] Sending notifications for incomplete 2FA logins
[2024-04-05 05:06:11.431][rocket::server][WARN] Received SIGTERM. Requesting shutdown.
[2024-04-05 05:06:11.432][vaultwarden][INFO] Vaultwarden process exited!
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: DOMAIN, ADMIN_TOKEN, SMTP_HOST, SMTP_PORT, SMTP_FROM
Install method:
I've been using vaultwarden in a docker swarm deployment for at least 3 years - I pull the latest probably shortly after the release is made.
Clients used:
I use web client, IOS BW app, Android BW app - all on latest as well.
Reverse proxy and version:
nginx
MySQL/MariaDB or PostgreSQL version:
PostgreSQL 14.0 (Debian 14.0-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
Other relevant details:
Steps to reproduce
Expected behaviour
The container should stay up and running
Actual behaviour
The container abruptly stops.
Troubleshooting data
I am able to look back at logs for up to last 30 days and this is the pattern of SIGTERM occurrences:
Beta Was this translation helpful? Give feedback.
All reactions