Vaultwarden crashing

Within the past month or so, Vaultwarden has been inexplicably crashing, requiring a restart. Prior to that, Vaultwarden ran flawlessly, requiring no intervention beyond occasional checks for updates.

My initial thought was that I needed more RAM so I increased my VPS from 1G to 2G of RAM. But the random crashes continued. My best guess is that it started when I updated Vaultwarden to 1.24.0/2.25.1.

Looking at the log does not show anything beyond some brute force attempts…

Any ideas why this might be happening? Thanks in advance!

I am running it on a Centos 7 instance. The relevant part of my docker-compose.yml file is:

# docker-compose.yml
version: '3'

services:
  bitwarden:
    image: vaultwarden/server
    container_name: bitwardenrs-server
    ports:
      - "3012:3012"
      - "5080:80"
    restart: unless-stopped
    volumes:
      - ./bw-data:/data
    environment:
      WEBSOCKET_ENABLED: 'true' # Required to use websockets
      SIGNUPS_ALLOWED: 'false'   # set to false to disable signups

The log following a crash is:

[2022-03-06 12:55:58.807][start][INFO] Rocket has launched from http://0.0.0.0:80
[2022-03-06 12:55:58.812][parity_ws][INFO] Listening for new connections on 0.0.0.0:3012.
[2022-03-06 12:56:21.764][parity_ws::io][INFO] Accepted a new tcp connection from 172.19.0.1:58452.
[2022-03-06 12:56:22.197][request][INFO] GET /api/accounts/revision-date
[2022-03-06 12:56:22.199][response][INFO] GET /api/accounts/revision-date (revision_date) => 200 OK
[2022-03-06 13:02:08.743][parity_ws::io][INFO] Accepted a new tcp connection from 172.19.0.1:58454.
[2022-03-06 13:02:09.003][request][INFO] GET /api/accounts/revision-date
[2022-03-06 13:02:09.004][response][INFO] GET /api/accounts/revision-date (revision_date) => 200 OK
[2022-03-06 13:07:51.707][parity_ws::io][INFO] Accepted a new tcp connection from 172.19.0.1:58456.
[2022-03-06 13:07:51.963][request][INFO] GET /api/accounts/revision-date
[2022-03-06 13:07:51.964][response][INFO] GET /api/accounts/revision-date (revision_date) => 200 OK
[2022-03-06 13:28:42.756][parity_ws::io][INFO] Accepted a new tcp connection from 194.26.29.31:65078.
[2022-03-06 13:28:42.757][parity_ws::handler][ERROR] WS Error <Http(Token)>: Invalid byte where token is required.
[2022-03-06 13:47:23.659][parity_ws::io][INFO] Accepted a new tcp connection from 172.19.0.1:58460.
[2022-03-06 14:10:22.781][request][INFO] GET /api/config-init
[2022-03-06 14:10:22.782][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:10:26.952][request][INFO] GET /api/index/index
[2022-03-06 14:10:26.952][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:10:38.033][request][INFO] GET /api/index/config
[2022-03-06 14:10:38.033][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:10:42.892][request][INFO] GET /api/content_bottom
[2022-03-06 14:10:42.892][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:10:50.504][request][INFO] GET /api/v1/member/kefu
[2022-03-06 14:10:50.504][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:11:01.087][request][INFO] GET /api/login/homepages
[2022-03-06 14:11:01.088][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:11:06.817][request][INFO] GET /api/index/loansList
[2022-03-06 14:11:06.817][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:11:08.355][request][INFO] GET /api/Index/getLangCfg
[2022-03-06 14:11:08.355][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:11:10.810][request][INFO] POST /api/user/ismustmobile
[2022-03-06 14:11:10.810][response][INFO] 404 Not Found
[2022-03-06 14:11:19.953][request][INFO] GET /api/common/getConfig
[2022-03-06 14:11:19.953][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:11:49.159][request][INFO] GET /api/currency/quotation_new
[2022-03-06 14:11:49.159][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:12:28.038][request][INFO] GET /admin/webadmin.php?mod=do&act=login
[2022-03-06 14:12:28.039][response][INFO] GET /<p..> [10] (web_files) => 404 Not Found
[2022-03-06 14:12:33.928][request][INFO] POST /api/backstageManagement/system/systemConfigForPlatform
[2022-03-06 14:12:33.929][response][INFO] 404 Not Found